When we try to invoke the flow designer action from script, we are not getting desired output (undefined).Issue There is an action created in flow designer which works well from flow designer itself. However, when try to invoke the same action from script and running in the background script, not getting output as desired. 1. Navigate to flow designer2. Provide required inputs and click on Test3. Will get a response from flow4. Copy the script from More actions > Code snippet, which is in flow designer5. Run the script in background and we see output as : "undefined"ReleaseNew YorkCauseAdding gs.print('exception: ' + ex); reveals the error—} catch (ex) {gs.print('exception: ' + ex);var message = ex.getMessage();gs.error(message);} Output- *** Script: exception: JavaException: java.lang.IllegalArgumentException: objectToMap: invalid type class com.glide.vars2.GlideElementVariable for object property sapusersThis error means that while FlowAPI was validating the types of the inputs it found unexpected type "class com.glide.vars2.GlideElementVariable".ResolutionAltering the script to convert all inputs to strings by using '' + appears to resolve the issue.Incorrect usage -> inputs['sapusers'] = g1.variables.sap_user_role; // ListCorrect usage -> inputs['sapusers'] = '' + g1.variables.sap_user_role; // ListRelated LinksCreate code snippets for flows, sub-flows, and actionshttps://docs.servicenow.com/csh?topicname=flow-design-code-snippet.html&version=latest