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,
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
26 | |
25 | |
23 | |
22 | |
18 |
User | Count |
---|---|
59 | |
41 | |
35 | |
30 | |
30 |