Integrate Approval Process functionality into Skuid

  • 11
  • Idea
  • Updated 1 year ago
  • Planned
(via zachelrath on github.com/skuidify)

"HIGH PRIORITY.

If a record is Locked by an Approval Process, we should show this in Skuid. We can check this by querying the ProcessInstance table where TargetObjectId = objectBeingEditedInSkuid.
If an Approval Process is defined for a given Object, a "Submit for Approval" button should be able to be added to that Object. This should kick off an Approval process in Apex. We can dynamically instantiate Approval processes in Apex, I believe, because ApprovalProcesses are interfaces in Apex."
Photo of Anna Wiersema

Anna Wiersema

  • 10,890 Points 10k badge 2x thumb

Posted 6 years ago

  • 11
Photo of Anna Wiersema

Anna Wiersema

  • 10,890 Points 10k badge 2x thumb
Photo of Jarrod Hinson

Jarrod Hinson

  • 2,310 Points 2k badge 2x thumb
+1
Photo of Andrew Hess

Andrew Hess

  • 262 Points 250 badge 2x thumb
I want to recreate the Recall Approval Request button in Skuid. I know how the link should be set up, but I can't get the Id of the ApprovalProcessItem to render in the URL because the button is on a page title block that has Opportunity selected as the model. Transversely, I tried a page title with ApprovalProcessItem as the model and I can't pull the Opportunity Id (aka TargetObjectId).
(Edited)
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,322 Points 5k badge 2x thumb
We don't want to expose standard salesforce anything, so are building our own custom object for Approval. Is there any way to 'lock' a record outside of the standard Approval Process?
Photo of Emily Davis

Emily Davis, Employee

  • 3,502 Points 3k badge 2x thumb
Jack,
Wanted to post a quick update to your question on locking records. It looks like, as of Salesforce's Winter '16 release, you can lock or unlock a record via Apex. This would require calling Apex from Skuid by an Apex invocable method (using the Skuid "Run custom Apex action" action) or JS remote action.
https://releasenotes.docs.salesforce.com/en-us/winter16/release-notes/rn_apex_approval_locks_unlocks...

Hope that helps!
Emily
Photo of Dan Boudreau

Dan Boudreau

  • 820 Points 500 badge 2x thumb
I'd like to see some drag and drop support for approvals, please. This is a barrier for entry right now!