Share all details about your problem, including any error messages you may have received.
*I have a custom quicklink that is associated to a custom workflow. Custom quicklink displays a custom form to the end user to fill out information to “create AD group”. Once the form is submitting my custom workflow creates the provisioning plan to create group in AD and processes it. My workflow is able to create AD group as desired.
Now, I want to introduce a one-step approval based on the identity type field selected in the form.
I am not able to find the right documentation on how to setup approvals in my custom workflow. Do I need to subprocesses from LCM Provisioning to setup approvals? Do I add another “approval” type step in my workflow and then create new approvalset and then return it?
You can add an approval step directly in your custom workflow by inserting an “approval” step before the provisioning logic. There’s no need to use LCM subprocesses if you’re handling the process entirely within a custom workflow. However, you will need to define the approval logic manually and manage the ApprovalSet yourself.
Insert an “approval” step in your workflow before the provisioning logic
{
“name”: “ApprovalStep”,
“type”: “approval”,
“approverRef”: {
“type”: “identityAttribute”,
“name”: “manager” // or your logic here
},
“reason”: “Approve creation of AD group for identity type ${form.identityType}”,
“approvalSet”: {
“type”: “default”
},
“next”: “ProvisionStep”
}
2. Determine the Approver Based on Form Input
If the approver should vary depending on the identityType selected in the form, you can use a script step to evaluate the form value and set the appropriate approver dynamically.
This script can store the result in a workflow variable, which you’ll then reference in the approverRef field of the approval step.
If you guys are using the Services Standard Framework (SSF) in your environment, you can make use of the Approval Framework that comes with it. It supports custom approval flows, and you can even plug in your own logic for things like approvers, escalation rules, and notifications.
If not, you can still implement approvals manually. Sample approval step:
In my case, I am getting a form populated to “create AD group” before the “approval”. I am not using identity attributes in my “create AD group” so I cant use identityModel
So how do I pass fields from my “create AD group” form to this “approval form”?
Do I need to build a custom formModel?
This e-mail message and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. The contents thereof may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received this e-mail message in error, please notify the sender and delete the message. Any views or opinions presented in this e-mail message are solely those of the author and do not necessarily represent those of Paylocity. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission.