Using Sharepoint webservices to get the ID/GUID of a custom field
-
09-10-2019 - |
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#?
Solution
You'll need to get the GUID via the SiteData webservice, the Webs webserivce doesn't retrive the ID....
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