I have an approval process on an object which is triggered via lightning action button.

when a record is under this approval process, the record should be locked as per the approval process. but it's editable in lightning mode and working fine in classic mode

The unlock record button also not visible in lightning mode.

Any workarround for this ??


As per Salesforce docs:

Responding to Approval Requests You can’t unlock a record that’s locked for approval.

So you need to use apex code to unlock the records based on button click. You will need Approval.UnlockResult here

Process Automation: What’s Different or Not Available in Lightning Experience

Set Approval Process Locks and Unlocks with Apex Code

  • 2
    the functionality is working in classic mode. one can unlock a record by clicking on unlock record button in salesforce classic. But this button is not visible in Lightning mode – Dibyaranjan Sahoo Oct 11 '17 at 11:24
  • @DibyaranjanSahoo yes you need to write custom logic to unlock record or you ca move to classic. – Tushar Sharma Oct 11 '17 at 11:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.