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 / PATCH method for http ...
Power Automate
Unanswered

PATCH method for http request to share point failing due to URI

(0) ShareShare
ReportReport
Posted on by 20

I have a powerapp, from there i construct a json that include captured image and metadata about the image. My SharePoint has document library, one of my powerapp flow create a folder whenever, a new list item is created. current flow takes the json object and folder name and save the images to the folder. My issue is, after file creation, i want to update the fields/columns related to the captured image. I need help for Uri for http request.1.png2.png3.png4.png

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @swami12345,


    I see you are using ListItemAllFields in your URI. My suggestion would be to use the ValidateUpdateListItem method instead.

     

    Below is an example for a single field, but the formValues array also allows multiple fields at once:

    https://tomriha.com/update-single-sharepoint-column-in-power-automate-with-http-request/

     

  • swami12345 Profile Picture
    20 on at

    hi @Expiscornovus 

    i think list "_api/web/lists" will not work with me. I have folders in image library, and within the folder, i have images stored. Can you suggest any approach1.png

    also "form values" is for list, does the data inside the folder is considered as list

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @swami12345,

     

    A folder or file also has an item id (in your case if your creating the folder you should get the id returned in the outputs). So you should also be able to use that method for files and folders as well.

     

    I have used this method before file metadata property updates. Do you want me to share an example for an Image Library folder?

  • swami12345 Profile Picture
    20 on at

    @Expiscornovus , it will be very helpful if you share the image. Thank you

  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @swami12345,

     

    Below is an example

    The URI uses the ItemId of the Create File action. That should be the ID of the image your are trying to update.

     

    URI

    _api/web/lists/GetByTitle('Image Library')/items(@{outputs('Create_file')?['body/ItemId']})/validateUpdateListItem

     

    Body

    {
     "formValues":[
    	{
    	 "FieldName": "Element_ID",
    	 "FieldValue": "Power Automate Ftw"
    	},
     {
    	 "FieldName": "Floor_Number",
    	 "FieldValue": "13"
    	}
     ]
    }

     

    example_validateupdatelistitem.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