I have a trigger (Before Update Account) that have to work only if I click in my botton that is conected in a flow.
So I created a checkbox field called "Run_code__c". The standard value is false.
What I was thinking to do:
1- I set Run_code__c value to "true" in my flow and my trigger have to run
2 - Otherwise, if Run_code__c is false, my code won't run
But setting Run_code__c = true it's an update and the trigger will block it anyway haha
Do you have an Idea for my code only runs if the flow is running?