How to add multiple variables in action input in Flow designer

Chahak kindra
Tera Contributor

Hi All,

 

Can someone please suggest how to add multiple variables in action input in Flow designer.

Default value is 20 for adding variables but i need to add more variables, after updating in property as well still unable to add variables.

Also please suggest after adding in action inputs how to update in Flow.

Screenshots are attached.

 

Thanks.

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Chahak kindra 

yes default property value for "sn_flow_designer.max_action_vars" is 20, you can increase that.

Did you clear instance cache using cache.do and logout and login again?

Remember increasing that property will have performance impact.

Why not send JSON string and you can have multiple key value pairs and send more than 20 values as input.

then in flow action you can parse that JSON and extract those values and use in your flow action.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Chahak kindra 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Marcin FJS
Tera Contributor

I think that the fastest and most reasonable solution would be to use JSON . 

Bhuvan
Kilo Patron

@Chahak kindra 

 

It is not best practices to increase the default limit and you can use JSON input for this requirement.

 

Try below in your instance,

 

https://www.servicenow.com/community/developer-articles/flow-designer-for-each-foreach-converter-jso...

 

https://www.servicenow.com/docs/bundle/yokohama-build-workflows/page/administer/flow-designer/refere...

 

As per community guidelines, you can accept more than one answer as accepted solution. If my response helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan