I successfully built a flow that creates a Microsoft To Do task from an Outlook email.
I want to set a due that is +2 days from the date the To Do task is created.
I'm very new to Power Automate, so I'm a rank newbie when it comes to expressions or variables. As they say in one of my favorite sub-Reddits, "Explain to me like I'm 5" ... :^)
hi @OldFatDog you need to add a function call addDays() like this addDays('YourDate', 2).
Proud to be a Flownaut!
@ChristianAbata wrote:hi @OldFatDog you need to add a function call addDays() like this addDays('YourDate', 2).
Thanks, Christian. I'm new to using expressions, but it seems like your solution is saying for me to use a "hard-coded" or specific/static start date ('YourDate') rather than (somehow) starting with the date that the task is created... ?
The start day is never a specific/static date. I get about five of these tasks a week, and the due date is always +2 days after I have been assigned the task.
Given that, how do I make it (task creation date +2 days = due date)?
mmm @OldFatDog the start day is when you create the task so you can use this formatDatetime(uctNow(),'yyyy-MM-dd') to get the current date and then add 2 days so the full fuctions is like this addDays(formatDatetime(uctNow(),'yyyy-MM-dd'), 2)
Proud to be a Flownaut!
@ChristianAbata wrote:mmm @OldFatDog the start day is when you create the task so you can use this formatDatetime(uctNow(),'yyyy-MM-dd') to get the current date and then add 2 days so the full fuctions is like this addDays(formatDatetime(uctNow(),'yyyy-MM-dd'), 2)
Okay, I just copied and pasted your function above and it isn't accepting the string as valid. What am I doing wrong?
@OldFatDog please use only the expresion formatdatetime in a separeted compose an then in other addDays
Proud to be a Flownaut!
Hi @OldFatDog ,
Please try to use the following expression:
addDays(utcNow(),2,'yyyy-MM-dd')
Hope this helps.
Best Regards,
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
29 | |
28 | |
24 | |
17 | |
10 |
User | Count |
---|---|
66 | |
57 | |
29 | |
27 | |
25 |