If workflow initiation trigger : Before Record Loa...
# suiteflow
s
If workflow initiation trigger : Before Record Load What's the difference if the Action is Entry vs Before Record Load? Isnt it same thing?
t
yes, entry will trigger every time the state initiates - whereas if you have the WF set to trigger on "all", etc - then setting the action to Before Load etc would only run at that point
s
So, WF: Before Record load, Action: Entry WF: All, Action: Before Record load WF: Before record load, Action; Before record load All 3 are same thing it seems?
t
yes, but only because of the WF trigger state in your first and third example
s
Okay, Can you tell me in a simple example, which is more performative? WF: All , Action: Before record load WF: Before record load, Action: Entry
t
#2
as the WF will fire less often
if you check logs on #1, you'd see it firing repeatedly in before load, before submit and after submit
1
as an aside, where you are controlling the trigger at WF level (in this instance, before load) it is easier to diagnose behavior is you keep the action trigger on "entry" as then you can just change the WF trigger to after submit / before submit etc and not have to mess with the action trigger
whereas if you set the action trigger to before load, but change the wf trigger to after submit, it will never fire unless you also change the action trigger
1
s
Right cause the action would be impossible to fire there
1000 1
thanks for that
👍 1
Why is WF initiating 3 times even tho I have Before Record Load
t
(I think it's) Because it started the workflow "before load". If it has started before load, it will continue to assess each further stage to the end. Try setting the WF trigger to "before submit" and see if it still / also triggers on "before load".
s
Thanks Tristan. I set it to WF: Before record submit. Action; Before record submit
and then Log shows 2 initiations for Beor submit and After submit
The ONETRY (not sure why its named that) for before load is no longer there
t
aye, so the wf trigger is "cascading"
s
so I guess ... it still goes through the stages
t
whereas if you set it to "all", then it ENTERS the workflow at each stage
1
s
Very intersting thanks
👍 1