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.

Use of this._convert in script include

Naveenadevi S
Tera Contributor

Hi all,

        Can anyone explain the function of this._convert in script include

For example, in below line

if (gRecord.next()) {

quickLinksMap[gRecord.sys_id] = this._convert(gRecord, 1);

}

What does this._covert do?

 

Thanks in advance

 

 

          

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Any function name in script include that starts with _ is a private function, which means it can only be called form within the script include itself (or child script include). The way to call this function is using this.

 

Another similar thread for you to read -> Solved: Private Function - ServiceNow Community

-Anurag

@Naveenadevi S  Is this thread answered?

-Anurag