joker7983

Hi, I need to return data from all list and libraries together...I have something like this

mySpSiteDataQuery.Lists = "<Lists BaseType=\"0\"/>" it returns data only from all lists

mySpSiteDataQuery.Lists = "<Lists BaseType=\"1\"/>" it returns data only from all libraries

Is it possible to write code, which will include lists and libraries

thanx



Re: SharePoint - Development and Programming Searching in Lists and Libraries together

smc750

One possible way is to include all the guids for lists and libraries you want to search.

"<Lists>" +
"<List ID=\"C3200843-FD7D-473B-AD67-676259411033\"/>" +
"<List ID=\"27C1EC59-A34E-4C87-8CB2-4F2C4F9E0543\"/>" +
"<List ID=\"555F1DF8-2F16-4A49-8314-6CA03A5DE01D\"/>" +
"<List ID=\"E86DC13F-F09A-452B-8170-16760B68C966\"/>" +
"</Lists>";

However this may be not be practical for your needs.






Re: SharePoint - Development and Programming Searching in Lists and Libraries together

joker7983

I know this method but it is not useable for me, becouse for example administrators and some users have rights to add some new libraries and lists to the site collection. So does somebody know another, more universal way