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

Community site session details

Session Id : IdHJzADgxx0yZjwvSAhFb6
Power Automate - Building Flows
Answered

Copy attachment URL to hyperlink/picture column in share point list

Like (0) ShareShare
ReportReport
Posted on 28 Jun 2023 16:45:22 by 5

I have an asset management share point list, to which items can be added via a power app. Photos of the items get uploaded to the list as attachments. I have just discovered the ability to display the attachment URLs as images within the share point list by using a ‘hyperlink/picture’ column. The share point list currently contains over 2500 items so manually porting over each attachment URL is not a viable option. Is there a way using a power automate flow to find the attachment URLs for each item, then copy that link into the corresponding ‘hyperlink/picture’ column for each item? 

I have the same question (0)
  • ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on 10 Feb 2024 at 09:47:53
    Re: Copy attachment URL to hyperlink/picture column in share point list

    Hi @Poetje_Ba 

     

    In hyperlink picture column only one link is allowed to store. Are you looking to store link of any particular attachment (lets say first in order) in that column? Or are you using multiline text for storing hyperlinks of multiple attachments? 

     

     

  • Poetje_Ba Profile Picture
    10 on 09 Feb 2024 at 15:28:27
    Re: Copy attachment URL to hyperlink/picture column in share point list

    this solution works with 1 attachment only !
    Only the last attachmentlink will be stored into the columnfield.

  • SAIDO Profile Picture
    4 on 12 Oct 2023 at 20:01:34
    Re: Copy attachment URL to hyperlink/picture column in share point list

    Nice job, thank you very much for this input !

  • RCAleXLR Profile Picture
    5 on 30 Jun 2023 at 10:57:13
    Re: Copy attachment URL to hyperlink/picture column in share point list

    This is exactly what I needed and functioned perfectly. Thank you!

  • Verified answer
    ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on 28 Jun 2023 at 19:57:16
    Re: Copy attachment URL to hyperlink/picture column in share point list

    Hi @RCAleXLR 

     

    Here is the sample flow which you can refer for performing the automation task:

    In the below example, I have taken list name as 'Test123' and hyperlink/picture column as 'hyperlinkpictureCol'

    1. Create a manual trigger flow with 'Get items' as the first step which will fetch all the list items:

    ManishSolanki_0-1687981353572.png

     

    2. Next, using 'Apply to each' action, we will iterate each list item and check if it has any attachment using 'Condition' action:

    ManishSolanki_1-1687981595407.png

     

    3. Now, inside 'Yes' add an action 'Get attachments' to fetch the attachment URL of the current iterated item:

    ManishSolanki_2-1687981701178.png

     

    4. Continue inside 'Yes' path, add another 'Apply to each' action to iterate all the attachments and within 'Apply to each 2' action using 'Send an HTTP request to SharePoint' to update the hyperlinkpictureCol of each item:

    ManishSolanki_3-1687981926793.png

    ManishSolanki_4-1687982014878.png

     

    The text used in Body of POST request is:

    {
    "formValues":[
    {
    "FieldName":"hyperlinkpictureCol",
    "FieldValue":"@{item()?['AbsoluteUri']}"
    }
    ]
    }

    Note: Please replace 'hyperlinkpictureCol' field name with the actual column name.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 840 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 712 Super User 2025 Season 2

#3
stampcoin Profile Picture

stampcoin 373 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete