Use of this._convert in script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2024 02:48 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2024 02:53 AM - edited 03-26-2024 02:54 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2024 01:22 AM
@Naveenadevi S Is this thread answered?