The CreatorCon Call for Content is officially open! Get started here.

How to create multirow variable set as input in Dynamic Flow in Flow Designer

gjz
Mega Sage

I have several similar catalog items that use the same multirow variable set.  I would like to create a dynamic subflow so I don't have to repeat the logic several times, but I'm stuck on the input.

 

I'm not sure how to create the Array.Object fields and I haven't found any example, documentation, video or community post for help.

 

This is the MRVS (internal name is new_assets)

gjz_0-1718666941184.png

model_category references cmdb_model_category.

new_asset_tag references alm_hardware

reserved_for references sys_user

 

I tried setting the input to the dynamic subflow as follows:

gjz_1-1718667052631.png

1. Can I use any naming convention I want for the Array.Object?  I noticed the subsequent fields all started with MRVS and MRVS_Assets.  What's the syntax, is the underscore required?

2. I can't select Reference as the data type.  I can work with a string as long as it's either the display value or sys_id, but when I tested the dynamic flow, no data appeared. 

3. When I tried to test the dynamic flow, it didn't populate the MRVS input variables from the RITM.  How can I test it?

 

1 REPLY 1

Dnyaneshwaree
Mega Sage

Hello @gjz ,

Please refer below image and article:

Dnyaneshwaree_0-1718692308419.png


https://www.servicenow.com/community/itsm-articles/how-to-access-variables-set-multi-variable-set-va...

Please refer below article if instead of sub-flow you are able to use logic in main flow:

https://www.servicenow.com/community/workflow-automation-articles/how-to-use-multirow-variable-sets-...

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru