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
victoravalosvictoravalos 

s-force.php API fails - Update task 'description' field with html text...

 get an error whenever I try to do this.  

What's the best way to insert HTML text into this field with clickable URL's.


This is the error that I'm getting...
"Fatal error: Uncaught SoapFault exception: [soapenv:Client] Unexpected element {}p"

"SforceBaseClient.php:324 Stack trace: #0 [internal function]: SoapClient->__call('create', Array) #1"

SuperfellSuperfell

IIRC, the php tools for whatever reason, don't xml encode the text, so if you have text with angle brackets in it (like html) you have to xml encode that yourself before calling the toolkit.

victoravalosvictoravalos

Thank you for the response.  

 

What's a good resource to get a sample of this 'hybrid' solution.  

 

How to 'manually' encode the XML while still using the sforce-php API toolkit to submit the file?