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

Planner Flow Date Value Format Error

I am using the template "Create a daily summary of Planner Tasks by Bucket" and am trying to customize it.

 

I want to change the "value planner due date" date format to a more user friendlt option but when I enter an expression instead of the value it crashes the flow.

 

When I replace the value below with the following expression the flow fails:

formatDateTime(items('Iterate_through_tasks')?['dueDateTime'], 'yyyy-MM-dd').
 
If I look at what the code for the actual value is it's:
items('Iterate_through_tasks')?['dueDateTime']
 
I just want the date to be in a more standard user friendly format. How do I change this value without breakign the flow? I must be missing something as it works everywhere else except when setting the variable. 

 

Annotation 2019-03-08 070039.jpgAnnotation 2019-03-08 070231.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
v-zhos-msft
Level 10

Re: Planner Flow Date Value Format Error

Hi @Afex ,

You want to change the "value planner due date" date format in the flow.

I have made a test for your scenario, please check it for a reference.

I added two 'compose' action before the 'Set TaskDetails variable' action.

The expression of 'Compose 2' is:

formatDateTime(outputs('Compose'),'yyyy-MM-dd')

Capture2.PNG

Capture3.PNG

 

Best Regards,

Community Support Team _ Zhongys

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
v-zhos-msft
Level 10

Re: Planner Flow Date Value Format Error

Hi @Afex ,

You want to change the "value planner due date" date format in the flow.

I have made a test for your scenario, please check it for a reference.

I added two 'compose' action before the 'Set TaskDetails variable' action.

The expression of 'Compose 2' is:

formatDateTime(outputs('Compose'),'yyyy-MM-dd')

Capture2.PNG

Capture3.PNG

 

Best Regards,

Community Support Team _ Zhongys

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
themrslewis
Level: Power Up

Re: Planner Flow Date Value Format Error

Thank you!  How did you create the function/expressions to go into Compose 2?  When I created the second compose action and copied and pasted the expression in the value text box it didn't turn into a Function.

Super User
Super User

Re: Planner Flow Date Value Format Error

Flow doesn't like copying and pasting unless it's plain text. In the Compose 2 go over to the Expression tab on the right and paste in or type

formatDateTime(outputs('Compose'),'yyyy-MM-dd')

then click OK.

Rob
Los Gallardos

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: 168 members 3,723 guests
Please welcome our newest community members: