web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add 7 days automatical...
Power Automate
Unanswered

Add 7 days automatically to planner task in workflows in MS Teams

(1) ShareShare
ReportReport
Posted on by 10
Please can someone help. I have a workflow created in microsoft teams that as soon as an email lands in a specified inbox, a new planner task is created. I want to add an automatic due date to the task. I have tried multiple codes and I cant get it to work. 
 
This code
concat(formatDateTime(parseDateTime(triggerOutputs()?['body/createdDateTime']), 'yyyy', 'en-US'), slice(triggerOutputs()?['body/createdDateTime'], indexOf(triggerOutputs()?['body/createdDateTime'], '-'), add(indexOf(triggerOutputs()?['body/createdDateTime'], '-'), 5)), '8')
 
seems to make all due dates as 18/10/2024
 
this does the same
 
concat(
formatDateTime(
addDays(parseDateTime(triggerOutputs()?['body/createdDateTime']), 7),
'yyyy',
'en-US'
),
slice(
triggerOutputs()?['body/createdDateTime'],
indexOf(triggerOutputs()?['body/createdDateTime'], '-'),
add(indexOf(triggerOutputs()?['body/createdDateTime'], '-'), 5)
),
'8'
)
 
the add dates function doesnt work either. 
 
any tips would be great please. 
 
thank you
 
 
Categories:
I have the same question (0)
  • Suggested answer
    abc 123 Profile Picture
    784 Moderator on at
  • SB-15101258-0 Profile Picture
    10 on at
    Sorry this hasnt worked what is the code to be added to the workflow

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard