Python: Sending the AssignmentRule with a case to SalesForce

Asked by kurt campher

Hi

So I've been trying to send the AssignmentRule flag with the case data to SalesForce. Problem is I have no idea how to do that. I have checked the code but its a bit confusing.

Could you possible give me some direction.

thanks

Question information

Language:
English Edit question
Status:
Solved
For:
pyax Edit question
Assignee:
No assignee Edit question
Solved by:
kurt campher
Solved:
Last query:
Last reply:
Revision history for this message
kurt campher (campherkurt2) said :
#1

Ok just answered my own question:

>> from pyax.connection import Connection
>> self.connection = Connection.connect(<username>, <password_token_thing> (password, api_token))
>> self.connection.context.use_default_assignment_rule = True

Thats it.

So all cases/leads sent to SalesForce via the Pyax API will immediately trigger the assignment rule.

thanks