none
Creating Site Page list and uploading Site pages in Sharepoint online using CSOM RRS feed

  • Question

  • Hi,

    I want to create Wiki page library list (Site Pages) using its templateId (i.e. 119) in sharepoint online using CSOM. I am creating the list using this piece of code:

    ListCreationInformation creationInfo = new ListCreationInformation();
    creationInfo.Title = <TITLE>;
    creationInfo.TemplateType = 119;
    Web web = clientContext.Web;
    List list = web.Lists.Add(creationInfo);
    list.Update();
    clientContext.ExecuteQuery();

    List created but in new list, I am seeing only "Wiki page" option in New.

    And, I uploaded Site Page to the same new list using CSOM. While clicking on the item to see the content, I am getting this error:

    How to fix this issue?

    Regards,

    Palak Jain


    • Edited by PalakJn Wednesday, February 22, 2017 9:06 AM
    Wednesday, February 22, 2017 9:04 AM

All replies