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 / Send an HTTP Request t...
Power Automate
Answered

Send an HTTP Request to SharePoint Issue

(1) ShareShare
ReportReport
Posted on by 22
Hello!

I have currently have the following flow call that works in adding an image to a sharepoint list:
"inputs": {
    "parameters": {
      "dataset": "https://CLIENTSITE.sharepoint.com/sites/[...]",
      "parameters/method": "POST",
      "parameters/uri": "_api/web/lists/getbytitle('titlenospaces')/items(@{outputs('Create_item')?['body/ID']})",
      "parameters/headers": {
        "Accept": "application/json;odata=verbose",
        "Content-Type": "application/json;odata=verbose",
        "If-Match": "*",
        "X-HTTP-Method": "MERGE"
      },
      "parameters/body": "{\n  \"__metadata\": {\n    \"type\": \"SP.Data.Sample_x0020_ListListItem\"\n  },\n  \"Photo_x0020_of_x0020_Observation\": \"{ \\\"type\\\": \\\"thumbnail\\\", \\\"fileName\\\": \\\"@{items('Apply_to_each_2')['name']}\\\",\\\"serverUrl\\\": \\\"https://CLIENT.sharepoint.com\\\",\\\"serverRelativeUrl\\\":\\\"/sites/[...]/Microsoft Forms/[...]/Attach a Photo/@{items('Apply_to_each_2')['name']}\\\" }\"\n}\n"
    },
    "host": {
      "apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
      "connection": "shared_sharepointonline",
      "operationId": "HttpRequest"
    }
  },

This successfully adds images to the SP list and are visible on the SP Site. However, they are not visible on PowerApps (even the default template) unlike adding the image manually on the Sharepoint List. Is there anything I'm missing on the body or headers? 

Thanks in advance for tips!
Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,123 Most Valuable Professional on at
    Does, the file name items('Apply_to_each_2')['name'] have an appropriate file extension as part of the name?

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • doughpii Profile Picture
    22 on at
    Hi Paul,

    Thank you for your reply.  The file name items('Apply_to_each_2')['name'] includes the appropriate file extension, this is an example of a last run: 
    bug_doughpii.png



     
  • Verified answer
    doughpii Profile Picture
    22 on at
    Solution + Workaround found:

    Solution: 
    After inspecting the SP list and comparing the image files between REST calls and manually inserting it, a REST Call does not actually insert the image into the SP list/site.  It simply points the source of the image to the one specified in (serverUrl/serverRelativeUrl). As such, the folder has to be shared with the client's internal environment so its visible to everyone except external users.  In addition, the (serverRelativeUrl) was also added to the PowerApps' database.
     
    Workaround:
    Instead of using the HTTP call in power automate, you can instead use 'add attachment to item' after getting the file content with an appropriate connector. Then point the image in PowerApps to first(attachments).

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard