UpdateContext({ SaveButtonPressed: true });
Set(ChangeNumberVar, Text(Value(DataCardValue22.Text), "[$-en-GB]$#,###.00"));
SubmitForm(Form5);
If(
Form5.Valid,
With(
{
requestID: DataCardValue10.Text
},
Patch(
[@'Invoice Master'],
LookUp('Invoice Master', 'Request ID' = requestID),
{
'Amount': ChangeNumberVar,
'Request ID': requestID
}
),
Patch(
[@'Expense Claim Automation'],
LookUp('Expense Claim Automation', Text(ID) = requestID),
{
'Total Amount:': Sum(
Filter(
Gallery3.AllItems,
'Request ID' = Text(Gallery2.Selected.ID)
),
Amount
)
}
)
)
);
UpdateContext({ SaveButtonPressed: true });
Set(ChangeNumberVar, Text(Value(DataCardValue22.Text), "[$-en-GB]$#,###.00"));
SubmitForm(Form5);
If(
Form5.Valid,
With(
{
requestID: DataCardValue10.Text
},
Patch(
[@'Invoice Master'],
Defaults('Invoice Master'),
Form5.Updates,
{
'Request ID': requestID,
'Amount': ChangeNumberVar
}
),
Patch(
[@'Expense Claim Automation'],
LookUp('Expense Claim Automation', Text(ID) = requestID),
{
'Total Amount:': Sum(
Filter(
Gallery3.AllItems,
'Request ID' = Text(Gallery2.Selected.ID)
),
Amount
)
}
)
)
);
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.