+ Start a Discussion
agrassiagrassi 

S2S & Assignment Rules

Hello everyone. I would appreciate any help regarding this situation:

 

 

  • Two orgs A and B sharing Leads across a S2S connection (bi-directional)
  • A set of assignment rules defined on org B
When a shared Lead is updated in org A, the changes are correctly propagated to org B, but the assignment rules are not executed on org B for this updated Lead.
Now:
  • When editing by hand, there's a checkbox that says "Assign using active assignment rule".
  • When updating from Apex, we can set the Database.DMLOptions.assignmentRuleHeader.useDefaultRule to true, to have the assignment rule applied after the record update.
My question is:
is there any way to have the assignment rules in org B executed, when I update the Lead in org A?
When editing by hand, checking "Assign using active assignment rule" applies the rules and performs any ownership change in the LOCAL org. Does the Database.DMLOptions.assignmentRuleHeader.useDefaultRule have any effect when updating through S2S?
Thanks,
Antonio