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

Cant get due date to work in Planner via flow

Hi all,

 

Im pretty new to working with flows. I have created a flow in which by sending an email (lead) to the Sales channel in Teams I would like to have an automatic task to follow up the lead in Planner. I managed to get everything to work, but the only thing I cant get to work is the due date of the task. I would like to add 3 days to the date of the creation of the task as a due date of the follow up of the lead. 

 

Could someone explain me the code line of what ever I have to put in the ''due date'' thing in the flow? I have copied this line of code. I found it in another post somewhere but it doesnt work. I am not the smartest when it comes to coding so I need an explanation in plain English 🙂 

 

addDays(triggerBody()?['Created'], +3, 'yyyy-MM-ddT00:00:00MST')
 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Cant get due date to work in Planner via flow

 

Hi @Moofie ,

 

If it is a configuration as shown below, then expression should be the following.

Image reference:

114.PNG

Expression reference:

addDays(triggerBody()?['createdDateTime'],3,'yyyy-MM-dd')

For more details about WDL function, please check this online doc:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#d... 

 

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

2 REPLIES 2
Moofie
Level: Powered On

Re: Cant get due date to work in Planner via flow

Hi,

 

I just found the solutions (adddays(utcnow(),1, 'yyyy-MM-dd')) 

 

Community Support Team
Community Support Team

Re: Cant get due date to work in Planner via flow

 

Hi @Moofie ,

 

If it is a configuration as shown below, then expression should be the following.

Image reference:

114.PNG

Expression reference:

addDays(triggerBody()?['createdDateTime'],3,'yyyy-MM-dd')

For more details about WDL function, please check this online doc:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#d... 

 

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,872)