
Dear Community,
I have got a problem with addToTime function.
I try to update a SharePoint list just adding 1 year.
The field in SharePoint is of datatype Date and Time.
I have got a value from another list which is called "Prüfdatum".
Now I just try to set a new date using:
addToTime(@{outputs('Get_item_Messprotokolle')?['body/Pr_x00fc_fdatum']},12, 'Month')
It looks like this:
However when I test the flow it is saying
OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Update_item_Elektrische_Geräte' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/N_x00e4_chste_x0020_Pr_x00fc_fun' is required to be of type 'String/date'. The runtime value '"addToTime(2021-10-25,12, 'Month')"' to be converted doesn't have the expected format 'String/date'.
Then I tried with formatDateTime:
formatDateTime(addToTime(@{outputs('Get_item_Messprotokolle')?['body/Pr_x00fc_fdatum']},12, 'Month'),'ddMMyyyy')
But I get the same error message.
Can anybody help?
Thank you in advance!
Oh my god....
Just a beginners problem...
I typed in "Dynamic Content" and not in "Expression".
I copy and pasted to Expression and now everything is working.