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

Manikantahere
Tera Contributor

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
Tera Patron

@Manikantahere 

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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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??

@Manikantahere 

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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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