Hi team,
I have written a expression rule to update a particular row of a record. The Expression rule is working as expected while unit testing but does not work when called in Script task.Could someone please help?
Discussion posts and replies are publicly visible
My first guess is because local!leaveData is a list of record, and you're calling a!update() as if it's a single instance of that record type data. To test this, change line 5 to " data: local!leaveData[1]" and see if it makes any difference.