Re: [E] Re: Line Breaks via Remedy REST API

2018-06-25 Thread Kevin M Candelaria
This helps, Thanks! the problem was with my node js code.





From: ARSList  on behalf of Fred Grooms via 
ARSList 
Sent: Monday, June 25, 2018 11:51 AM
To: ARSList
Cc: frederick.w.gro...@verizon.com
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:arslist-boun...@arslist.org] On Behalf Of LJ LongWing
Sent: Monday, June 25, 2018 10:23 AM
To: arslist@arslist.org
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=DwMGaQ=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ=IuUzZpoH4G8vKkBa7TmXnNHc2-87dHrFn9R25Pv__1k=GMeg79ZR8m5YU66-MOlPrfuSquGH2OAgHx8vnrHmefw=zqk2e_GYc77pnKo5aBdF17cAdjifcv_AIN4ly-uzFnw=>,
 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 characterso 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 
mailto:ke...@temple.edu>> wrote:
{
"values": {

"Submitter": "appadmin",

"Work Log Submitter" :"Michael Jordan",

"Detailed Description" : "\nline break?\\nwhere is the
Line break?
",

"Incident Number":"INC02171963",

"Work Log Type" : "General Information",

"View Access" : "Public"
}
}
Api endpoint: api/arsys/v1/entry/HPD:WorkLog



From: ARSList mailto:arslist-boun...@arslist.org>> 
on behalf of LJ LongWing mailto:lj.longw...@gmail.com>>
Sent: Monday, June 25, 2018 9:46 AM
To: arslist@arslist.org<mailto:arslist@arslist.org>
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 
mailto:ke...@temple.edu>> 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
ARSList@arslist.org<mailto:ARSList@arslist.org>
https://mailman.rrr.se/cgi/listinfo/arslist<https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.rrr.se_cgi_listinfo_arslist=DwMGaQ=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ=IuUzZpoH4G8vKkBa7TmXnNHc2-87dHrFn9R25Pv__1k=GMeg79ZR8m5YU66-MOlPrfuSquGH2OAgHx8vnrHmefw=8cObvJw-X3ouFsQuCFrN77a6LTKkPJfZSBjHVEfDDmo=>
--
ARSList mailing list
ARSList@arslist.org<mailto:ARSList@arslist.org>
https://mailman.rrr.se/cgi/listinfo/arslist<https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.rrr.se_cgi_listinfo_arslist=DwMGaQ=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ=IuUzZpoH4G8vKkBa7TmXnNHc2-87dHrFn9R25Pv__1k=GMeg79ZR8m5YU66-MOlPrfuSquGH2OAgHx8vnrHmefw=8cObvJw-X3ouFsQuCFrN77a6LTKkPJfZSBjHVEfDDmo=>
-- 
ARSList mailing list
ARSList@arslist.org
https://mailman.rrr.se/cgi/listinfo/arslist


RE: [E] Re: Line Breaks via Remedy REST API

2018-06-25 Thread Fred Grooms via ARSList
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:arslist-boun...@arslist.org] On Behalf Of LJ LongWing
Sent: Monday, June 25, 2018 10:23 AM
To: arslist@arslist.org
Subject: [E] Re: Line Breaks via Remedy REST API

Ok...so, according to 
www.json.com,
 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 characterso 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 
mailto:ke...@temple.edu>> wrote:
{
"values": {

"Submitter”: “appadmin“,

"Work Log Submitter" :”Michael Jordan”,

"Detailed Description" : “\nline break?\\nwhere is the
Line break?
”,

"Incident Number”:”INC02171963”,

"Work Log Type" : "General Information",

"View Access" : “Public”
}
}
Api endpoint: api/arsys/v1/entry/HPD:WorkLog



From: ARSList mailto:arslist-boun...@arslist.org>> 
on behalf of LJ LongWing mailto:lj.longw...@gmail.com>>
Sent: Monday, June 25, 2018 9:46 AM
To: arslist@arslist.org
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 
mailto:ke...@temple.edu>> 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
ARSList@arslist.org
https://mailman.rrr.se/cgi/listinfo/arslist
--
ARSList mailing list
ARSList@arslist.org
https://mailman.rrr.se/cgi/listinfo/arslist
-- 
ARSList mailing list
ARSList@arslist.org
https://mailman.rrr.se/cgi/listinfo/arslist