Question

I am trying to get the ID/GUID of a custom column field from one of my Document libraries using web services. How does one go about doing this in C#?

Was it helpful?

Solution

You'll need to get the GUID via the SiteData webservice, the Webs webserivce doesn't retrive the ID....

http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/3dd5871c-b52e-45c9-8ab2-9b9be092dede/

OTHER TIPS

Ola!

Try this in C#

SPWeb web = SPContext.Current.Web as SPWeb;
Guid id = web.AvailableContentTypes["ContentTypeName"].Fields["FieldName"].Id;

Regards,

Pedro

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top