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 ?

1 Answer 1


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 :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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