cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
d365_katiepage
Regular Visitor

How to define static email address in Email Message's To field

Hi,

 

I need to find a way to send an email to static email address.  Error says Resource was not found.

 

things I have tried:

1. simply typing email

2. 'aaaaa@microsoft.com'-with single quote

3. Define it in To field in advance options.

d365_katiepage_0-1633604878391.png

 

Note: I know if I use this, /contacts(GUID) it will work but GUID will change per environment so we don't want to use this.

 

Thanks.

 

3 REPLIES 3
eric-cheng
Solution Sage
Solution Sage

Hi @d365_katiepage ,

 

Because its pretty much like a lookup, you will need to pass the full entity set name i.e. /contacts(GUID).  To get around changing GUIDS, you can lookup the record using list row in the contacts table and return the GUID of the contact that way.

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

 

I think there is a disconnect here. The To field is a static value. It will never change

eric-cheng
Solution Sage
Solution Sage

Hi @d365_katiepage ,

 

The action you are using is different to a send email action in Outlook in that you don't pass in a text string for the email address and send an email.  It needs to be a record in the contacts table.

 

You mentioned in one of your earlier posts the GUID will change depending on the environment which is why I suggested you to lookup the GUID using List Rows.  

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,766)