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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adding a Picture to a ...
Power Automate
Unanswered

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!

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard