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
JimAJimA 

Creating case fail with '&' in description

Can anyone tell me what you need to do at an '&' if someone enters one when creating a case in the API.  I tried to escape it with a \ but it still fails to create the case if someone enters one.
 
Thanks!
msimondsmsimonds
Have you tried htmlspecialchars

That will change the & into XML and allow it to be inserted into Salesforce or vice versa

~Mike