Hi Everyone,
I have a workflow in SailPoint IdentityIQ with an Approval step configured as follows:
<Step icon="Approval" name="ApprovalStep">
<Approval mode="serial" return="" send="">
<Arg name="workItemDescription" value="string:Request for User: .. "/>
<Arg name="workItemType" value="Approval"/>
</Approval>
</Step>
When the workflow reaches this step, IIQ creates a WorkItem and automatically generates its name, for example: 000003523
My requirement:
I want to retrieve this auto-generated WorkItem name and log it immediately after the WorkItem is created, but before the workflow pauses and waits for the approver’s decision.
The challenge:
- The Approval step creates the WorkItem and suspends the workflow until the approval is completed.
- Any subsequent workflow step will execute only after the approval process resumes.
- Therefore, I cannot use a step after the Approval step to log the WorkItem name at the required time.
My questions:
- Is there a way to retrieve the generated WorkItem name during the execution of the Approval step?
- Is there a recommended way to log the WorkItem name immediately after its creation, without waiting for the approval to complete?
I would appreciate any suggestions or code examples for achieving this in SailPoint IIQ.
Thanks in advance!