# Send an email when an error occurred during Access Request

**URL:** <https://developer.sailpoint.com/discuss/t/send-an-email-when-an-error-occurred-during-access-request/85228>\
**Category:** SHF Discussion and Questions\
**Tags:** access-requests, workflows, identity-security-cloud, provisioning\
**Created:** [October 11, 2024, 4:13pm UTC](https://developer.sailpoint.com/discuss/t/send-an-email-when-an-error-occurred-during-access-request/85228 "2024-10-11T16:13:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasmedina](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jasmedina](https://developer.sailpoint.com/discuss/u/jasmedina)\
**Post date:** [October 11, 2024, 4:13pm UTC](https://developer.sailpoint.com/discuss/t/send-an-email-when-an-error-occurred-during-access-request/85228/1 "2024-10-11T16:13:14Z")

</div>

Hi All,

Is there a way to send an email to the approvers if the provisioning failed during access request? I am thinking this can be done via workflow but what would be the trigger for it and how could I pass the access request id in the email? If you could please share a high level workflow just to see the logic behind it that would be great. Even better is there are more direct ways to do this rather than via workflow.

Thank you!

---

<div class="post-metadata">

**Author:** ![agutschow](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/agutschow/32/8543_2.png) [@agutschow](https://developer.sailpoint.com/discuss/u/agutschow)\
**Post date:** [October 11, 2024, 8:08pm UTC](https://developer.sailpoint.com/discuss/t/send-an-email-when-an-error-occurred-during-access-request/85228/2 "2024-10-11T20:08:32Z")

</div>

You might look at the Provisioning Completed trigger.

[Provisioning Completed | SailPoint Developer Community](https://developer.sailpoint.com/docs/extensibility/event-triggers/triggers/provisioning-completed)

I think the input payload looks like what you are thinking:

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/3/1/319e4bd25a9aa11f50e1e93b2c394e1530b348d4.png)

---

<div class="post-metadata">

**Author:** ![jasmedina](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jasmedina](https://developer.sailpoint.com/discuss/u/jasmedina)\
**Post date:** [October 15, 2024, 1:24pm UTC](https://developer.sailpoint.com/discuss/t/send-an-email-when-an-error-occurred-during-access-request/85228/3 "2024-10-15T13:24:47Z")

</div>

Hi Alicia, thank you for this! Is it possible to get the access request id of the request that failed using workflow?  
 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/b/a/bac4d1c2f87289c43e39d1233cf3d55f9adc28bf.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [December 14, 2024, 1:25pm UTC](https://developer.sailpoint.com/discuss/t/send-an-email-when-an-error-occurred-during-access-request/85228/4 "2024-12-14T13:25:09Z")

</div>

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