Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 664495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:36:22+00:00 2026-05-13T23:36:22+00:00

I am trying to access Folder from Document Library using web services in C#.

  • 0

I am trying to access Folder from Document Library using web services in C#.
I am using SiteData’s EnumerateFolder() method to get sub folders and files. But the method gives me only 3 properties for each entry.

  1. IsFolder
  2. Url
  3. Last modified date

So how can we get ‘Modified By’ field value.

Or there is another solution for enumerating folders and subfolders.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:36:22+00:00Added an answer on May 13, 2026 at 11:36 pm

    You need to use the List API in order to get more properties from your objects.

    [Edit – complete code sample]

    The sample needs to be cleaned up, but should give you what you need

    public void SomeFunction()
    {
        Lists lists = new Lists(); //http://server/_vti_bin/Lists.asmx
    
        XmlNode coll = lists.GetListCollection();
    
        XmlNamespaceManager nsMgr = new XmlNamespaceManager(coll.OwnerDocument.NameTable);
        nsMgr.AddNamespace("sp", "http://schemas.microsoft.com/sharepoint/soap/");
        nsMgr.AddNamespace("z", "#RowsetSchema");
    
        XmlDocument xmlDoc = new XmlDocument();
        XmlElement query = xmlDoc.CreateElement("Query");
        XmlElement viewFields = xmlDoc.CreateElement("ViewFields");
        XmlElement queryOptions = xmlDoc.CreateElement("QueryOptions");
    
        viewFields.InnerXml = "<FieldRef Name=\"Modified_x0020_By\" />";
        queryOptions.InnerXml = "<ViewAttributes Scope=\"RecursiveAll\"/>";
    
        XmlNodeList siteLists = coll.SelectNodes("//sp:List", nsMgr);
        foreach (XmlNode list in siteLists)
        {
            if (list.Attributes["ServerTemplate"].Value != "101") continue; //101=DocLib
            XmlNode listItemCollection = lists.GetListItems(list.Attributes["Name"].Value, string.Empty, query,
                                                            viewFields, "4000",
                                                            queryOptions, null);
    
            XmlNodeList listItems = listItemCollection.SelectNodes("//z:row", nsMgr);
            foreach (XmlNode listItem in listItems)
            {
                if (listItem.Attributes["ows_FSObjType"] == null) continue;
                if (!listItem.Attributes["ows_FSObjType"].Value.EndsWith("#1")) continue;
                PrintModifiedBy(listItem);
            }
        }
    }
    
    private void PrintModifiedBy(XmlNode listItem)
    {
        string modifiedBy;
        if (listItem.Attributes["Modified_x0020_By"] != null)
            modifiedBy = listItem.Attributes["ows_Modified_x0020_By"].Value;
        else
            modifiedBy = listItem.Attributes["ows_Editor"].Value;
        Console.WriteLine(modifiedBy);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 356k
  • Answers 356k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Here is the solution that works: I needed an each… May 14, 2026 at 8:53 am
  • Editorial Team
    Editorial Team added an answer After the user selects file, use client javascript to: Hide… May 14, 2026 at 8:53 am
  • Editorial Team
    Editorial Team added an answer Responses that can span more than one line (such as… May 14, 2026 at 8:53 am

Related Questions

I am trying to use the following code to export tables from access to
I am trying to do something fairly simple but seems like a near impossible
My project files are located on remote server in the folder. I access a
I am trying to install an app inside of another web app. I have
I am new at Mojo framework and Palm webOS. I want to just retrieve

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.