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 / Adding a Picture to a ...
Power Automate
Answered

Adding a Picture to a Sharepoint List via Flow

(0) ShareShare
ReportReport
Posted on by 2

Hello everyone

 

I have a form where entries are made. These entries then go into a Sharepoint list via PowerAutomate, which works fine so far . Now I would like to extend the list and add images to it. In other words, you should be able to upload an image in the form, which should then also be entered in the list via the PowerAutomate flow. I have added a new "Image" column to the list in Sharepoint. However, this new image column is not displayed as a parameter in the "Create Sharepoint Elemet" flow (if for example I add a text column, it is displayed as a parameter). Can someone help me out? I also addet a picture for visualization of the subject.

 

Thanks in advance!

24-04-_2024_08-22-24.jpg
Categories:
I have the same question (1)
  • Verified answer
    Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at

    Hi @Bberger1,

     

    If it is not showing up you can as a workaround use a Send an HTTP request to SharePoint action to update the item after creating it. That action should support updating an Image column.

     

    Below is an example

    In this sample I assume your MS Forms is a personal one. In that case all uploaded files would be stored in the OneDrive of the person who created the form. That direct link cannot be used in the Image column, that's why I am copying it to a SharePoint library instead before using it in an image column.

     

    1. Get File metadata using the question id of the Bild hochladen question

     

    first(json(outputs('Get_response_details')?['body/r76dd09f186484e3587d685c8f71a60de']))['id']

     

     

    2. Send an HTTP request uses the below

     

    a. URI

     

    _api/web/lists/getbytitle('@{variables('ListName')}')/items(@{outputs('Create_item')?['body/ID']})

     

     

    b. Headers (I am using nometadata headers, this way you don't have to figure out the ListItemEntityTypeFullName value 😁)

     

    {
     "Accept": "application/json;odata=nometadata",
     "Content-Type": "application/json;odata=nometadata",
     "If-Match": "*",
     "X-HTTP-Method": "MERGE"
    }

     

     

    c. Body (make sure you change the serverUrl and ServerRelativeUrl values)

     

    {"Bild": "{\"type\":\"thumbnail\",\"fileName\":\"@{outputs('Copy_file')?['body/Name']}\",\"fieldName\":\"Bild\",\"serverUrl\":\"https://contoso.sharepoint.com\",\"serverRelativeUrl\":\"/sites/PowerUsers@{outputs('Copy_file')?['body/Path']}\"}"
    }

     

     

    uploadedfile_example.png

     

    The result should look like the below

     

    bildtestresult.png

  • ア佐-29010012-0 Profile Picture
    3 on at
    Can I use this to upload an image from an external site? (Not saved in Share Point)

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 816

#2
Valantis Profile Picture

Valantis 603

#3
Haque Profile Picture

Haque 566

Last 30 days Overall leaderboard