This helps, Thanks! the problem was with my node js code.



________________________________
From: ARSList <[email protected]> on behalf of Fred Grooms via 
ARSList <[email protected]>
Sent: Monday, June 25, 2018 11:51 AM
To: ARSList
Cc: [email protected]
Subject: RE: [E] Re: Line Breaks via Remedy REST API

I see the  \n  which is  correct for a line break in a json.  Is the issue that 
there should be a line break before and after the line of "Line Break?".  If so 
then the system that created the json is not converting them correctly (as they 
should also have been converted in the json to be \n

The Detailed Description really should have been   "Detailed Description" : 
"\nline break?\\nwhere is the\nLine break?\n"



From: ARSList [mailto:[email protected]] On Behalf Of LJ LongWing
Sent: Monday, June 25, 2018 10:23 AM
To: [email protected]
Subject: [E] Re: Line Breaks via Remedy REST API

Ok...so, according to 
www.json.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.json.com&d=DwMGaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=IuUzZpoH4G8vKkBa7TmXnNHc2-87dHrFn9R25Pv__1k&m=GMeg79ZR8m5YU66-MOlPrfuSquGH2OAgHx8vnrHmefw&s=zqk2e_GYc77pnKo5aBdF17cAdjifcv_AIN4ly-uzFnw&e=>,
 a string need to contain "Any Unicode character except " or \ or control 
character".....so, white space and enters are typically going to be considered 
a control character....so they are not allowed to be used in strings.......so, 
you didn't specify what the inserted record looks like...but I suspect that 
it's cleaning out the control characters...

On Mon, Jun 25, 2018 at 9:05 AM Kevin M Candelaria 
<[email protected]<mailto:[email protected]>> wrote:
{
                                                                "values": {
                                                                                
"Submitter": "appadmin",
                                                                                
"Work Log Submitter" :"Michael Jordan",
                                                                                
"Detailed Description" : "\nline break?\\nwhere is the
Line break?
",
                                                                                
"Incident Number":"INC000002171963",
                                                                                
"Work Log Type" : "General Information",
                                                                                
"View Access" : "Public"
                                                                }
                                                }
Api endpoint: api/arsys/v1/entry/HPD:WorkLog


________________________________
From: ARSList <[email protected]<mailto:[email protected]>> 
on behalf of LJ LongWing <[email protected]<mailto:[email protected]>>
Sent: Monday, June 25, 2018 9:46 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: Line Breaks via Remedy REST API

Can you give an example of a body that you are providing that it's removing 
those?

On Mon, Jun 25, 2018 at 7:28 AM Kevin M Candelaria 
<[email protected]<mailto:[email protected]>> wrote:

Hello,



It appears that the Remedy REST API does not respect white space and line 
breaks when creating new Work Log entries. Does anyone have a solution for this 
(that preferably does not require opening Developer Studio)?
--
ARSList mailing list
[email protected]<mailto:[email protected]>
https://mailman.rrr.se/cgi/listinfo/arslist<https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.rrr.se_cgi_listinfo_arslist&d=DwMGaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=IuUzZpoH4G8vKkBa7TmXnNHc2-87dHrFn9R25Pv__1k&m=GMeg79ZR8m5YU66-MOlPrfuSquGH2OAgHx8vnrHmefw&s=8cObvJw-X3ouFsQuCFrN77a6LTKkPJfZSBjHVEfDDmo&e=>
--
ARSList mailing list
[email protected]<mailto:[email protected]>
https://mailman.rrr.se/cgi/listinfo/arslist<https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.rrr.se_cgi_listinfo_arslist&d=DwMGaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=IuUzZpoH4G8vKkBa7TmXnNHc2-87dHrFn9R25Pv__1k&m=GMeg79ZR8m5YU66-MOlPrfuSquGH2OAgHx8vnrHmefw&s=8cObvJw-X3ouFsQuCFrN77a6LTKkPJfZSBjHVEfDDmo&e=>
-- 
ARSList mailing list
[email protected]
https://mailman.rrr.se/cgi/listinfo/arslist

Reply via email to