An issue with Script Variable

moudjibb
Tera Contributor

Hi all,

I am new to ServiceNow and I am struggling with an issue on Zurich edition. I am currently  following this exercise (Developing for Flow Designer) but unable to complete it because I get an error when I try to create an input variable. I get the error message ' try again'. 

 

To replicate this on Zurich release,

1. Go to   SERVICENOW APPLICATION DEVELOPER - Developing for Flow Designer -  Exercise: Create an Action 

When you try to complete this part . 

"

Add a property_name input variable.

  1. In the Input Variables section, click the Create Variable link."

The error try again shows up.

2 REPLIES 2

GlideFather
Tera Patron

ahoy @moudjibb,

 

it's not so clear what you are trying to achieve, could you possibly add a screenshot or two?

---
Where the rules are real, you'll find me

Tanushree Maiti
Tera Patron

Hi @moudjibb 

 

Input variables can only be passed to Subflows and Actions. Standard Flows cannot receive inputs directly.

 

Create a Subflow that encapsulates the required Actions, and then invoke the Subflow through a single call from your script. This approach centralizes the logic within Flow Designer, improves maintainability, and reduces the amount of scripting required.

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti