• shmessiha
  • NEWBIE
  • 0 Points
  • Member since 2009

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

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 

 
I am trying to create a custom Page Layout object into Salesforce Lead Object from my php web application. I found code samples that create custom objects, however did not find anything for creating Layout objects within standard objects. Also i can't retrieve any Layout objects that i have created from the salesforce website. can someone help please?

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 '&amp;'
  • '"' (double quote) becomes '&quot;' when ENT_NOQUOTES is not set.
  • ''' (single quote) becomes '&#039;' 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