How to add a timestamp on Azure Logic Apps

Anonymous
2021-08-17T00:42:44.003+00:00

I have a very basic Logic Apps which grabs an email attachment from Outlook 365 and upload into Azure file.
123741-image.png

I am not sure how to create a timestamp on the title.
I am getting "BadRequest" error as if they cannot carry the data.
How do I implement/add the "ReceivedTime" properly?

Bottom are four screenshots of each step:
1)
123751-image.png

2)
123734-image.png

3)
123698-image.png

4)
123761-image.png

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Samara Soucy - MSFT 5,141 Reputation points
    2021-08-17T02:03:06.863+00:00

    It is very likely that the issue is that the file name is not valid. Only numbers, letters, and the dash (-) character are allowed. Since timestamps usually make use of colons (:) and both that and the subject may contain spaces, it's not a valid filename. The replace() function should be a big help here is removing the characters and substituting with dashes where needed. Something like replace(replace(<text>, ':', '-'), ' ', '') would replace colons with dashes and remove spaces.

    0 comments No comments

  2. Anonymous
    2021-08-17T16:27:04.593+00:00

    @Samara Soucy - MSFT Thanks for helping. The file name was not anything special. It was "PayCor_0806". It goes thru without any issue when there is no "Received Time". But, when I add that, it creates the error.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.