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
thechadthechad 

AutoAssignmentRule No Worky on New Soap URL -> PHP Client

Greetings...

I am using the latest version (for php 4) of the salesforce php client (I think 5.4).  My autoassignment rule worked perfectly until I updated the url for the soap call from:

https://www.salesforce.com/services/Soap/u/4.0

TO:

https://www.salesforce.com/services/Soap/u/7.0

Now the assignment rule doesn't work... and everything else does.  Here is my function

function addAutoAssign($autoAssignId) {
        $header = new SOAP_Header(
                '{urn:enterprise.soap.sforce.com}SaveOptions',
                NULL,
                array('autoAssign' => 'true', 'assignmentRuleId'=>$autoAssignId),
                0);
               
        $this->addHeader($header);   
    }

Any ideas what I need to change to make this work again?
SuperfellSuperfell
Check the current docs, SaveOptions is not longer part of the API, you need to use the AssignmentRuleHeader instead.