[Date Prev] [Date Next] [Prev in Thread] [Next in Thread] [Date Index] [Thread Index]

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-bounces@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 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 <Kevin@temple.edu> 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 <arslist-bounces@arslist.org> on behalf of LJ LongWing <lj.longwing@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 <Kevin@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