How to create multiple task with a editable field.

Kaleem Shaik
Tera Contributor

Hi All,

I have a requirement to build 2 catalog tasks.

1. for example I have 4 mandatory variable fields on the service catalog form page.
2. Once the request gets submitted, 1st catalog task will be generated and goes to Assignment group.
3. On the 1st catalog task form one field will be editable and remaining fields will be read-only.

4. Once the team updates the field and close complete the catalog task.
5. Closure of 1st catalog task will generate 2nd catalog task and it goes to fulfillment group.

6. In 2nd catalog task all fields will be read-only.

 

@Ankur Bawiskar,@Sanjiv Meher@Jakob Anker 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Kaleem Shaik 

so where are you stuck? what did you start with? you are using flow or workflow?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,

I am stuck at 1st catalog task where I am unable to create the field as editable. 

I can be able to create all fields either read-only or all fields editable in 1st catalog task.  

abirakundu23
Mega Sage

Hi @Kaleem Shaik ,

Please find the below steps:

1. Create catalog item with 4 mandatories variables.

 

AbiraKundu_0-1702138277643.png

2. You can create Workflow/ Flow designer, I have created Workflow & attached WF to the catalog item. Once you submit the request the 1st catalog task will be generated highlighted yellow in attached screenshot.

AbiraKundu_1-1702138344095.png

AbiraKundu_2-1702138401179.png

In catalog task activity, select catalog item variables from Available box to Selected box, those variables will be display on sc_task table.

AbiraKundu_4-1702138579235.png

 

3. Create UI policy on 'sc_task' table that make fields editable & read-only.

AbiraKundu_5-1702138869602.png

AbiraKundu_6-1702138931587.png

4. Once you edit the field & closed complete the 1st catalog task then 2nd catalog task will be generated by 'run script' activity in workflow.

AbiraKundu_7-1702139208383.png

AbiraKundu_8-1702139235014.png

5. You can create one more UI policy for 2nd catalog task for all variables read only.

AbiraKundu_9-1702139377428.png

AbiraKundu_10-1702139402242.png


Hope it's helpful for you. 
Please mark helpful & accept my answer it's worthy for you. 

Thank you, its working.