Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlock Apex not working for non-Admins #8

Open
gingerbyte opened this issue Jul 24, 2019 · 2 comments
Open

Unlock Apex not working for non-Admins #8

gingerbyte opened this issue Jul 24, 2019 · 2 comments

Comments

@gingerbyte
Copy link

The Unlock portion of this does not appear to work for users that don't otherwise have the ability to manually lock/unlock. I have confirmed a System Admin triggering the change is able to lock / unlock without issue.

I've tried every workaround I can think of to get it to work (time-based WFR initiating a change to force the record to be evaluated as the Admin running the TB WFR, delayed Process Builder Action etc.) and can't get past: "An Apex error occurred: System.DmlException: Delete failed. First exception on row 0 with id 04Z3F000000AK01; first error: INSUFFICIENT_ACCESS_OR_READONLY, insufficient access rights on object id: [] "

@gingerbyte
Copy link
Author

Found a solution: use Session Based Permission Set in Visual Flow to Activate / Deactivate the Session Based Permission set (add Screen for user to click Next to break up operations). Lookup user's Profile & Assigned Permission Sets to display the proper errors, extra steps etc.
image

@mshanemc
Copy link
Owner

mshanemc commented Jul 25, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants