cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Crockerfeller Advocate I
Advocate I

Planner Create Task - Not setting correct due date.

Hi All,

I am using a SharPoint form to submit a request that starts off as a SharePoint list item.  In the form, users are selecting a due date.  

A flow trigger catches the new item, and it then uses the Planner Create Task action to create a task in my Plan.  This is working great.  The problem is... the due date appears correct in the SP list, but when I use the dynamic content for the due date field in the MS Flow Planner Create Task action... the date that appears in the Task is incorrect.  The date is showing in the Task as 1 day earlier than the due date chosen by the user, and what is seen in SharePoint.

Any thoughts on how to fix this?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Planner Create Task - Not setting correct due date.

Hi @Crockerfeller,

 

I think this has something to do with Time zone, so there is a time difference between the time taken in SharePoint and the time inserted into Planner task.

For example, if the DueDate field contains Time, then the time acquired in Flow will be different from the one displayed in the list, so the time inserted into the Task will be different.

Like:

35.PNG36.PNG37.PNG

If the DueDate does not contain a Time, then the obtained Date is the same, I did the test on my side, there is no error you mentioned.

38.PNG39.PNG

If you're confirming the problem caused by the time difference, you could consider using the addHours() function to eliminate the time difference, or use the Convert time zone action to eliminate the time difference.

 

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

3 REPLIES 3
SCTdan Responsive Resident
Responsive Resident

Re: Planner Create Task - Not setting correct due date.

I've seen this come up before I believe. I'm on the run right now and not in a position to search for it, but if I recall correctly, this has to do with the due date being considered an "all-day event".  Not much sorry, but hopefully points you in the right direction.  

Super User
Super User

Re: Planner Create Task - Not setting correct due date.

"The problem is... the due date appears correct in the SP list, but when I use the dynamic content for the due date field in the MS Flow Planner Create Task action... the date that appears in the Task is incorrect.  The date is showing in the Task as 1 day earlier than the due date chosen by the user, and what is seen in SharePoint."

 

In order to troubleshoot this for you ... can you please post pics of your flow?

 

Any errors or identifiers that will help with the investigation welcome.

 

Thnaks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Community Support
Community Support

Re: Planner Create Task - Not setting correct due date.

Hi @Crockerfeller,

 

I think this has something to do with Time zone, so there is a time difference between the time taken in SharePoint and the time inserted into Planner task.

For example, if the DueDate field contains Time, then the time acquired in Flow will be different from the one displayed in the list, so the time inserted into the Task will be different.

Like:

35.PNG36.PNG37.PNG

If the DueDate does not contain a Time, then the obtained Date is the same, I did the test on my side, there is no error you mentioned.

38.PNG39.PNG

If you're confirming the problem caused by the time difference, you could consider using the addHours() function to eliminate the time difference, or use the Convert time zone action to eliminate the time difference.

 

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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,969)