Get Access Request ID in Workflow

Hi All,

How can we get the Access Request ID and use it in a workflow as a variable in the Email Template?

image

Thank you!

Hi @jasmedina ,
When creating or managing a workflow in IdentityNow, the “Access Request ID” is usually available as a variable within the workflow. You can use the IdentityNow workflow builder to capture and store this ID. The Access Request ID is typically accessible as a predefined output in steps related to access requests.
To use the accessRequestId in the email template , you can refer in the Template body similar to something as below,

The request ID is: {{accessRequestId}}

Hope this helps!!

1 Like

HI,

For this you need to use access request decision trigger.

This will be triggered when access request approved or rejected and the payload sent to the trigger will contain the access request id.

And in actions you can use “send email” and add the id in the email.

Can you elaborate more on your usecase?

-Abhinov

Hi @Abhinov7! Our use case is to send an email if there is an error during access request provisioning. I was able to create a workflow for this and tested that it is working, however, I need to pass the details from the access request itself into the email template. Basically I will need the access request ID, the requestor and the recipient from that access request.

Hi,

Can you let me know what trigger you are using?

-Abhinov

Hey Jasmine,

For this you need to use access request decision trigger.

As Abhinov mentioned, you would need to use Access Request Decision trigger.

Most probably, you would be using Provisioning Completed trigger, in that case I don’t think you get accessRequestId.

Please check these triggers out.

EDIT:

Most probably, you would be using Provisioning Completed trigger, in that case I don’t think you get accessRequestId.

Scratch that :point_up_2:
You DO get the ID of Access Request in the Provisioning Completed trigger.

If you are using Provisioning Completed trigger then:
$.trigger.trackingNumber
Or if you are using Access Request Decision trigger then:
$.trigger.accessRequestId

2 Likes

Thank you so much, Zeel! This solves it :slight_smile:

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.