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
Tarak SilliniTarak Sillini 

Notifications & Assigment Rules

Is there any plan to add Notifications & Assigment Rules support to the sforce api? this, from my point of view, is an important feature.
Scott BScott B

You can now access the assignment rules via the API.  It works for inserts ( not sure about update ).  Its not anywhere in the documentation ( at least that I can find ).  You add a param to the insert call ( where you set the type and session ) called autoAssign=true and it uses the auto assign rules.  I have tested this for cases, not yet for leads but am told it works.

Here is a Java xml rpc code snippet for reference:

Hashtable params = new Hashtable();

params.put( "version", "1.8" );
params.put( "type", "case" );
params.put( "record", hashtable );
params.put( "autoAssign", new Boolean( true ) );

and off you go.

Hope this helps

Tarak SilliniTarak Sillini
Thanks, thats great news. do you know if this trigger the associated Notifications?