Thanks for sharing. I was having trouble with a flow when trying to update a record that has a validation rule in it. I was able to implement this in my org, and it also works when getting a collection in the Get Records, it just needs some adjustments, but it works!
Nice idea, if a flow needs to deactivated temporarily at org level or for specific profile/user, we can use hierarchy based custom setting in a formula like toggle
In terms of order of execution, shouldn't this be a problem? Since validation rules are executed before flows, shoildnt the validation rule still throw the error?
I don't think so, because at the time the Validation rule runs, the flow updating the related record hasn't made any changes yet. This is my understanding of the events A new Camp Activity is created and saved -> Validation rules will fire, but no changes have been made to a Camper Credit yet -> the flow will run, and update the related Camper credit record -> Validation rules will fire for the Camper Credit record, but will not give an error because of the toggle.
Thanks for sharing. I was having trouble with a flow when trying to update a record that has a validation rule in it. I was able to implement this in my org, and it also works when getting a collection in the Get Records, it just needs some adjustments, but it works!
Simple but clever. Thank you.
Amazing! Thanks for the solution!
Nice idea, if a flow needs to deactivated temporarily at org level or for specific profile/user, we can use hierarchy based custom setting in a formula like toggle
Amazing simple magic.Thanks a lot
In terms of order of execution, shouldn't this be a problem? Since validation rules are executed before flows, shoildnt the validation rule still throw the error?
I don't think so, because at the time the Validation rule runs, the flow updating the related record hasn't made any changes yet. This is my understanding of the events
A new Camp Activity is created and saved -> Validation rules will fire, but no changes have been made to a Camper Credit yet -> the flow will run, and update the related Camper credit record -> Validation rules will fire for the Camper Credit record, but will not give an error because of the toggle.
How to execute validation rule instead of bypassing it before flow execution?
Check out the Validation Checker Action at UnofficialSF
My favorite😍salesforce
Creative hack, thanks for sharing!
Thank youuu😍
I would have recommended using Session based permission set.
Why?
Session based permission set is cool, but how do you get around mixed dml? Once you activate the permission that's a setup change, so you're stuck.
@@cadillacben a lot more work you have received your
@@cadillacben a lot more work you have received your
@@cadillacben l