Forum Discussion

  • paulpascha's avatar
    paulpascha
    Bronze Contributor

    Hi,

     

    Can you share the error message you receive?

     

    I did the same this morning (clone - run). The only error I ran into at first was related to the language of the site I was deploying the app into. The app wasn't able to find my "Site Assets" library but that was easy to explain because I was targeting a dutch site (in which it is called "Siteactiva"). After creating an English site everything worked fine.

     

     

    • Mark Andrada's avatar
      Mark Andrada
      Copper Contributor

      I think my error might be related to the fact that I'm logging in to a tenant other than my organizational one. When I'm prompted for my credentials, I input in the one for the other tenant. When I'm redirected to the localhost side, this is when I get the forbidden error.

  • HI Mark Andrada,

     

    The code was last updated quite a while back. A lot has changed since then in the Office 365 world. 

     

    This example should probably be marked as obsolete. As suggested by Deleted, PnP Core is the better option.

     

     

  • Hi Mark,

     

    do you want to integrate it in your Environment or is it a script you want to run once i would recommend to take a look at the PNP core https://github.com/SharePoint/PnP-Sites-Core

    this also has a xml option to set the alternatecss and logo.

     

     

Resources