Create multiple RITMs under one request using MRVS on cataog item

Utpal Dutta
Tera Guru

Hi community members,

I have a wired requirement where we can't use Cart on our portal because we are requesting technical services from this specific portal.

We need to have a single catalog item request form, from where user can add multiple values to some variables using MRVS and submit.

Once submitted, we need to fetch MRVS values and order individual catalog items depending upon MRVS values.

We can do this via flow but the question is "What should we show user on order summary page?". Since flow running will take some time to generate request and requested items into it.

 

Also, we can't use order guide as there can be scenario where we need to raise a signle catalog item multiple times with different variable values.

 

Any ideas or suggestion will be appreciated.

 

Thanks

1 ACCEPTED SOLUTION

Utpal Dutta
Tera Guru

To community members who wants answer to this question:

 

I was able to solve this by creating a subflow.

 

  1. Create a sub flow and define input as Array. Object.
  2. In sub flow iterate through the objects by just using a for each loop on input.
  3. Create 2 new actions to add items in cart and order cart items. (Easy scripts) can be found in CartJS API doc.
  4. Add items to cart with conditions.
  5. Order cart at the end.
  6. When cart is ordered a request and its sys_id is returned as output.
  7. Set sub flow output varibale with request sys_id
  8. From subflow 3 dots > Copy code snippet.
  9. Paste code snippet of subflow in Record producer script.
  10. Pass input of subflow as mrvs value fetched from RP script.
  11. Once subflow running completes > Pass output and build URL to where record producer will redirect.

I'll write an article about it and paste a link here with all pictures.

 

Thanks

View solution in original post

3 REPLIES 3

Di Zhang
Tera Guru

Just a idea: When the main request item is submitted, extract the MRVS values and generate child items attached to this parent item.

It won't work like that as flows or workflows for those indivisual catalog items will not be triggered.

Utpal Dutta
Tera Guru

To community members who wants answer to this question:

 

I was able to solve this by creating a subflow.

 

  1. Create a sub flow and define input as Array. Object.
  2. In sub flow iterate through the objects by just using a for each loop on input.
  3. Create 2 new actions to add items in cart and order cart items. (Easy scripts) can be found in CartJS API doc.
  4. Add items to cart with conditions.
  5. Order cart at the end.
  6. When cart is ordered a request and its sys_id is returned as output.
  7. Set sub flow output varibale with request sys_id
  8. From subflow 3 dots > Copy code snippet.
  9. Paste code snippet of subflow in Record producer script.
  10. Pass input of subflow as mrvs value fetched from RP script.
  11. Once subflow running completes > Pass output and build URL to where record producer will redirect.

I'll write an article about it and paste a link here with all pictures.

 

Thanks