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 / Manage sequential appr...
Power Automate
Answered

Manage sequential approvals with Power Automate: Show attachments in notification sent to reviewer

(0) ShareShare
ReportReport
Posted on by 82

For the sake of simplicity and ease of reproducible steps, let's say I'm using Manage sequential approvals with Power Automate - Power Automate | Microsoft Learn  with one change: as part of the process, the person submitting the vacation request must also submit a file attachment (pdf) to their request that is proof that they took the "how to take a vacation" training. So the workflow is, they go the sharepoint list, fill out their vacation request details which include uploading the pdf-proof-of-training in the attachment-enabled list. 

 

In the Start and Wait for Approval Card there is an Item Link where I currently have it set to "Link to Item". The approver gets a powerautomate approval request email, and the link to the item is the ENTIRE sharepoint item, with all of the columns and the file attachment way down at the bottom. 

 

What I need is just a link to the attachment, or the attachment added to an email. All I need the approver to see as part of their approval process is that this attachment has been uploaded (and they can open the attachment). They need no other information to approve the request. 

Categories:
I have the same question (0)
  • David_MA Profile Picture
    15,079 Super User 2026 Season 1 on at

    I assume your flow is on a SharePoint list that allows attachments. If so, the field you are using (Link to item) is indeed tied to the list item. To point to an attachment, you need to first use the action Get attachments (note this action is plural which means it returns an array even if there are only one attachment). You would follow this with an Apply to each action since the prior action returns an array. The get attachments action returns these values and AbsoluteUri is the value you need:

    David_MA_0-1713203447572.png

    Since you'll need to create the approval within the apply to each, more than one approval will be created if more than one attachment has been added to the list item. If you are sure that only the one PDF is attached, you should be all set. Otherwise, you'll need to figure out how to deal with multiple attachments. 

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @tpcolson 
    You need to get the first document from Attachments which will give you the name of the document and the link to it. 
    Then you can put the link to the attachment in the Item Link field

  • tpcolson Profile Picture
    82 on at

    So this gets me in the right direction, thanks! But....

    Not exactly sure where to put the get file attachments in the flow, or how/what to "feed" into the apply to each. What I've tried makes the flow fail: 

     

    tpcolson_0-1713207851443.png

     

  • David_MA Profile Picture
    15,079 Super User 2026 Season 1 on at

    Where you put it in your flow looks correct to me. Based on what you asked, you just need to populate the Item Link in your approval with the dynamic value AbsoluteUri from the Get attachments action.

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    I’m not at a pc so doing this from memory!

    Add a compose action after the get attachments action. 
    in the compose action it’s something like the following as an expression:

    first(outputs(‘Get_attachments’)).Attachments

     

    Now you have a single record in that compose to which you can retrieve the attachment url e.g.

    outputs(‘Compose’)?[‘AbsoluteUri’]

    and the name of the file e.g.

    outputs(‘Compose’)?[‘DisplayName’]

     

  • tpcolson Profile Picture
    82 on at

    I am doing exactly that it fails

  • tpcolson Profile Picture
    82 on at

    tpcolson_2-1713216376394.png

     

     

  • tpcolson Profile Picture
    82 on at

    tpcolson_3-1713216579041.png

     

  • Verified answer
    DJ_Jamba Profile Picture
    2,837 Moderator on at

    I'm at a pc now 😂

    The correct syntax for the compose is:

    first(body('Get_attachments'))


    Then you can access URL and Name of attachment from the compose (my Compose is called Compose 2)

    AbsoluteUri
    outputs('Compose_2')?['AbsoluteUri']
    
    DisplayName:
    outputs('Compose_2')?['DisplayName']
  • tpcolson Profile Picture
    82 on at

    So, that solved one problem but created another! Ugh.....

     

    tpcolson_0-1713218564123.png

     

    Here's what I have so far: 

     

     

     

     

    tpcolson_2-1713218677888.png

    tpcolson_3-1713218715323.png

     

    But it is putting the link to the attachment in the approver notification

     

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 227

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard