Hi there,
i would like to ask your help related with a current issue that i am facing. So i am creating a Sharepoint Hosted Add-in, and in there i am trying to create a new content type with two new columns. So, i started to create the project via Visual Studio, based on the Office Developer tools project template for Sharepoint Hosted Add-ins. The project comes with a feature, and any artifact i add to the project, it goes to the feature. But when i run the application, the new content type neither the new site columns are created. I was trying to figure out the location of the feature, in order to check if the feature was successfully activated. I checked the developer site ( where is running the app ) and there is no feature there. Even i checked the app catalog, and it is not there as well.
So could you explain me where is located the feature and how can i have access to it? Or, how can i troubleshoot this problem in order to check what is going on ?
Thank you.
These list changes are in the host web or the app web?
Yup . This would work. Although I’d probably just use PowerShell and the Same code. The only time I would put it into the Add-in is if the list needs to be created in every Host Web Site that I add the Add-in To.
Yes, but the drawback is that any user that wants to use the app, would require to execute the powershell in order to configure properly the host web. that’s why i am trying to find a way where the user only need to add the app to the specific site, and then use it, and the app would configure everything.
Ah then yes. You can put it into the app, and use CSOM to create the assets in the host web.
Host web… Anyway, i change my way of search that need, and i found an interesting article: http://www.sharepointnutsandbolts.com/2013/06/sp2013-host-web-apps-provisioning.html Apparently, using an approach of CSOM + JSOM you can achieve that. Have a look and share your thoughts please.