How can I print out a message in the system log?

med1
Kilo Contributor

Hi all, Im new to ServiceNow I would like some help with:

How can I print out a message in the system log?

The workflow assigned to this catalogue item should print out a log in the system logs to say "User <name of the user> has ordered more <RAM or CPU> for server <server name>". The same message should be written also in the Work Notes field of the Requested Item. Set the

state of the RITM to Closed complete after writing the messages in the previous step.

Many thanks!

 

30 REPLIES 30

med1
Kilo Contributor

The reason why I asked in which kind of script file i'll have to use the code is because this error (screenshot). I can not find gs.info() your link

 

find_real_file.png

Hi med,

 

As I mentioned above,

gs can only be used in server side scripts.

GlideSystem is server side API.

Hi Med,

This can only be use in the Server-side Debugging.

Thanks,

Aman

John242
Giga Contributor

Hello Med,

Did you solve this issue, because I have a similar problem as yours? 

Please, let me know if you can help me.

 

Kind regards,

Andi