Scripted Rest Api not displaying data

SNow Learner41
Tera Contributor

Hi Everyone,

i am trying create one incident using scripted Rest api and postman, everything is going perfect but the fetching of short_description it is showing null i don't know where did i made a mistake can any one please help me to resolve this issue.

 

Screenshot 2024-02-27 070308.pngScreenshot 2024-02-27 070639.png

Thank You,

Kiran Kumar.

4 REPLIES 4

garylfry
Tera Contributor

In your body you are passing in the Short Description property name is ShortDesc  but in your code you have 

parsedData.short_description  this should be parsedData.ShortDesc   (will also be case sensitive).  The same is true of Description.  Property name is Desc but code is parsedData.Description  should be parsedData.Desc

Hi garylfry,

Thank you for your response i did the changes and still it is not fetching the short_description

Screenshot 2024-02-28 141243.pngScreenshot 2024-02-28 141340.png

garylfry
Tera Contributor

let me take a deeper look will get back to you today

Hi garylfry,

Thank You for response and waiting for your solution.