- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2017 11:45 PM
hello
Certification task is assigned to user A and user B is his delegate.
user B is not able see the task content as there is one ACL defined.
Below is the screenshot of ACL.
Delegate of the assigned to is not able to see all the contents like related list also extra information.
delegate only able to see fields. however when task assigned to delegate he is able ti see all the content.
Can anybody confirm what can be the reason?
Regards,
Nikita Khavnekar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2017 12:53 AM
Can anybody confirm what can be the reason?
I'd guess that there's no check for current.assigned_to.delegateNameField == gs.getUserID(). Your highlighted check is simply for the assignee (A), not their delegate (B).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2017 12:53 AM
Can anybody confirm what can be the reason?
I'd guess that there's no check for current.assigned_to.delegateNameField == gs.getUserID(). Your highlighted check is simply for the assignee (A), not their delegate (B).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2017 12:57 AM
That's correct,
what should be the command to check assigned to's delegates.
what should be in place of current.assigned_to.delegateNameField == gs.getUserID().
how to fetch delegate field in this ACL?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2017 02:33 AM
I don't know enough about certification tasks to know the field name, but you'll probably want an "or" case in there to check if it's the assigner OR their delegate, e.g.:
if (current.assigned_to == gs.getUserID() || current.assigned_to.delegateNameField == gs.getUserID() )
Can you dot-walk to the field name in the script?