• victoravalos
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies

 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"

 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"

Hello,

 

I need your help to fix a problem that i have with my application using salesforce API,

 

I'm using PHP development invironment. 

 

I'm used to send XML request to create/update salesforce objects [leads, contacts or activity history].

And to send the XML request, i have to escape the XML special characters so i can send a valid XML request.

Special characters are like:

  • '&' (ampersand) becomes '&'
  • '"' (double quote) becomes '"' when ENT_NOQUOTES is not set.
  • ''' (single quote) becomes ''' only when ENT_QUOTES is set.
  • '<' (less than) becomes '&lt;'
  • '>' (greater than) becomes '&gt;'

Note: if i didn't escape these special characters then the request will fail.

 

The problem is that these special characters aren't mapped back on the server to thier equivalent, i mean if want to set the description of a lead into:

this is a customer description for a lead with these special & " ' < > characters.

Then what i find on Salesforce is:

 this is a customer description for a lead with these special &amp; &quot; &#039; &lt; &gt; characters.

Which doesn't make sense.

Please i need your help on how to fix this issue.

 

Thanks in advance

 

eng.imad.atia@gmail.com