Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

HOw to get the Description field only editable by the user who create the incident

User687957
Mega Guru

Dear all,

 

I have a use case where I need to get the desciption field of an incident only editable by the user who create the incident. This from the self service view

For that I have created a incident.description ACL rule where I have add a script as below in advance section:

answer = (current.getValue('sys_created_by') == gs.getUserName());

 

chrome_tNda2yznzx.png

 

chrome_7wmXhtizuT.png
When I login to an other user who did not create the incident, the description field is still editable

 

Any idea ?

9 REPLIES 9

But As I checked it worked for me you can ping me in Linkedin so that will resolve through a call if possible.


If you found this helpful, please mark it as Helpful and Accept as Solution so it can reach others too.

Thanks & Regards,
Sachin Narayanasamy

could you paste me screen shot of your configuration

 

Ankur Bawiskar
Tera Patron

@User687957 

user who raise incident would be end user and interact via portal only and see the status of INC via portal

they won't come to native and this requirement doesn't look like a valid business use-case

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hello @Ankur Bawiskar , I am sorry to say that I am fully free to create an incident directly from the backend if I want , and this is from where I am testing this

 

regards

@User687957 

my thoghts

-> End users typically don't create incidents from the Native UI.

-> They usually use the Service Portal (SP), Employee Center (ESC), or Virtual Agent. Native UI and Workspace are primarily intended for agents.

-> In my experience, I haven't seen this requirement from any customer implementations.

-> However, if you do need this requirement, a field-level Write ACL would be the appropriate approach.

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

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