How would I print a log message in side a Flow Designer Action scripts

Rajive
Tera Expert

Hello experts, 

Hope you can help me with my query,
One of my flow designer action scripts is behaving differently and would like to print some variables and see what values I'm getting from them,
Please see the screenshot which I'm trying to print a log.

I was trying to use gs.debug / gs.info > no errors but couldn't find the values printed anywhere. 

If you can guide me on what to use in the scripts (gs.debug / gs.info) and where can I see them once printed would be great.

Many thanks in advance.

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Rajive ,

Use gs.info() because it supports in all the scopes.

You can also check the system logs.

 

View solution in original post

6 REPLIES 6

Community Alums
Not applicable

Hi @Rajive ,

Use gs.info() because it supports in all the scopes.

You can also check the system logs.

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Rajive 

gs.log() won't work if your flow is not in global scope so you need to use gs.info()

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Rajive
Tera Expert

Thank you Ankur and Sandeep, Issue resolved.

gs.info is being used and verified in the system logs. Many thanks for the help 🙂

Rajive
Tera Expert

Thank you Ankur and Sandeep, Issue resolved.

gs.info is being used and verified in the system logs. Many thanks for the help 🙂