cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
clechner
Advocate I
Advocate I

When New Email arrives to a group -- how to get sender email?

When someone emails a group, I want to check group membership based on the sender email.  Why does the group connector not surface sender info or any info from the new email???

clechner_0-1629500551106.png

 



1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @clechner,

 

You could workaround this by using a Get a thread post action.

 

Use the following expressions for the Thread ID & Post ID:

triggerOutputs()?['body']['threads'][0]['id']
triggerOutputs()?['body']['threads'][0]['posts'][0]['id']

 

getthreadpost.png

View solution in original post

5 REPLIES 5
clechner
Advocate I
Advocate I

So I can't get the sender's email if they send an email to an Office 365 group but I can if they send something to an individual or shared mailbox?  This seems crazy to me.

Expiscornovus
Super User
Super User

Hi @clechner,

 

You could workaround this by using a Get a thread post action.

 

Use the following expressions for the Thread ID & Post ID:

triggerOutputs()?['body']['threads'][0]['id']
triggerOutputs()?['body']['threads'][0]['posts'][0]['id']

 

getthreadpost.png

Hah!  Brilliant!  I feel silly now not thinking about going that direction.  I appreciate the help and patience.

I am not sure I did this right, but i followed your steps and added the reply to email (v3) as the next step, but no replies are being sent.  Did this functionality change?

 

MZimb_0-1648218421291.png

 

I was finally able to get this working.  Instead of trying to reply to the incoming email message, I changed it to simply "Send an Email (V2)".  This works well for what I wanted but i did notice a slight limitation with the "From" address in this connection.  This would only work with me as the From.  If I set it to anybody else in the address book, even people who are team owners (Human Resources) and have the send as right, it would fail with "Not Authorized to send on behalf of" error.  I actually wish that field could just be any typed address like "HR@domain.com".  Anyways here is a screenshot for anyone trying to alert people who send an email to the Team group.

MZimb_0-1648239561193.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,971)