skotian
(sandhya Kotian)
October 15, 2024, 6:29am
1
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
jesvin90
(Jesvin Joseph)
October 15, 2024, 9:43am
3
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.
skotian
(sandhya Kotian)
October 15, 2024, 9:52am
4
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
skotian
(sandhya Kotian)
October 16, 2024, 7:06am
7
Is it possible to retrieve requester comment in access request decision trigger?
skotian
(sandhya Kotian)
October 16, 2024, 7:11am
8
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:
Actual Email: