Apologies for the beginner question, I'm new to Flow and don't have much coding experience.
I have a Flow that extracts pdf's from an email and adds a date and time stamp.
This is the code I'm using, I've used this before successfully.
concat(formatdatetime(triggerBody()?['DateTimeReceived'],'yyyy-MM-dd-hhmmss - '),item()?['Name'])
This is the error message I'm getting:
InvalidTemplate. Unable to process template language expressions in action 'Compose' inputs at line '1' and column '2665': 'The template language function 'formatdatetime' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'.
Any help would be much appreciated.
Thanks.