invokeURL to change custom field
I have a deluge script that currently runs as a Schedule. It works exactly as intended, however I've recently been informed by Zoho that there's some mechanism in place to block changes made by a script when it runs on a schedule from being detected by other things. When I run the script manually it changes a field, I have a Flow configured to detect this field change and then do something. However when the script runs at the scheduled time, Flow doesn't detect this. Which makes no sense to me, as Flow is a completely different thing, which should detect a field change, no where does it say "ignore changes if made at this scheduled time" and since it works when I run the script manually, I don't understand how I could even test this since in either scenario it's a change being made by a script, I'm never making the change manually. So, Zoho's solution is to send an API request using invokeURL to make the change.
How can I make this do the same using invokeURL?
- searchValue = {"status":"Recurring Reminder"};
- response = zoho.desk.searchRecords(ORGID,"tickets",searchValue,0,100);
- ticketList = response.get("data");
- info ticketList;
- for each rec in ticketList
- {
- recordValue = {"cf":{"cf_automation_running":"true"}};
- update = zoho.desk.update(ORGID,"tickets",rec.get("id"),recordValue);
- info update;
- }