Hi,
I am trying to create a flow that will send me a daily/weekly (To be decided) email notification listing all the tasks in planner that are assigned to me.
I can get an email with a list of tasks by using:
Recurrence > List my tasks > Filter array (Filter to show only not completed tasks) > Create HTML table using just the Title and dueDateTime field > Send me an email notification.
I am fairly happy I've got this far but have a few issues.
My first attempt sent me an email for each task that had ever been assign 😞 so I need one email that is a summary.
The biggest obstacle is the date for dueDateTime, it currently shows as 2017-12-31T12:00:00Z and I only need/want dd-MM-yyyy. I have tried using compose/select but these break the items out of the array using an apply to each item.
Is there a way to achieve this at this time or do I need to wait for more functionality?
TIA
Tom
Hi tom-pharmhr,
Please try to use workflow definition language formatDateTime to format the dueDateTime to the format “dd-MM-yyyy”.
But you need to add a compose action and configure it as “@array(formatDateTime(items('Apply_to_each')?['dueDateTime'],'dd-MM-yyyy'))”.
Then in the Create HTML table action, select Custom for the Columns field, then select the Compose output for the Value field.
Please try it on your side. Hope it will work for you.
If you need more help, please feel free reply.
Best regards,
Mabel Mao
Hi Mabel,
Thank you for your suggestion, it was a step in the right direction as the date is now formatted correctly but I got 1 email for every task so had 20 emails. I'd like 1 email listing all 20 tasks in a HTML table or just a list.
Thank you
Tom
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 |
---|---|
45 | |
42 | |
37 | |
36 | |
23 |
User | Count |
---|---|
44 | |
38 | |
30 | |
28 | |
26 |