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

Email a list of Discussion Board or Discussion List posts once a day

I would like to develop a Flow that captures all Discussion List or Discussion Board posts for one day (12 am to 12 pm) and emails users a list of these posts, listed by the subject of said post(s). 

I can easily create a Flow that sends me an email each time something is posted but not sure how to get started on something this complex? 

 

Would anyone have some recommendations? Anything would be greatly appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Email a list of Discussion Board or Discussion List posts once a day

Hi @wojcika ,

 

Is there no Dynamic content available when configuring which field?

If you are configuring Filter Query and filtering Created, you could use Expression directly.

Your configuration in Filter array doesn't seem to need to include time, just the date.

Expression:

@equals(formatDateTime(item()['Created'], 'yyyy-MM-dd'), addDays(utcNow(), -1, 'yyyy-MM-dd'))

Like:

66.PNG

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.

View solution in original post

5 REPLIES 5
wojcika
Level: Powered On

Re: Email a list of Discussion Board or Discussion List posts once a day

I was able to configure something that sends me an email once a day with an HTML table of the postings. However, how do I configure it to only grab items listed on the previous day? I am fairly certain that I can use a Filter Query but not sure on the syntax.ScreenShot.png

Community Support Team
Community Support Team

Re: Email a list of Discussion Board or Discussion List posts once a day

Hi @wojcika ,

 

Basically, if you want to use Created field as a condition to filter items, you need to keep the format of the timestamp consistent.

The value of Created field in MS Flow format is "yyyy-MM-ddTHH:mm:ssZ".

So the configuration in Filter Query is as follows.

Expression:

utcNow('yyyy-MM-ddT00:00:00Z')
addDays(utcNow(),-1,'yyyy-MM-ddT00:00:00Z')

Image reference:

Please see attachment.

82.PNG

Hope it helps.

 

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.
Community Support Team
Community Support Team

Re: Email a list of Discussion Board or Discussion List posts once a day

Wrong post.

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.
wojcika
Level: Powered On

Re: Email a list of Discussion Board or Discussion List posts once a day

Hello @v-bacao-msft 

I recently discovered that I am unable to select any dynamic content in the Get Items action under Filter Query. (As seen in my screen shot).

SBB1.png

 

So, I have added a filter array after Get Items that includes the field "Created". 

bb3.png

bb4.png
My expression for the date is:

formatDateTime(addDays(utcNow(), -1, 'yyyy-MM-ddThh:mm:ssZ'))
I have also tried with and without formatDateTime. I get an email but there is nothing in it. 
Community Support Team
Community Support Team

Re: Email a list of Discussion Board or Discussion List posts once a day

Hi @wojcika ,

 

Is there no Dynamic content available when configuring which field?

If you are configuring Filter Query and filtering Created, you could use Expression directly.

Your configuration in Filter array doesn't seem to need to include time, just the date.

Expression:

@equals(formatDateTime(item()['Created'], 'yyyy-MM-dd'), addDays(utcNow(), -1, 'yyyy-MM-dd'))

Like:

66.PNG

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.

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 358 members 3,704 guests
Please welcome our newest community members: