Hi,
I am new to power automate.
I am trying to get the difference btw two date fields "Date Reported" and "Email Sent' from sharepoint and if the number of days is greater than 10 days send mail Notification.
My flow is :
dateDifference(item()?['DateReported'],item()?['EmailSent'])

The above flow is failing with error Unable to process template language expressions for action 'Condition_2' at line '0' and column '0': 'The template language function 'greater' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'.
As an option2: I have a column in Sharepoint "Date Lapse" which has already calculated the difference just need to do the "if the number of days is greater than 10 days". My problem is I am not able to do the If stt greater than 10 days

Thanks in advance.