I have a flow that feeds a sharepoint list from an excel.
The problem :
there is a date column in the excel, when I use the dynamic content it gives me this error
"status": 400,
"message": "String was not recognized as a valid DateTime.\r\nclientRequestId: 8367bc4b-41aa-4e07-a747-f3b5af11fa45\r\nserviceRequestId: cb51a99e-606f-7000-6082-ad9b7ca62fc6"
So I used an expression to replace the dynamic content :
formatDateTime(items('Apply_to_each')?['AANSLUITING'],'ddmmyyyy')
But then It gives me this error :
InvalidTemplate. Unable to process template language expressions in action 'Create_item' inputs at line '1' and column '2506': 'In function 'formatDateTime', the value provided for date time string '15/11/2018' was not valid. The datetime string must match ISO 8601 format.'
I now have a workaround where I put all dates to numbers and use the following expression
addDays(addDays(formatDateTime('1900-01-01T00:00:00'),int(items('Apply_to_each')?['AANSLUITING'])),-2)
then it works, but this is not what I want to tell the user that he has to change the dates to numbers each time he wants to upload the excel to the sharepoint list. In the end we even want to automate the flow that he picks the the excel from a mail or a specific place and then there is no person to change the excel before the flow picks it up
