I have a patch function that updates a sharepoint list with various actions, I'm trying to add an action into the Patch but it errors out when I do.
Here's what I add in and which causes an error
,withinsla: If(DPCurrentSLADate.SelectedDate<=DateToday,"Yes","No"})
I haven't put the rest of the patch bits in they work fine, this is the last item hence ending with the squigly and plain brackets.
DateToday is a global variable that is set on app start for todays date.
Basically I'm trying to update a text field (withinsla) with either "Yes" or " No" depending on if it's within the SLA when Patch is done..
Is there a better way for me to approach it? or is there something obvious as to why It's not working? As I said if I take the above out of the patch statement (which updates other fields) all works fine. have tried various options of brackers in different places etc..
TIA