The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Attach SOP field to Incident when state of INCIDENT state changes to Resolved

abc1233
Tera Contributor

When Incident state is changed to resolved the "SOP Attached" field should be mandatory  and in "SOP Attached" field there should be two options YES and NO .

If Yes is selected (user have to attached the SOP document) and once SOP is attched then resolve the incident.

If not is selected user can able to resolved the incident directly. 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@abc1233 

it's an easy requirement.

what did you start with and where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

I have attached "SOP Attached" filed to incident and now i want to add  Attachment if "SOP Attached" field is selected as "YES".

 

Thanks

@abc1233 

you can use UI policy on State field to show this new field.

Then another before update business rule which runs on State Changes To Resolved AND SOP Attached = yes

Script:

check if user has attached any file in sys_attachment with particular name of SOP file

If not then abort the update.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Can u please help me in scripting.

 

and also when  SOP Attached = yes it should populate alert message (Please Attach Document)

 

Thanks