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

Planner Notifications

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

2 REPLIES 2
Community Support
Community Support

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.
3.PNG


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

 

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.

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

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (8,063)