Dynamic Approvals in Salesforce Using Visual Workflow
We needed a dynamic approval process for our new HR system (FinancialForce HCM), where the 3 approvers for a consultant job requisition needed to be based on the budget managers for the related department, cost center, and region. Budget manager is a custom lookup field to user.
I quickly came across this article on developer.force.com and got ready to spin up a SOW to get some developers working on it. The code is needed to lookup a user on a reference object, and populate that user into the record being submitted for approval.
And then i realized that a flow could easily pull an ID from the user lookup on the parent record and dump it to a custom field on the child. However, I would need an apex plugin to kick off the approval process from the flow.
Back to the developers to build an apex plugin…
And then, whilst browsing the great cloud flow posts on salesforce yoda’s website...