cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
StuCundy
Post Patron
Post Patron

Send Email with Dynamic info from two lists

Hi

I am creating a flow to create an email with dynamic data from two sharepoint lists.    To make the email I wish to pull content from both lists which are connect also the ID in the Get Items list.

 

I have a drop down with selects a GroupID, A group of Items are connected to this groupID which is my email recipient list.

I have a second sharepoint list that I want to make email content from and use the items like templates for content. I will select the ID of this Item in a dropdown.   There is no connection between this list and the group other than the flow I want to create.

 

I can create and send the email using 1 list and the "GetitemID".  My problem is how to retrieve the other list, I want to bring in a second GetitemID but do not know how.  How can I set a trigger for the 2nd list and is there a better way to approach this?

 

flow2lists.png

Look forward to a reply

3 REPLIES 3
v-bacao-msft
Community Support
Community Support

 

Hi @StuCundy ,

 

Is there any relationship between these two lists? If yes, you could use Filter Query to filter the items.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-bacao-msft 

 

No relationship currently but I can easily make one with a dropdown and adding a new field to the HostSearch list as email1 and an item in the Email Template list.  Lets say I did that.   What would be by filter query call? 

 

If I am calling all items in HostSearch in a certain GroupID would I be better to connect the email to that GroupID?

 

Hi @StuCundy ,

 

The method of using Filter Query is to use the relationship between the two lists to filter items.

 

Using related fields as filters, you could refer to the following blog:

https://sharepains.com/2018/11/12/sharepoint-get-items-odata-filter-query/

 

Or if the lookup column in the list is referenced from another list, you can directly fill the lookup column id in Get item action and get the corresponding item in the lookup list.

 

Hope that makes sense.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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,759)