How to trigger BR in HIGH order

Community Alums
Not applicable

Hi Team,

 

We have 2 BRs written. 1 BR(runs on Update/Insert) is written at order 100 and my BR(runs Update) is written at order 299.

 

BR at order 100 is still overriding field values of my BR. Can you tell how to make BR at order 299 override BR at 100.

 

Let me know how to achieve this.

 

BR,

Ankur

 

 

6 REPLIES 6

HIROSHI SATOH
Mega Sage

Potential Causes and Solutions:

  1. Conditions and Scope:

    • Ensure your BR's condition is met: Double-check that the condition in your BR is specific enough to ensure it runs only when you want it to. If the condition of the lower-order BR is always met, it will execute first, regardless of the order.
    • Verify the scope: Make sure your BR's scope is set correctly. If the lower-order BR has a broader scope (e.g., 'after'), it might run after your BR even if it has a lower order.
  2. Asynchronous Processing:

    • Check for asynchronous updates: If any updates are happening asynchronously (e.g., using background scripts or scheduled jobs), they might be overriding your BR's changes.
  3. Other Scripts and Integrations:

    • Identify conflicting scripts: Look for other scripts, client scripts, or integrations that might be modifying the same fields.
    • Review data policies: Ensure there are no data policies or ACLs preventing your BR from making the desired changes.
  4. Caching:

    • Clear caches: If you're using UI actions or client scripts that cache data, clearing the cache might help.
  5. Order and Execution:

    • Verify order: While the order number generally determines the execution sequence, there can be exceptions. Ensure there are no errors or unexpected behaviors in the lower-order BR that might be causing it to run again.
    • Consider using 'before' and 'after' scopes: If you want to ensure your BR runs after all other updates, set its scope to 'after'.

Are the conditions for 100 and 299 the same? If they are the same, the write for 100 will take priority.

Dnyaneshwaree
Mega Sage

Hello @Community Alums.,

Could you please let me know that, both BRs are Before BRs or after BRs?


Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

Community Alums
Not applicable

BR with order 100 is Before Update and my BR is async