开发者

Using Sharepoint webservices to get the ID/GUID of a custom field

I am trying to get the ID/G开发者_如何学JAVAUID of a custom column field from one of my Document libraries using web services. How does one go about doing this in C#?


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/


Ola!

Try this in C#

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

Regards,

Pedro

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜