+ Start a Discussion
Joe Rodden 7Joe Rodden 7 

Assignment Rules firing from API update

I am updating a lead via API using a python script. Lead assignment rule fire and reassign lead eveytime the script updates the lead record. Any idea why this is happening? It is only if this particular integration updates a lead that they re-fire. We have no functionality causing them to fire upon edit and there is nothing in the integration that is specifically saying they should fire.
Daniel BallingerDaniel Ballinger
Check your AssignmentRuleHeader (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_header_assignmentruleheader.htm) if you are using the SOAP API from Python. Rest is more difficult as it doesn't currently have the same level of support - Add Control of Assignment Rule Triggering to Rest API (https://success.salesforce.com/ideaView?id=08730000000jjoPAAQ)