What do I need to type in this expression to get the Due Date to be Start Date (which is a field from a Form) + x days.
Solved! Go to Solution.
Hi @Anonymous ,
Please refer to screenshot below to create the flow:
The expression for the Due Date Time field as below:
add(outputs('Compose'),2)
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @Anonymous
For example, to add 2 days to the start time field, you could use an expression like:
addDays(body('USB_Drive_()')?['Start_Date'];2)
Hope it helps.
Ferran
Thanks, I don't think that's quite what I need. The field that will have the calculated date is the Due Date" and the date it shows needs to be "Startdate" field from the form + 5 days (for example).
e.g. the form Start Date is Feb 20th. So Due Date field should be Feb 20th+5 days = 25th (but the Start Date is not manually entered it comes from the Form Field).
So, if I understand, you need the start date field from the form response, isn't it? Therefore the expression should be:
addDays(body('get_response_details)?['StartDate'];5)
Hope it helps.
Ferran
I got this error..
Hello @Anonymous
You should use formatDateTime function to convert date value to string, as it is expected to create the task in Planner. Have a look at this sample (visit_date is a date field in the form):
Hope it helps!
Ferran
Thanks...where would the AddDays expression be placed in this?
Hi @Anonymous ,
Please refer to screenshot below to create the flow:
The expression for the Due Date Time field as below:
add(outputs('Compose'),2)
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
I don't understand your question... Anyway, you could place the formula inside the "Due Date" field in planner task.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
User | Count |
---|---|
76 | |
20 | |
17 | |
14 | |
13 |
User | Count |
---|---|
128 | |
35 | |
29 | |
28 | |
25 |