Hello everybody.
I'm building a flow to update a Sharepoint List from a Excel.
This excel has some columns with dates, which may contain data or not.
When I created de Sharepoint list there was no problem with that empty cells, but I have problem creating the flow.
This is the code I'm using to update the list:
if(empty(items('For_each')?['ANTIGUEDAD_CARGO']),null,addDays('1899-12-30',int(items('For_each')?['ANTIGUEDAD_CARGO']),'dd/MM/yyy'))
When the cell from excel contains a date works fine, but when it's blank it returns this error:
OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Update_element' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/field_10' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'.
I've read a lot of pages saying that using null solves the problem but not for me.
Any clues?
Thanks in advance.