New UPN & Email Adress fields on RITM & when these fields are Empty then first Task shouldn't close.

Community Alums
Not applicable

Hi There,

 

I have one Catalog Item 'Employee Name Change' and in that time in RITM form  variables section i have two fields,

ie, New UPN and Email Adress

and these 2 fields are filled by the assignee of the RITM if assignee is not filled these two fields at that time the sc_task which is created after the RITM approval that shouldn't be closed.

 

 

PriyaSm_0-1691735832151.png

 

 

in the above snapshot, these two fields are empty so the first task which is created before that should be able to close.

 

Can anybody please help me on this.

 

Thanks,

 

1 REPLY 1

Ahmmed Ali
Mega Sage

Hello @Community Alums 

 

One solution would be to have both variable non-mandatory by default. Create a new hidden variable on the catalog item (example a checkbox), and default value as false. Once the first task is closed, update the checkbox to true and you can do it with a run script in your workflow, before second task and after first task. 

 

Now you can write a client script to check the hidden variable value and make the fields mandatory based on that.

 

Second solution would be to have the variables non-mandatory by default, have the sc_task short description to include some unique keywords, Create an UI policy on sc_task table with condition as short description contains that keywords, then make the variables mandatory. Here users can update the short description, so you can make short description read only in same UI policy.

This way the changes apply only to your task.

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali