I have to create unique catalog task based on location selected in MRVS.

Mishu
Tera Expert

I have to create catalog task based on location selected in MRVS. Say if the below details are submitted by the requester then depending on the number of unique locations selected in the multirow variable set the number of service catalog tasks should be created. 

For instance : 1 single task for Abel and David for Delhi location , another task for Willa for Mumbai location

Mishu_0-1727251628738.png

 

How can we achieve this ?

 

4 REPLIES 4

anvesh_v
Giga Guru

If you are using Flow designer then  you will get the values of all MRVS  . Use the For loop to validate based on your task condition 

 

step 1 use action get catalog Variables  

anvesh_v_0-1727252208332.png

 

 

step 2 : Use For each item and pass the array object  (MRVS variable)

 

anvesh_v_1-1727252291290.png

 

 

step 3: Create the task based on requirement 


Please mark correct if i am  able to answer the question 

Thanks 
Anvesh

 

 

 

SP22
Mega Sage
Mega Sage

Hello @Mishu,

Please find the below link and let me know whether it is helpful or not.

https://www.servicenow.com/community/developer-forum/mrv-to-create-a-new-catalog-task-for-each-row/m...

Thanks
SP

Hi,

 

My requirement is different i want the task to be created only for unique locations, not for each row in MRVS. Suppose there are 3 rows with location is Delhi and 2 rows with Mumbai then total rows are 5 but Task will be created only 2 , one for Delhi Location and other one for Mumbai

Mishu
Tera Expert

@Ankur Bawiskar ...Can you help here