User role detail and requester comment in Workflow

Hello,

We have created a workflow which trigger email to support team with user details whenever provisioning is completed.

we were able to create a workflow and able to send email to support team with user name and employee number.

Now additionally we need role which was requested and along with requester comments to be added in email.

Not sure, how to include these details in email


Hi @skotian,

this is ISC, please change the tags

Hi @skotian,

Have you tried adding something like this in the email templating context and calling it in the email body to get the role name.?

$.trigger.accountRequests[0].attributeRequests[0].attributeValue

For your second query - Don’t think the provisioning completed trigger provides the requester comments. The request metadata are mostly included in the Access request decision trigger.

yes, I already tried this for role name and I am able to pull the role name.

Now struggling with requester comments

Hi @skotian ,
Can you try something like below ?

${trigger.comments}

Let me know if this works

No, its not working .

Is it possible to retrieve requester comment in access request decision trigger?

I created new WF with trigger as Access decision but still facing issue in pulling the requester comment

Hey Sandhya,

The Access Request Decision trigger returns list as value for requestedItemsStatus key.

You can access the requester comment like:
{{$.trigger.requestedItemsStatus[0].comment}}

Example:
Email body:
image
Actual Email:
{B887B260-2EE2-41AB-84B2-C5D55B528BD1}

Thank you…it worked,