Forum Discussion
Provisioning SiteScript generation changes causing errors in execution.
I had a similar issue with my flow. It worked fine without the bindings in the body of my REST call until last Friday, but thanks to DeanOfReply's and Stephen600's examples I was able to figure it out. If you're using the setProperty function to rename your new list, the body should look something like this in order to add the bindings:
{"script": "{\"actions\": [@{replace(replace(string(setProperty(body('Parse_JSON')?['actions'][0],'listName', variables('BackupTitle'))),'\','\\'),'"','\"')}], \"bindings\": @{replace(replace(string(body('Parse_JSON')?['bindings']),'\','\\'),'"','\"')}}"}
In my case, I'm using the output of a Parse JSON step instead of a variable to store the list structure. If you're renaming the list in a variable, you may need to use addProperty to add bindings back into your JSON since setProperty will only return the actions part when you use it to set the new name.