Incident record editable only for caller and assigned to person.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 04:55 AM - edited 01-06-2024 04:57 AM
Hi, All
1. Any record created in the Incident table should only be editable by caller and Assigned To person.
2. Create a ‘Request’ button on form. On click of this button, Resolution Information section should be mandatory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 05:08 AM
Hi @Omkarbh1997 ,
To achieve the specified requirements in ServiceNow for the Incident table, you can use Access Control Rules (ACR) for the first requirement and Client Scripts for the second requirement. Here's a guide for each:
### 1. Only Editable by Caller and Assigned To:
#### Access Control Rule (ACR):
- Navigate to "Security Rules" > "Access Control" > "Create an Access Control Rule".
- Set the following conditions:
- Operation: Write
- Object Type: Incident [incident]
- Conditions: `caller_id=javascript:gs.getUserID() OR assigned_to=javascript:gs.getUserID()`
This ACR ensures that records in the Incident table can only be edited by the Caller or the Assigned To person.
### 2. Make Resolution Information Mandatory on Request Button Click:
Create a new button named as "Request"
Mark client as true
In condition field u can put appropriate condition as to when it is suppose to be visible
Then under script section u can paste the below script.
g_form.setMandatory('resolution_code',true);
g_form.setMandatory('resolution_note',true);
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 10:35 AM
Hi @Omkarbh1997
1. Any record created in the Incident table should only be editable by caller and Assigned To person.
Atul: What is the use case only for Assigned to Person. By this you are restricting the accessibility of Incident
2. Create a ‘Request’ button on form. On click of this button, Resolution Information section should be mandatory.
Atul: What is purpose and where you want to add this button.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 09:42 PM
Modifying the ACLs to allow the caller to edit the form may open you up to licensing implications. editing forms is for fulfillers