Unable to populate list collector type variable from flow designer

sunilramesh
Tera Contributor

Hello experts,

 

I have a requirement 

As part of one of the requirements, we are providing users with a capability to bulk create RITMs. I am using a flow for this. This flow will capture values from the RITM that users selection which will be copied to newly created RITMs.

My flow consists of following steps:

1. Get variables from the RITM submitted to create copies

sunilramesh_0-1727160240796.png

2. from the RITM that user has selected above, get variables from the RITM.

3. Submit catalog request using these values to create duplicates.

My issue:

One of the variables is a List Collector and I am not able to populate that dynamically as it is not accepting any data type. (String, array.string, array.object etc.)

 

Please advise how can I populate/map list collector from flow designer

sunilramesh_1-1727160416008.png

 

sunilramesh_2-1727160477124.png

 

 

 

1 ACCEPTED SOLUTION

Hi Sunil,

 

Instead of setting up the list collector value in "Submit catalog item request" action (step 5), try to lookup the list collector record in sc_item_option_mtom table and then update that in sc_item_option with parent RITM list collector values. Try the following:

After step 6 add one lookup record step for sc_item_option_mtom with "parent item" being the one from step 5 and "question" being the list collector question.

 

parvindersingh3_1-1727593730367.png

 

After that add another step to update the record in sc_item_option with the "record" being the dependent item from lookup record step

parvindersingh3_3-1727593910956.png

Then update the value with your parent RITM list collector values from step 2

 

parvindersingh3_2-1727593811164.png

 

See if this works

View solution in original post

4 REPLIES 4

sunilramesh
Tera Contributor

This is my entire flow

sunilramesh_0-1727325797898.png

 

Hi Sunil,

 

Instead of setting up the list collector value in "Submit catalog item request" action (step 5), try to lookup the list collector record in sc_item_option_mtom table and then update that in sc_item_option with parent RITM list collector values. Try the following:

After step 6 add one lookup record step for sc_item_option_mtom with "parent item" being the one from step 5 and "question" being the list collector question.

 

parvindersingh3_1-1727593730367.png

 

After that add another step to update the record in sc_item_option with the "record" being the dependent item from lookup record step

parvindersingh3_3-1727593910956.png

Then update the value with your parent RITM list collector values from step 2

 

parvindersingh3_2-1727593811164.png

 

See if this works

Hi Parvinder,

Thanks for your valuable inputs. It worked with this solution.

Manikanta Kota
Mega Guru

Hi @sunilramesh 

Please Refer  https://youtu.be/Lsnm0koRo-k?si=TchdhdpudORHx6Ex

Should my answer prove to be helpful, kindly mark it as such by clicking "Accept as Solution" and "Helpful."

 

Regards,

Manikanta. Kota

Did you know that you can manipulate data in data pills without writing code?? Docs: https://docs.servicenow.com/bundle/xanadu-build-workflows/page/administer/flow-designer/concept/transform-functions.html Learn about about the Hackzone demos mentioned in the video: - MakeFarm Print Factory ...