Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 4Ef2+n2TnPpTcH9QqwkEia
Power Automate - Building Flows
Answered

HTTP call to create content on existing WIKI page

Like (0) ShareShare
ReportReport
Posted on 13 Mar 2024 12:54:50 by 1,304

Hey,

 

I am trying to create some content on an ADO wiki page via an HTTP connector:

 

Jondoesflow_0-1710334414852.png

 

The projectID and wiki name is coming from a previous GET HTTP call.  That seems to be working.

 

Password is my PAT Token.

 

When this step runs I get this error:

 

Parameter 'versions & newName' cannot be null or empty.
Parameter name: versions & newName

 

I have tried so many different things, but all coming back no go, any ideas?

Thanks,

Jon

  • JonDoesFlow Profile Picture
    1,304 on 18 Mar 2024 at 13:25:09
    Re: HTTP call to create content on existing WIKI page

    Thanks @Expiscornovus I actually got to the same conclusion as you in the end, but this is exactly what I did, so marking it as accepted solution.

  • Verified answer
    Expiscornovus Profile Picture
    31,711 Most Valuable Professional on 18 Mar 2024 at 12:17:21
    Re: HTTP call to create content on existing WIKI page

    Hi @Jondoesflow,


    As far as I am aware that PATCH request requires an additional key/value in the headers section. You can use the eTag of your first request for the value of that key.

    https://learn.microsoft.com/en-us/rest/api/azure/devops/wiki/pages/update?view=azure-devops-rest-7.1&tabs=HTTP#request-headers

     

    Below is an example how you can set that up.

     

    1. A GET request which retrieves page with ID 1

     

    getwikipagebyid.png

     

    2. The PATCH of that page, which uses the below expression for the If-Match key

    outputs('HTTP_-_Get_Wiki_Page_by_Id')['headers']['eTag']

     

    updatewikipagecontent_http.png

     

    I have also written this up as a blog btw:

    https://www.expiscornovus.com/2024/03/18/azure-devops-update-wiki-page-content/

     

     

    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 179 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 161 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 145

Overall leaderboard
Loading started