javascriptvariablesservicenowservicenow-rest-api

In Service Now Virtual Agent designer, Can we create a variable in 'Script Output' or 'Script Action' component and use it elsewhere in flow?


I have created a flow in service now virtual agent designer. In one step, it interacts with Watson and fetches some data. My requirement is to save this data and use it further in the flow. Is it possible? Code Flow


Solution

  • Yes its possible by attaching the property to the vaVars object. Whatever you fetch in the Watson call, just attach it by creating a property on the vaVars object, and it will become available to subsequent flow actions.

    Do it in the Watson call script action that you are using.