Question

I'm working on the Apps development for SharePoint 2013. I need a List for my app, so I can do it using visual studio. But I can't find any option to set up an Id for my List. Is it possible?

P.S. I can get my List by title, but I want to get it by Id.

Was it helpful?

Solution

It isn't possible if the list is in the app package because the ID is generated during publishing.

So, the only way is to first get the list by title and then get the ID of this list.

Otherwise, I don't think you can get the ID without first getting the list by title because the ID is generated when your app containing the list is published.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top