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 / Update SharePoint site...
Power Automate
Unanswered

Update SharePoint site page properties with Send HTTP request

(0) ShareShare
ReportReport
Posted on by 22

Greetings,

 

I have a list in one SharePoint site which represents normalized data I want to turn into site pages. I'm using this technique to make it happen:

 

(39) Create SharePoint Site Pages automatically with Power Automate - YouTube

 

In some of the columns on my list of items that I will convert to site pages have data that I want to map to site page properties. The end goal I'm shooting for is the same as what's highlighted in the video I shared. A list in one SP site driving the creating of pages in another SP library. The one variation I want to make here is updating page properties after the new page has been created. This is important because I need these properties to develop the UX my end-users will need and I don't want to do this by hand since we have a few hundred list items to convert to site pages.

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

    Hi @kevintaylor81,

     

    It should be possible to use the update file properties action for this.

     

    Below is an example of that.

     

    pageproperties_updatefile.png

  • kevintaylor81 Profile Picture
    22 on at

    @Expiscornovus Thanks! That got me moving forward but I've hit a new snag

     

    I'm getting an access denied error in my flow's second step.

     

    Web capture_25-6-2021_12059_us.flow.microsoft.com.jpeg

    Here is the raw output from that step.

    {
        "statusCode"403,
        "headers": {
            "Pragma""no-cache",
            "x-ms-request-id""4364d59f-e0c0-0000-c4da-17f625367271",
            "Strict-Transport-Security""max-age=31536000; includeSubDomains",
            "X-Content-Type-Options""nosniff",
            "X-Frame-Options""DENY",
            "Cache-Control""no-store, no-cache",
            "Set-Cookie""ARRAffinity=8ce2988208de9833422b6cabc9516aa20d0421ce61bf7c3c18ce2a28cdfca90c;Path=/;HttpOnly;Secure;Domain=sharepointonline-eus.azconn-eus.p.azurewebsites.net,ARRAffinitySameSite=8ce2988208de9833422b6cabc9516aa20d0421ce61bf7c3c18ce2a28cdfca90c;Path=/;HttpOnly;SameSite=None;Secure;Domain=sharepointonline-eus.azconn-eus.p.azurewebsites.net",
            "Timing-Allow-Origin""*",
            "x-ms-apihub-cached-response""true",
            "Date""Fri, 25 Jun 2021 16:53:41 GMT",
            "Content-Length""500",
            "Content-Type""application/json",
            "Expires""-1"
        },
        "body": {
            "status"403,
            "message""Access denied.\r\nclientRequestId: 224187df-0df2-46de-8c23-f59f4f20884e\r\nserviceRequestId: 4364d59f-e0c0-0000-c4da-17f625367271",
            "errors": [
                "-2147024891",
                "System.UnauthorizedAccessException"
            ]
        }
    }
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @kevintaylor81,

     

    Can you share a screenshot of the configuration of that action? Just want to check for instance the URI in the action.

     

    I also notice that you are using the GetFileByUrl method in your error message.

     

    In SharePoint Online I have seen a lot of examples which use the GetFileByServerRelativeUrl method instead. Might be worth checking that as well:

    https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest#working-with-files-by-using-rest

     

  • kevintaylor81 Profile Picture
    22 on at

    Here is the image I think you're asking for. In the video I shared where the developer demonstrates this method, they started by using a relative URL method, but I wasn't able to get that to work so tried this. Would I just swap out that one string for GetFileByServerRelativeUrl?

    Web capture_1-7-2021_204217_us.flow.microsoft.com.jpeg

  • kevintaylor81 Profile Picture
    22 on at

    I tried the GetFileByServerRelativeUrl method and this is what I got.

     

    Web capture_1-7-2021_204854_us.flow.microsoft.com.jpeg

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