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 / Flow to extract image ...
Power Automate
Answered

Flow to extract image from sharepoint list type image

(0) ShareShare
ReportReport
Posted on by 353

Hi Community,

 

I have a SharePoint list with an image type column, from which I need to extract the image to add it to a part of the flow as variable input. I have seen several posts but since I am not very expert I have not been able to get the flow to work. I have seen that using "Send an HTTP request to ShaRepoint" the image is extracted, but I cannot do it.
Does anyone have a well explained flow that allows me to achieve this?.

 

As always, thank you all very much.

 

Francisco

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Francisco77,

    vqiaqimsft_1-1701829558755.png

    _api/Web/Lists/getbytitle('listname')/Items?$select=Test_Image

    Note that the Test_Image is my Image column name, you need to replace it with your column name

    vqiaqimsft_2-1701829636606.pngvqiaqimsft_3-1701829684106.png

    replace(json(body('Send_an_HTTP_request_to_SharePoint')?['d/results']?[0]?['Test_Image'])?['serverRelativeUrl'],'/sites/wearsky','')
    

    Note that wearsky is the site name on my side, so you need to replace it with yours.

     

    Then you could get the file content.

    vqiaqimsft_4-1701829756781.png

     

  • Francisco77 Profile Picture
    353 on at

    Hi @v-qiaqi-msft 

     

    First, thank for youre help¡. 

     

    The "Send an HTTP request to SharePoint" step gives me this error. What could be the reason if the name of my Sharepoint list column is correct?.

     

    Francisco77_0-1701834616881.pngFrancisco77_1-1701834663239.png

    Columna name is correct.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Francisco77,

    Not sure how you comfigrue the uri in the Http request.

     

    The error means that you have refer to a wrong column name, flow does not recgonize the column name including space.

    What's more, your image column name has space within, you should make sure you have got the real inner column name.

     

    Find out the column from the outputs of your trigger.

    A tip for you, never create a column name including any space, which brings you big trouble

  • Francisco77 Profile Picture
    353 on at

    Hi @v-qiaqi-msft 

     

    In the "Compose" part of the flow this error is generated, do you know what could be causing it?.

    Francisco77_0-1701870633389.png

     

    The compose formula is, where Photo1 is the name of my column: 

     

    json(body('Send_an_HTTP_request_to_SharePoint')?['d/results']?[0]?['Foto1'])
     
    Thanks
  • CloudLights_PK Profile Picture
    2 on at

    Hi Francisco,
    mittlerweile ist viel einfacher. Http-Request sind nicht mehr nötig.
    Da man in einer Liste immer nur ein Bild an einem Element speichern kann ist die Schleife nebensächlich.
    Man muss nur noch die IDs einsetzen und den Dateityp bestimmten. Dies ist in der Regel .jpeg. Falls es unterschiedliche Typ sind kann man dies aus dem Dateinamen in "Get Attachments" auslesen.

    CloudLights_PK_0-1717100785394.png

    Philipp

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard