Logging from a flow

Colleen
Tera Expert

Is there a workflow.info equivalent for a Flow Designer script?

 

I know that there is a log action, but I would like to update the flow log from a script step to help with debugging.

14 REPLIES 14

Mike_R
Kilo Patron
Kilo Patron

You can use the Log action

Mike_R_0-1667923118608.png

 

It will then show in the syslog table

instanceName.service-now.com/syslog_list.do?sysparm_query=sys_created_onONToday%40javascript%3Ags.daysAgoStart(0)%40javascript%3Ags.daysAgoEnd(0)&sysparm_view=

 

Hello Mike

As stated in my original post, I know I can use the log action.  I am asking whether the flow / subflow log can be written from a script. I've tried gs.info and gs.warn but nothing is showing in the system or application log.

Sorry I missed that.

Where are you writing this script? Is it in script step within a custom action, or are you using the inline script editor?

Hi Mike_R

 

Inline script editor. I'm trying to set a subflow output variable based on the value returned from a previous step, and it is not working.  I want to try debugging the script and gs.info etc. does not seem to be working.  That's why I asked whether I can write to the flow log from a script.