Hi everyone!
I'm trying to create a flow that creates a Planner task when a Form response is submitted. Where I'm specifically having trouble is on the task Due Date Time field.
I need the due date to be three days before my Requested Send Date. The Requested Send Date is one of the data fields from my Form, and I've pulled it into the below expressions as:
(body('Get_response_details')?['rd11379f17ee94ff5afe9aee5b6567aa5']
Here's the full expression I have in the Due Date Time field currently:
addDays(body('Get_response_details')?['rd11379f17ee94ff5afe9aee5b6567aa5'],-3,'mm/dd/yyyy')
I've also tried:
@equals(formatDateTime(body('Get_response_details')?rd11379f17ee94ff5afe9aee5b6567aa5'],'MM/dd/yyyy'),formatDateTime(addDays(body('Get_response_details')?rd11379f17ee94ff5afe9aee5b6567aa5'],-3),'MM/dd/yyyy'))
Both versions return status code 400 with this error message when I try to run the Flow:
{
"error": {
"code": "",
"message": "The request is invalid:\r\nCannot convert the literal '00/23/2018' to the expected type 'Edm.DateTimeOffset'.",
"innerError": {
"request-id": "814b5dd1-205d-4cef-8ccc-ef10a49e3887",
"date": "2018-01-19T19:13:11"
}
}
}I've looked at a bunch of the discussions here and tried to figure this out, but I am throroughly stuck. Any pointers would be greatly appreciated!!