I am constructing a flow to save email attachments to a sharepoint library. The file name should be saved along with its received time. So I'm using formatDateTime function to format the received date time of the attachment in the compose action.
This is the expression that I've used - formatDateTime(triggerOutputs()?['body/receivedDateTime'],'dd/MM/yyyy hh:mm tt')
It actually works fine and changed to the required format I mentioned, but while getting saved in SharePoint, symbols like '/' and ':' were replaced with '_'. That could be due to some restrictions on file name in sharepoint, but is there a way to save the file as per I desire??