In this regard what is the best way to set up actions to happen if the actions have to Create OR Update multiples of interdependent data?
I have a lot of workflows where there is one trigger then a series of thing have to happen.
Consider this setup.
Datasets:. Units, invoices. Invoices has a ‘thing’ of units.
Workflow is setup like this:
Step 1. If a unit exists, update it.
Step2. If unit does not exist, create it.
Step3. Do a search for the unit and add it to a search for an invoice.
Based on what is said above, I can’t reliably use the ‘do a search for unit’.
This means that it is possible that the Unit does not get added to the invoice.
The recommendation is to use ‘result of step x’, but we can use that. Because if the unit did not already exist, result of step 1 (update) is nothing, and if it does actually already exist and just needs updating, then the result of step 2 (create) will be nothing.
The User data type is the only type that has ‘return the user if already exists’ on the create operation. In this case it seems to make sense, but I don’t see that for others create operations for other ‘things’.
What would be the recommended setup here?
Appreciate the replies.