I need to temporarily bypass a validation rule so a Flow can update record values. I'm trying to use this article: https://admin.salesforce.com/blog/2022/how-i-solved-it-bypass-validation-rules-in-flows
When I do this in a sandbox, the time reference the article uses !$Flow.CurrentDateTime and NOW() both return GMT instead of the Users local time. I did some testing and I get the same results in Production. Is there a way (without Apex) to get the Users local time in a Flow?
I followed the suggestions in this article and they didn't work for me:
https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8qp4SAB
Please let me know if there is another way to temporarily bypass a validation rule.
I have a custom Checkbox field Bypass_VR__c default value = Unchecked
Then I add and exemption in my Validation Rule Formula
Bypass_VR__c = FALSE
Then in my Flow in the FIRST Step I set
{!$Record.VR_Bypass__c} to TRUE
in the NEXT Step I do the rest of my updates
Then in my LAST Step I reset
{!$Record.VR_Bypass__c} to FALSE