cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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

Highlighted
Frequent Visitor

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?

 

Highlighted
Frequent Visitor

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
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (4,721)