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.
Solved! Go to Solution.
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:
Best Regards,
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.
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.
Hope it helps.
Best Regards,
Wrong post.
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).
So, I have added a filter array after Get Items that includes the field "Created".
My expression for the date is:
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:
Best Regards,
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
44 | |
44 | |
37 | |
33 | |
27 |
User | Count |
---|---|
47 | |
38 | |
32 | |
31 | |
30 |