hi Experts,
i have following code to patch the record from pending column in sharepoint list. but when i approve it wont save the record but keep the record in the pending column.
below all data card is from the pending. so i was patching monthly actual column with the value of pending column
If(
!IsBlank(varRecord.ModifiedBy) && varRecord.ActiveStatus.Value = "Active",
Set(
varRecord,
Patch(
Forecast,
varRecord,
{
ApprovalStatus: "Approved",
ActiveStatus: {Value: "Active"},
Jan:Value(DataCardValue56.Text),//DatacardValue56 is the data card value of Jan pending
Feb:Value(DataCardValue60.Text),
March:Value(DataCardValue61.Text),
April:Value(DataCardValue62.Text),
May:Value(DataCardValue63.Text),
June:Value(DataCardValue64.Text),
July:Value(DataCardValue65.Text),
Aug:Value(DataCardValue66.Text),
Sep:Value(DataCardValue67.Text),
Oct:Value(DataCardValue68.Text),
Nov:Value(DataCardValue70.Text),
Dec:Value(DataCardValue71.Text),
ModifiedBy: User().Email
}
)
);


the main purpose of this was to simply copy the value frm pendig to actuals


please advise