What is meant by this._log() in servicenow

Community Alums
Not applicable

HI Team,

 

I can see below function in one of the script include used in our environment.

processOrder: function(order, lineitem) {
this._log('SF SI Order: ', JSON.stringify(order));
this._log('SF Order Line Item Payload: ', JSON.stringify(lineitem));

 

Can you tell what is meant by this._log ?

 

BR,

Ankur

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

This would be a function in the same script and its a private function, so cannot be called from out of this script.

Check Berny's response here

Problem with calling function inside the same script include - Developer Community - Question - Serv...

-Anurag

-Anurag

View solution in original post

2 REPLIES 2

suvro
Mega Sage
Mega Sage

There must be a method defined in that script include with that name. All the methods that starts with _ are private methods which can be called from inside the script include only

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

This would be a function in the same script and its a private function, so cannot be called from out of this script.

Check Berny's response here

Problem with calling function inside the same script include - Developer Community - Question - Serv...

-Anurag

-Anurag