function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Venkateswarlu ChVenkateswarlu Ch 

Bypass Validation Rules & WF rules in Salesforce

we have 2 objects A [Field:code_A__c] & B [Field: Code_B___c]. whenever records insert or updates in B object with code_B___c, we query A object code_A__c & updates.
I want to bypass all Validation rules & WF rules in A object when the request from B object in Single Apex Transaction level for rest of all contexts it should execute all validations rules & WF Rules on A object
Tried options: custom Labels - Not fit >> user interaction required Custom Setting: More it's wide/profile/user based --> Not Apex Transaction based I'm thinking about creating a new field on A object & do track from flow B object, add in Validation rules & WF rules.
Any help/solution is appreciated.