web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / how to send pdf file w...
Power Automate
Unanswered

how to send pdf file with date and time as part of its name via email in power automation?

(0) ShareShare
ReportReport
Posted on by 127

I am sending email notifications along with a  a generated pdf.

here is the attached link in send email automation:

Sebey_3-1683903192729.png

 

In sharepoint online folder it looks like this:

Sebey_4-1683903231878.png

When I open the file in web browser from SharePoint online folder,  the URL  looks like this

...../IssueVoucher-2023-05-12T13_53_08.6111710Z.pdf

..../IssueVoucher-2023-05-09T14_34_08.6102965Z.pdf

So Now what I want is put UTCNOW() experession as the end of my file name and link that to email.

but when it arrives in email, it doesn't open the link because it doesn't  have similar  file name like this .../ IssueVoucher-2023-05-12T13_53_08.6111710Z.pdf "

here is the screen shoot of the email:

Sebey_2-1683902988860.png

when I click the link, it doesn't open the file, because the date and time format is not equal as it is in the share-point folder.

your help is appreciated.

 

 

 

 

 

Categories:
I have the same question (0)
  • wskinnermctc Profile Picture
    6,519 Moderator on at

    You need to make a Variable and put the utcNow() in that variable as a string.

     

    Then use the variable at the end of the file name. Use the same variable for creating the link.

     

    This way the utcNow() expression is called only once at the time it is put into the variable. The variable string will stay the same everywhere else you use it in the flow.

     

    I made an example putting utcNow() in a variable. Then I put some time delays to show that the variable stays the same when it is used in other steps.

     

    Here is the example flow:

    wskinnermctc_0-1683904176571.png

     

     

    Here are the results that show the Compose steps keep the same value.

    Variable ResultsVariable Results

     

     

    Another approach would be to use the "Create sharing link for a file or folder"

    wskinnermctc_1-1683904929890.png

    So after you create the file, you put the new item Id into this step and create a link to use elsewhere.

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    You could also use the action "Create sharing link for a file or folder"

    wskinnermctc_0-1683904683391.png

     

    So after you create the file, you put the new item information into this step and create the link to use elsewhere.

     

  • Sebey Profile Picture
    127 on at

    method 1: the link in the sharepoint site, its format is: /IssueVoucher-2023-05-15T08_08_59.4089381Z.pdf but in the email: IssueVoucher-2023-05-15T08:09:07.1143470Z.pdf

    I noticed to problem: 1) the format is not same,look the red color, 2) the file send to email and the file created in the SharePoint have different time(at least there is some minutes different, I dont know why).

    method 2: I could not find the Item id row while adding create a link for file and folder share

    your help is appreciated.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard