List-edit ACL: allow edit on custom dictionaries

magee
Tera Guru

Hello all-

Requirement:

On the sc_req_item list view, if the field is system created (state, approval, request_item, etc.), do not all the user edit these fields (dictionaries) in the list view.

If the field is created by us (dictionary name starts with 'u_'), allow list edit capability.

I'd like to do this in 1 list-edit ACL.

 

For the script, I'm thinking something like:

 

if(dictionary.name.startsWith('u_'){

return true //allow list edit on field

}

else {

return false //do not allow list edit on field

}

1 ACCEPTED SOLUTION

@magee 

Thank you for marking my response as helpful.

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

View solution in original post

5 REPLIES 5

Swapna Abburi
Mega Sage
Mega Sage

Hi @magee 

It's not possible to achieve your requirement with one ACL. You may need to create list_edit type ACL on individual fields. or On Cell Edit client script on individual fields.

#bummer

Ankur Bawiskar
Tera Patron
Tera Patron

@magee 

not possible with 1 ACL

You will have to block them individually by creating list_edit ACL on those fields on which you want to block

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

@magee 

Thank you for marking my response as helpful.

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