Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

SCRIPT INCLUDE ISSUE IN FETCHING THE CALLER DETAILS

Not applicable

Hello guys, 

I have created script include to fetch the caller details , from database, but unfortunately the script is not working could someone please help me on this ,

1 REPLY 1

Fabian Kunzke
Mega Sage

Hey,

First of, you can utilize g_form.getReference() for this, which is way easier. A great blog about this can be found here.

 

As to why your script does not work:

My assumption is the return of the guser GlideRecord. Here you don't just return the result you want, but the full glide record. I assume, that this causes some issues. Rather put the result in a separate object in your script include and return it as a simple object.

 

Regards

Fabian