Forum Discussion
MarkShnier__You
Qrew Legend
5 years agoThere is safe way to do this without generating Automation failures.
Make the creation of the parent a 2 step process.
Automation #1 called Request Creation of Parent sets a date time field called perhaps [Date Time to Request Creation of Parent] to the value in the formula field [Current date/time] and it is triggered when a child is created and the the lookup of [Parent Exists?] is false.
Automation # 2 called Actually Create Parent is triggered when [Date Time to Request Creation of Parent] changes and and the Parent does not exist. It will actually create the Parent.
What will happen is that if say 10 records are all imported at once and among them they need 5 parents created. Automation #1 will fire. But then all the requests to Automation #2 will nicely queue up and be processed single file.
What you will see will be that Automation #2 fires 1 time but if you drill down you will see that it has 5 actions - even though the Automation itself only has 1 Action.
You should experiment with an import or grid edit mass update or mass add records in grid edit to see how this works beautifully.
I have done this in situations where there are hundreds of Actions generated in one "run" even though the Automation might have just 1 or two action steps.
The whole trick is in the 2 step process.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
Make the creation of the parent a 2 step process.
Automation #1 called Request Creation of Parent sets a date time field called perhaps [Date Time to Request Creation of Parent] to the value in the formula field [Current date/time] and it is triggered when a child is created and the the lookup of [Parent Exists?] is false.
Automation # 2 called Actually Create Parent is triggered when [Date Time to Request Creation of Parent] changes and and the Parent does not exist. It will actually create the Parent.
What will happen is that if say 10 records are all imported at once and among them they need 5 parents created. Automation #1 will fire. But then all the requests to Automation #2 will nicely queue up and be processed single file.
What you will see will be that Automation #2 fires 1 time but if you drill down you will see that it has 5 actions - even though the Automation itself only has 1 Action.
You should experiment with an import or grid edit mass update or mass add records in grid edit to see how this works beautifully.
I have done this in situations where there are hundreds of Actions generated in one "run" even though the Automation might have just 1 or two action steps.
The whole trick is in the 2 step process.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
AlexWilkinson
5 years agoQrew Assistant Captain
It would be necessary to check for existing of the Parent in Automation #2, would it not?
Essentially, Automation #1 is creating a virtual queue, and Automation #2 is processing that queue. Clever.
Minor reservation: the method requires a sequence of Automations where the sequencing is implicit in the logic of the two Automations. That makes it slightly more vulnerable than a single-Automation approach such as my 4a or 4c, where the sequence is explicitly specified.
Thanks for taking the time to spell out a good alternative.
------------------------------
Alex Wilkinson
------------------------------
Essentially, Automation #1 is creating a virtual queue, and Automation #2 is processing that queue. Clever.
Minor reservation: the method requires a sequence of Automations where the sequencing is implicit in the logic of the two Automations. That makes it slightly more vulnerable than a single-Automation approach such as my 4a or 4c, where the sequence is explicitly specified.
Thanks for taking the time to spell out a good alternative.
------------------------------
Alex Wilkinson
------------------------------
- MarkShnier__You5 years ago
Qrew Legend
Yes, for sure Automaton #2 needs to make sure that the Parent still does not exists. I will update my post above..
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------- MarkShnier__You5 years ago
Qrew Legend
And yes you can have a Safety Net Automation run each night to trigger a saved table to table each night to mass update the field [Date Time to Request Creation of Parent] for orphans to be sure that here was no hiccup in the live process.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------