Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to send delegated person email if user optied for delgation?

Not applicable

I am integrating with third party for decision making as part of it I am sending the decision makers emails to them so that power automate will send the notification to them.

 

But what if the decision maker is already opted delegation then I should send delegate person mail instead original??

I also have another edge case what if the person opted delegation once after request already sent to power automate??

12 REPLIES 12

Ankur Bawiskar
Tera Patron

@Community Alums 

Sorry without you sharing what you implemented and what's configured along with screenshots, very difficult to help

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Not applicable

Actually for the approvals we are sending team notifications/outlook mails to approvers via power automate before sending them we are not validating whether he opted delegation or not but now we need to check if he not opted delegation then we can send his details directly to the power automate but if he opted delegation I need to send delegated person details if the trigger is happening with in the delegation duration.

How can we achieve this through script?

Even if we achieve this through script sometimes approver might opt delegation once he got the approval notification? can we address this through script??

@Community Alums 

check in delegate table and see if delegation is there for that recipient.

and based on that have script to pick that delegate user and send email to that user.

If my response helped please mark it correct and close the thread so that it benefits future readers

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Not applicable

thanks for your reply!! did you find anywhere related logic/script to do so?