http://community.salesforce.com/sforce/board/message?board.id=PerlDevelopment&message.id=1199
Second Item in this thread
$updateFields = array (
’Id’ => $id,
’MailingCity’ => ’New York’,
’MailingState’ => ’NY’
);
$sObject1 = new SObject();
$sObject1->fields = $updateFields;
$sObject1->type = ’Contact’;
$updateResponse = $this->mySforceConnection->update(array ($sObject1));
When I create a .php page to excute the above code, it works.
When I create a MODX Snippet and execute this code from a page I get the following
Fatal error: Call to a member function update() on a non-object in E:\MODX\manager\includes\document.parser.class.inc.php(770) : eval()’d code on line 26
How do I execute my UPDATE call without having it Parsed (EVAL’d).
I have no problems querying data from Salesforce, so I know I have the API configured correctly.
Thanks in advance,
Jason Buck
http://modx.tsia.com is the current URL