- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2024 03:44 AM
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 🙂
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2024 04:37 AM
So beyond the if statement I showcased that determines if its empty, what are you having trouble with?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2024 03:49 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2024 03:59 AM
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 🙂
Thanks in advance!
P. S: I'm new to Flow Designer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2024 08:02 AM
you can have type as string
OR
As mentioned by Rob you can simply use IF statement and check the value
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2024 04:06 AM
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
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.