cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pmlathrop
Level: Powered On

Send e-mail to contacts with multiple criteria across related SharePoint lists

Below are the SharePoint Lists that I'm using. Included in the picture is what I'm trying to accomplish with this FLOW.  Any help is appreciated.  

FTC-FLOW.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Send e-mail to contacts with multiple criteria across related SharePoint lists

Hi @pmlathrop ,

 

Could you share more details on the lists?

1.FTC_Month looks up to List=Months, Month in List=Months is “01,02,03…”.

2.RF_Target_Date and RF_Source_Date look up to which list? What’s the format?

 

I have figured out the flow likes below for your reference.

 

When an item is created in ListAdmin.

 

Get items from ListStatus and input the following code into the Filter query field:

FTC_x002d_Month eq '@{int(formatDateTime(triggerBody()?['RF_Target_Date']?['Value'],'MM'))}' and FTC_Year eq '@{triggerBody()?['RF_x002d_Target_Year']?['Value']}' and Updated eq '@{false}'

Note:1. RF_Target_Date column is if format ‘yyyy-MM-dd’, while FTC_Month is in format ‘MM’.

2.Further, you need to use the exact column in the list, you could get the exact column name from the Output of action Get items without any filter.

  1. The function should be surround with a single quote in the Filter query field.
  2.  

Then Get items2 action to get the contact email address from ListInitiative, input the following code in Filter Query field:

Initiative_ID eq @{items('Apply_to_each')?['Initiative_ID']?['Value']}

Note: An Apply to each will be automatically selected when you select dynamic content from Get items.

 

Then add Send an email action to send out the email, select dynamic content Email_Contact from Get items2, then Title from Get items.

 

Images for your reference.

1.PNG2.PNG

 

Best regards,

Mabel

 

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

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Send e-mail to contacts with multiple criteria across related SharePoint lists

Hi @pmlathrop ,

 

Could you share more details on the lists?

1.FTC_Month looks up to List=Months, Month in List=Months is “01,02,03…”.

2.RF_Target_Date and RF_Source_Date look up to which list? What’s the format?

 

I have figured out the flow likes below for your reference.

 

When an item is created in ListAdmin.

 

Get items from ListStatus and input the following code into the Filter query field:

FTC_x002d_Month eq '@{int(formatDateTime(triggerBody()?['RF_Target_Date']?['Value'],'MM'))}' and FTC_Year eq '@{triggerBody()?['RF_x002d_Target_Year']?['Value']}' and Updated eq '@{false}'

Note:1. RF_Target_Date column is if format ‘yyyy-MM-dd’, while FTC_Month is in format ‘MM’.

2.Further, you need to use the exact column in the list, you could get the exact column name from the Output of action Get items without any filter.

  1. The function should be surround with a single quote in the Filter query field.
  2.  

Then Get items2 action to get the contact email address from ListInitiative, input the following code in Filter Query field:

Initiative_ID eq @{items('Apply_to_each')?['Initiative_ID']?['Value']}

Note: An Apply to each will be automatically selected when you select dynamic content from Get items.

 

Then add Send an email action to send out the email, select dynamic content Email_Contact from Get items2, then Title from Get items.

 

Images for your reference.

1.PNG2.PNG

 

Best regards,

Mabel

 

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

View solution in original post

pmlathrop
Level: Powered On

Re: Send e-mail to contacts with multiple criteria across related SharePoint lists

Hi Mabel,

The Months are January, February, March, April, May, etc...

 

Could you share more details on the lists?

1.FTC_Month looks up to List=Months, Month in List=Months is “01,02,03…”.

2.RF_Target_Date and RF_Source_Date look up to which list? What’s the format?

 

pmlathrop
Level: Powered On

Re: Send e-mail to contacts with multiple criteria across related SharePoint lists

Hi Mabel,

I got my flow to work as intended based on your solution provided. You were such a great help and your assistance is greatly appreciated! Thank you!!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 366 members 5,974 guests
Please welcome our newest community members: