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
alex_from_parisalex_from_paris 

API and carriage return / line feed for a long text area

Hello

I am using SF Soap API

I would like to add carriage return line feed in a long text area

I have tried  <urn1:Log__c>value1\nvalue2</urn1:Log__c> or <urn1:Log__c>value1\r\nvalue2</urn1:Log__c>

And when I go to SF there is no carriage return but \n or \n\r instead of carriage return

What is the solution ?

Thanks for your help

regards

Best Answer chosen by Admin (Salesforce Developers) 
ahab1372ahab1372

haven't tried but aren't there other line breaks in soap messages?

 

Try this link, second post, or search Google for soap line breaks:

http://objectmix.com/xml-soap/83278-r-n-13-10-carriage-return-line-feed-web-services.html

 

"I've done a soap extension that replace /r/n with &#x000d; and &#x000a;  [...]"

All Answers

ahab1372ahab1372

haven't tried but aren't there other line breaks in soap messages?

 

Try this link, second post, or search Google for soap line breaks:

http://objectmix.com/xml-soap/83278-r-n-13-10-carriage-return-line-feed-web-services.html

 

"I've done a soap extension that replace /r/n with &#x000d; and &#x000a;  [...]"

This was selected as the best answer
alex_from_parisalex_from_paris

&#x000d;&#x000a;  works well

thanks