Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

SCRIPT INCLUDE ISSUE IN FETCHING THE CALLER DETAILS

Community Alums
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
Kilo Sage
Kilo 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