Editable access for specific assignment group members when they are approvers

sony8
Tera Contributor

Hi All,

 

we have below requirement.

we are using flow designer for multi level approvals.

we are using custom table which extends task table.

we have written UI policies for Readonly access.

Now, for one of the group approval the client is requesting editable access for some specified fields.

I am not understanding how to achieve this.

group : Staff Accountant 

need to edit below fields like cost,library fee.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@sony8 

you need to use field level WRITE ACL and use script using advanced section

answer = gs.getUser().isMemberOf('Staff Accountant');

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

2 REPLIES 2

Harish KM
Kilo Patron
Kilo Patron

Hi @sony8 To provide edit access for fields, ACL is the best way to go.

You can create 3 write level ACL for those 3 fields with below script:

Role: provide relevant role for users

Script:

if (gs.getUser().isMemberOf('GroupName')) {
answer = true; // allow edit to field
} else {
answer = false; // lock the field
}

Regards
Harish

Ankur Bawiskar
Tera Patron
Tera Patron

@sony8 

you need to use field level WRITE ACL and use script using advanced section

answer = gs.getUser().isMemberOf('Staff Accountant');

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