I have a table with several "linked to another record" fields and a multi-select list with one option for each linked field. I would like the list to be updated automatically based on the following logic:
- If the linked field is empty, the option related to that field shall not be selected in the multi-select.
- If the linked field is not empty, the option related to that field shall be selected in the multi-select.
It looks quite easy to do with a script, but laborious with an automation because of the way automations update lists. They do not add or remove options based on what has changed but instead is asking me to tell what options shall be selected and which ones not. This forces me to start my removing all the previously selected options in the multi-select list, and then define the automation based on all the potential combinations of empty and non-empty linked fields. With a limit of 25 conditional actions in an automation, I can have up to 5 linked fields and related options in the multi-select list as they will result in 25 combinations to factor.
I was wondering if someone has a better approach to do that in an automation than factoring all the combinations or even better, if someone has ever developed a script that does that.
Thanks you


