You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content.Body.View.Value = PageBody; //Page Body is an string variable with HTML text in it
content.Version.Number++;
content.Version.When = DateTimeOffset.Now;
content.Version.IsMinorEdit = true;
content.Version.Message = "New Revision of the Document";
Once I do that it will run, but it does not publish the content to the edited page.
And looking at the page edits does not show any changes that should be there.
Also the Version.Message is blank.
Am I building the method call correctly?
How do I get it to publish the page?
I got the functions to delete the existing page and then creating the new page to work, but I don't want to lose the page history.
The text was updated successfully, but these errors were encountered:
Bugzuki
changed the title
Using UpdateAsync doesn't work well
Using UpdateAsync doesn't work well, am I doing it wrong?
May 17, 2021
In order to get the UpdateAsync method to be accepted by Visual Studios I had to build and use a Content variable as follows:
Content content = confluenceClient.Content.GetAsync(contentDigest.Id).Result;
String bodyViewValue = content.Body.View.Value;
content.Body.View.Value = PageBody; //Page Body is an string variable with HTML text in it
content.Version.Number++;
content.Version.When = DateTimeOffset.Now;
content.Version.IsMinorEdit = true;
content.Version.Message = "New Revision of the Document";
confluenceClient.Content.UpdateAsync(content).Wait();
Once I do that it will run, but it does not publish the content to the edited page.
And looking at the page edits does not show any changes that should be there.
Also the Version.Message is blank.
Am I building the method call correctly?
How do I get it to publish the page?
I got the functions to delete the existing page and then creating the new page to work, but I don't want to lose the page history.
The text was updated successfully, but these errors were encountered: