Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to check if a custom field exists for my list using list services but not sure how I can do it, I know it can be done using object model method "ContainsField()" but how can I do same with services,

    public bool fieldExists()
    {
        XmlDocument doc = new XmlDocument(); 
                    //field exists or not ?
share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

Yup you can look into hash table and find key you need for that field if it exists or not. I don't remember 100% the code I used but I will try to provide it someone need it in future.

Hope it helps if someone else came across same problem :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.