Hi,
I created a script which takes data in a project financial table and updates special table with payments report.
I'm going to setup it to run daily or weekly automation, and add it to many projects in different bases.
Problem with updating a single-select field 'Type' (of operation), when new Types appear.
here is the issue, automation can't do that (script extension works ok):
thinking about workaround - use preparation script, compare and check whether new types available,
output them in variable 'newtypes', find any random record in destination, loop Update it's 'Type' through the list of 'newtypes', then return the old value.
Then run main script.
More clean solution, to avoid affecting Modified Date of existing record could be - Create new record, Loop update it with all new types, then delete it (by script).
Unfortunately, Loop must be in the end. Can't return old value, can't run main script
(I put 'List of record IDs' in 'Record ID'(to update), it's not quite correct, but since I set maximum of Find Records to 1, it should work)
Now I think it can be done with 2 automations. one checks and updates new Types,
second, running 2-5 minutes after first - execute main script
not a good solution, but others are even worse.
Does anybody have better ideas - how to solve Single-Select new options problem when using automation script?