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!