Skip to content

Instantly share code, notes, and snippets.

@AsishP
Created April 12, 2018 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AsishP/d3696a13fdec9d502fb4941ba9c74db9 to your computer and use it in GitHub Desktop.
Save AsishP/d3696a13fdec9d502fb4941ba9c74db9 to your computer and use it in GitHub Desktop.
ClientSidePage IntranetPage = ClientSidePage.Load(cc, HttpUtility.UrlDecode(PageName));
if (newsStatus.ToString().ToLower().Equals("published"))
{
IntranetPage.PromoteAsNewsArticle();
IntranetPage.Save();
IntranetPage.Publish();
}
log.Info("Site Page Updated");
pageUpdated = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment