Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
How can i get content type id.i tried this link
http://www.enjoysharepoint.com/Articles/Details/how-to-get-content-type-id-of-sharepoint-2013-list-20878.aspx[^]

here is my code:
C#
ContentType ct = web.ContentTypes.GetById("0x0100DA3291E4FB24C240AD3A3249C0AC810A 00588AA61F9F3E674292885C31350509AB");
list.ContentTypes.AddExistingContentType(ct);
clientcontext.ExecuteQuery();

when i tried im getting exception:
An unhandled exception of type 'Microsoft.SharePoint.Client.ServerException' occurred in Microsoft.SharePoint.Client.Runtime.dll<br />


Additional information: Value does not fall within the expected range.
Posted
Updated 22-Oct-15 23:55pm
v2
Comments
Joshi, Rushikesh 23-Oct-15 12:08pm    
This is EPPlus specific questions, I would advice you to ask on their forum. There you will get more visibility

http://epplus.codeplex.com/discussions

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900