Unable to get output in widget

Drishti
Tera Guru

Hi Community,

I am new to portal and the requirement is whenever user is trying to submit survey  from portal, they should get short description for  that HR case.
I have completed my script but the thing is every time, I am getting {} as an output.
Attaching screenshot for reference, Please guide where I am going wrong.

 

Screenshot 2024-12-25 at 11.26.34 PM.pngScreenshot 2024-12-25 at 11.31.09 PM.png

1 ACCEPTED SOLUTION

sarthakkash
Kilo Guru

Hi @Drishti 

 

In Server side at line 37 please update this with 

data.get_description = grCase.short_description.toString();

 

I tried your problem in my PDI too 

sarthakkash_0-1735153397450.png

 

Please mark my answer correct and helpful if this works for you 

 

Thanks and Regards 

Sarthak

View solution in original post

2 REPLIES 2

sarthakkash
Kilo Guru

Hi @Drishti 

 

In Server side at line 37 please update this with 

data.get_description = grCase.short_description.toString();

 

I tried your problem in my PDI too 

sarthakkash_0-1735153397450.png

 

Please mark my answer correct and helpful if this works for you 

 

Thanks and Regards 

Sarthak

Ankur Bawiskar
Tera Patron
Tera Patron

@Drishti

did you debug in server script if you are able to query at line 34?

Did it go inside the IF condition? if yes then it should work fine

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader