I have a "ModelYear" column in SPList formatted as Date field.
In PowerApps I am passing Text(drpMfgYear.Selected.Value) to a Run call to flow:Run(Text(drpMfgYear.Selected.Value)) along with some other fields required by flow.
In the flow, I have formatDateTime(triggerBody()?['Updatefileproperties_ModelYear'],'yyyy').
Flow fails with error message:
Unable to process template language expressions in action 'Update_file_properties' inputs at line '1' and column '1935': 'The template language function 'formatDateTime' expects its first parameter to be of type string. The provided value is of type 'Integer'. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'.
What am I doing wrong? Please help.
