Create a SCTask in workflow based on variable selection

David Cross
Tera Expert

Hi All,

 

i have a list, where there are 100's of asset data. Now the SCTask should be generated based on this variable selections.

How to i perform this task in my Workflow ?

 

now the requirement is :-

If user's select 5 assets then 5 task should be generated.

If they select 10 Assets then 10 task should be generated.

 

please suggest me 

 

4 REPLIES 4

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @David Cross ,

 

Make use of decision builder this will save a lot of time for you...

 

If you want to create it via workflow then you need to use IF condition and Create Task activity to build the logic. The IF conditon will check for the conditions which matches your conditons and accordingly it will create task or multiple task. 

 

You can use the script to generate multiple task based on the number of assets selected.

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Hello @Sohail Khilji , i'll try this and come back here

Josh Pirozzi
Kilo Sage

Hi @David Cross,

 

    If I'm understanding correctly, and the end user is selecting 5 or 10 individual Asset Records from a List Collector Variable, you can try adding:

  1. Get Catalog Variables Flow Step
  2. Look up Records Flow Step - This will be where you look up Asset Records where the sys_id matches the sys_id of those Asset Records selected in the variable.
  3. For each item - This is where you'll link for each item found in the Look Up Records Flow Step (step 2) and add a Function (fx) to split out each selected Asset Record.

From here you can generate a Catalog Task based on each selected Asset Record and Assign/Route as needed. 

 

I wrote up an article with these steps here for additional screenshots and steps.

 

Hope this helps!

Josh Pirozzi

Hello @Josh Pirozzi , i'll try this and will come back here