Multirow variable set in flow designer

Servicenow Use4
Kilo Guru

Hello Experts!

 

Here's the use case: I have a record producer with a couple of fields and a MVRS. Once the form is submitted from portal, a back-end script runs to populate the MVRS.

 

I am trying to check if after the record is created, there is any data in the MVRS or not.

I have used OOTB 'Get Catalog variables' action and moved it to available list.

The next job is: If the MVRS is empty, I need to call a subflow.

 

I'm not sure how to proceed. Can someone please help me with this?

 

Thanks!!

 

P.S: I'm working in the HR Scope. The record created is an HR Case. In case this info is required 🙂

1 ACCEPTED SOLUTION

So beyond the if statement I showcased that determines if its empty, what are you having trouble with?

 

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Servicenow Use4 

you can use flow variable and set the MRVS value in it.

Then check if it's empty or not.

If not then call subflow

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

Hey @Ankur Bawiskar 

Thanks for replying. Could you tell me what should be the type of the variable?

I'd be grateful if you could help me with some screenshots to solve this 🙂

 

ServicenowUse4_1-1733659097626.png

 

 

 

Thanks in advance!

P. S: I'm new to Flow Designer. 

@Servicenow Use4 

you can have type as string

OR

As mentioned by Rob you can simply use IF statement and check the value

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

Uncle Rob
Kilo Patron

What part are you having trouble with?  Evaluating if the MRVS is empty?  Or executing the subflow?

CHECK IF MRVS IS EMPTY

Simple IF logic should suffice

UncleRob_0-1733659478215.png


RUN A SUBFLOW
Its unclear what you're doing here.  Are you triggering a subflow if there is NO MRVS value?  If so just define the subflow and plug it in here.  Are you looping through the MRVS records and running a subflow for each?  If so you need to define each of the MRVS variables as inputs for the subflow and map them appropriately.