I receive an daily status email to shared mailbox with an attachment. I am able to save that attachment to SharePoint location. The name of attachment doesn't change but I want to append the date email was received to the attachment name.
Here's what I have used:
Expression is :
I have also tried this expression:
Nether of them work.
The output I get is something like :
00-16-2020 (+attachment name) [for email received on 16th Nov 2020] OR
01-17-2020 (+attachment name) [for email received on 17th Nov 2020]
What I want is :
00-16-2020 (+attachment name) [for email received on 16th Nov 2020] OR
01-17-2020 (+attachment name) [for email received on 17th Nov 2020]
Please Help
Solved! Go to Solution.
@krootzThe file name is not the issue. the date doesn't get extracted properly.
I see you use "MM-dd-yy" and I was using "mm-dd-yyyy".
That did the trick.
@pkulkarni use the concat function to append strings
concat(formatdatetime(triggerOutputs()?['body/receivedDateTime'],'MM-dd-yy'),'<yourfilenameDyanamicContent>','For email received on xxxx')
@krootzThe file name is not the issue. the date doesn't get extracted properly.
I see you use "MM-dd-yy" and I was using "mm-dd-yyyy".
That did the trick.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
85 | |
57 | |
42 | |
37 | |
33 |
User | Count |
---|---|
91 | |
73 | |
72 | |
60 | |
40 |