Adding new content to existing page

redline18 February 25, 2020

I am trying to use ConfluencePS to append to existing wiki page but the command that I am using overwrites all of the existing content on the page.

  $content = ConvertTo-ConfluenceStorageFormat -Content "Hello world"

  Set-ConfluencePage -PageID 312607262 -Body $content -Convert

 

1 answer

1 accepted

0 votes
Answer accepted
redline18 March 3, 2020

I figured it out after some time that in order to add content I have to append it to the body property of the page object and send it back using "Set-ConfluencePage -InputObject $page" 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events