We have files being emailed in (1 per email) and the attachments are name eg 01-06-20. I would like to save the attachment out to SharePoint to the existing structure which has separate yearly folders with monthly sub-folders. I can get it all to work bar for one thing... The monthly folder needs to be as text ie Jan, Feb..... Dec. I can extract the numeric for the month but don't see how to get this as a text month.
Any suggestions?
Solved! Go to Solution.
You can place a Compose action and use the following expression:
Regards
Krishna Rachakonda
If this reply helped you to solve the issue, please mark the post as Accepted Solution. Marking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone. |
You can place a Compose action and use the following expression:
Regards
Krishna Rachakonda
If this reply helped you to solve the issue, please mark the post as Accepted Solution. Marking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone. |
If you want as string, you can have the expression as below:
string(formatDateTime(utcNow(),'MMMM'))
Regards
Krishna Rachakonda
If this reply helped you to solve the issue, please mark the post as Accepted Solution. Marking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone. |
Great idea! However, I don't believe that conversion to a string will be necessary - the output of formatDateTime is already a string.
I had already tried something along these lines but to use formateDateTime I have to parse a date value. What I have been doing is splitting the email subject into an array so that I have the day, year and month values as separate elements in order to place the attachment into the correct folder. I was then trying to parse the month value eg '06' and using the suggested method this caused an error.
I guess I'll need to extract the date value and parse that.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
User | Count |
---|---|
45 | |
18 | |
15 | |
14 | |
12 |
User | Count |
---|---|
79 | |
35 | |
29 | |
20 | |
19 |