Using SPSiteDataQuery for multiple Site Collections

Hi All,
I would like to query five contact lists on multiple site collections. I can query the lists using SPSiteDataQuery if they are within the same site collection, but I can not query the lists over multiple site collections.
Is there a method like SPSiteDataQuery that I can use to query lists over multiple Site Collections?
Many Thanks,
Colin

Hi,
As you have mentioned that: SPSiteDataQuery which can query multiple webs within the same site collection, but not across multiple site collections. You can't accomplish that easily.
The solution evolves from first using the SPSiteDataQuery class to run a query upon each site collection and then aggregating the results.
For detailed information, refer to the following article:
https://oidatsmyleg.wordpress.com/2009/08/13/cross-site-collection-query-almost/
Besides, here is a similar requirement post, you can take a look at:
http://sharepoint.stackexchange.com/questions/114329/accessing-list-data-in-multiple-site-collections
Best Regards,
Lisa Chen
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • Can I use SRST for multiple sites wit separate 911 lines

    Is it possible to use an SRST (like a 2911 CME/SRST) to support multiple sites. 
    We have two sites next door to each other. They are connected by fiber with Cisco switches (vlans) at box sites.
    Can I use a single SRST and have two separate 911 POTS lines setup so that each site has it's own unique 911 associated with it?
    I can create two separate Voice vlans for the two sites and I could have both 29xx interfaces in use (one for each VLAN), but can I separate the dialing out function so that each vlan uses a unique POTS line this way?
    Any other solutions other than two SRSTs?

    We have to keep the 911 dialing the same at all sites since I already had an idea like that ...but we use 911, 9911 and 8911 for everyone to reach 911 so that they are not confused during an outage.
    We will just have to bite the bullet and order 2901 SRSTs for all our small remote sites. 

  • Setting SharingCapability property for a Site Collection using CSOM in C#

    Hello,
    I am trying to deploy multiple site collections in a SharePoint 2013 Online tenant, using CSOM in C#.
    I am currently using the SiteCreationProperties to do this, but I miss one crucial parameter : SharingCapability.
    Do you guys know a way of activating external sharing for a site collection in CSOM ?

    I believe you can set the SharingCapability of the Site after you create it. You can use the Microsoft.Online.SharePoint.TenantAdministration.Tenant.GetSitePropertiesByUrl(siteUrl, true)
    This returns SiteProperties object with a SharingCapability property you can set with the appropriate enumeration. Then call the Update method.
    http://msdn.microsoft.com/en-us/library/microsoft.online.sharepoint.tenantadministration.tenant.getsitepropertiesbyurl(v=office.15).aspx
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Creating multiple subscriptions for collaborative site collections under same OU in multi-tenancy

    Hi,
    We have an application that creates host based collaborative site collections and MySite Host site collections. We have created two separate web applications for hosting collaborative site collections and Mysite host based site collections as recommended
    by MS.
    For creation of collaborative site collections, we are creating separate site subscriptions for separate site collections. For example, if a tenant has two collaborative site collections as CSC1 and CSC2, then two site subscriptions are created for two CSCs
    under the same tenant. The reason behind the implementation is as follows:
    There is a 1:1 mapping with the featurepack and site subscription. Now if two site collections are created under the same site subscription, then altering the feature pack of any site collection will affect the other one. Whereas, if separate subscriptions
    are created fro separate site collections, then altering the featurepack of any site collection will not affect the other site collections.
    Now, my concern is, will the basic functionalities of SharePoint, like search, user profile, etc, will break for the above implementation. Is there any technical hazard for the above implementation.
    A quick response is appreciated, as we need to deliver a customer  ASAP.
    Thanks in advance,
    Arnab

    Search and UPSA would be part of the Site Subscription, so I'm unsure as to what you're specifically asking.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Best Way to Sync Lists Across Multiple Site Collections?

    A quick query I'm hoping someone might be able to help me with...
    Within our university intranet I am assigning each department a team site within its own Site Collection. So that departments can associate Document Library files with a set list of academic courses, I created a custom dropdown field and deployed it as a Feature. While this worked within SharePoint, when you attempted to set the document properties within the Microsoft Word environment the custom fields were rendered as empty text boxes (meaning that staff are no longer restricted in when information they can enter).
    To get around this I'm considering going back-to-basics and creating a Custom List, populating it with the titles of our academic courses, and then assigning it to a Document Library via a Lookup Field. I know that Microsoft Word will then correctly display the metadata dropdown.
    As I am using multiple Site Collections, I'm unsure of the "best" way to proceed.
    I've already written a Console Application which can create a Custom List within a targetted site and populate it with the contents of an XML file - but I would need to run this every time I created a new Site Collection and what would I do when I wanted to update the contents of all the lists?
    Other than modifying my Console Application to loop through all instances of the Custom List within Site Collections and sync it to the contents of the XML file, is there another (better) option that I am over-looking?
    Its such a shame I can't create cross-collection Lookup Fields within all of the Site Collections that point to a single top-level list.
    Many thanks.

    My instinctive questions drifts towards why you have different site collections.  If all the sites were sub sites within the same site collection, a global field would solve the issue quite nicely.
    If you have legitimate reasons for keeping the sites seperated into separate site collections, I would look at using an Event Handler to trigger updates to reference values in each site collection, be they global fields or lists.  Then if you wish to update the values, you only need to update the trigger list to propagate the updates across your site sollections to all your sites in question.
    I trust that answers your question...
    Thanks
    C
    http://www.cjvandyk.com/blog

  • Search option or Query to search multiple Site collections?

    Is there a Search or Portal site Hierarchy/ Structure option in SharePoint 2013 that would enable searching of specific and multiple Site collections (not Search all)?
    We opened a ticket with Microsoft o365 and they said this is not possible without custom development and that search queries can't span multiple Site collections.
    Is this true?

    You can setup a custom Result Source that limits results to the paths (URLs) provided, then use this Result Source in a custom search page, CSWP, etc. Check this post for more info:
    http://sharepointbrandon.com/2013/07/setup-multiple-search-pages-result-sources-search-scopes-for-a-site-search-in-sharepoint-2013/
    You can use the path restrictor to specify the URLs to limit the search to, IE: "path:http://yourdomain/site".
    Hope that helps.
    Brandon Atkinson
    Blog: http://sharepointbrandon.com

  • How to send right CallingNumber when Cisco CER is down for multiple sites

    Hi,
    Cisco ER 7.x system with centerized CUCM 7.1(x) cluster for multiple sites over WAN, where each site has local voice gateway (MGCP) with T1/PRI connected. All the phones are DIDs.
    When considering 911 calls redundancy when CER is down, Cisco ER administration guide recommends using Local Route Group for 10911 or something else route-pattern on CUCM which is used:
    http://www.cisco.com/en/US/partner/docs/voice_ip_comm/cer/7_1_1/english/administration/guide/e911plan.html#wp1062106
    To configure LRG, follow these steps:
    1. On Cisco Unified Communications Manager Administration, configure the LRG route pattern and route point for 911 emergency call routing.
    2. On Cisco Unified Communications Manager Administration, configure any destination route point that is being forwarded in the emergency call route point with the LRG route pattern.
    3. On Cisco ER Administration, configure the LRG route pattern as the default ERL.
    My question is:
    On the 10911 route-pattern using LRG, how can configure the each site ELIN number as the calling number on the route-pattern which is normally assigned on E911 partition only? or do I need change MGCP to H.323 in order to achieve this purpose?
    Do I miss something?
    Thanks,
    JJ

    Hi,
    I am not sure with in obiee it is possible? But third party tool we can do it.
    Site scope monitor tool is there, what this tool will do it will send the alert mail to respective team whenever services are down.
    For more information google it? You can get better idea.
    Thanks,
    Satya

  • LDAP design question for multiple sites

    LDAP design question for multiple sites
    I'm planning to implement the Sun Java System Directory Server 5.2 2005Q1 for replacing the NIS.
    Currently we have 3 sites with different NIS domains.
    Since the NFS over the WAN connection is very unreliable, I would like to implement as follows:
    1. 3 LDAP servers + replica for each sites.
    2. Single username and password for every end user cross those 3 sites.
    3. Different auto_master, auto_home and auto_local maps for three sites. So when user login to different site, the password is the same but the home directory is different (local).
    So the questions are
    1. Should I need to have 3 domains for LDAP?
    2. If yes for question 1, then how can I keep the username password sync for three domains? If no for question 1, then what is the DIT (Directory Infrastructure Tree) or directory structure I should use?
    3. How to make auto map work on LDAP as well as mount local home directory?
    I really appreciate that some LDAP experta can light me up on this project.

    Thanks for your information.
    My current environment has 3 sites with 3 different NIS domainname: SiteA: A.com, SiteB:B.A.com, SiteC:C.A.com (A.com is our company domainname).
    So everytime I add a new user account and I need to create on three NIS domains separately. Also, the password is out of sync if user change the password on one site.
    I would like to migrate NIS to LDAP.
    I want to have single username and password for each user on 3 sites. However, the home directory is on local NFS filer.
    Say for userA, his home directory is /user/userA in passwd file/map. On location X, his home directory will mount FilerX:/vol/user/userA,
    On location Y, userA's home directory will mount FilerY:/vol/user/userA.
    So the mount drive is determined by auto_user map in NIS.
    In other words, there will be 3 different auto_user maps in 3 different LDAP servers.
    So userA login hostX in location X will mount home directory on local FilerX, and login hostY in location Y will mount home directory on local FilerY.
    But the username and password will be the same on three sites.
    That'd my goal.
    Some LDAP expert suggest me the MMR (Multiple-Master-Replication). But I still no quite sure how to do MMR.
    It would be appreciated if some LDAP guru can give me some guideline at start point.
    Best wishes

  • Iweb 09_good for multiple site designs

    Hi!
    I am looking to upgrade to a better imac and iWeb 09 to create "microsites" for my current print design clients to help expand their marketing. Is this version of iWeb easy to use for that or does it to multiple sites at all? Basically I am asking is this version a good one for multiple site building? Ease of use for that purpose? Thanks!

    Welcome to the Apple Discussions. iWeb 09 can handle multiple sites quite easily. However, a lot depends on where you plan to host the sites and manage them. Will they each have a domain name for the site?
    On MobileMe you can have only one site with CNAME domain name forwarding to the same account. The others must use the standard html URL forwarding. AND they all must be created in the same Domain.sites2 file. That can be a problem.
    If you use the standard domain name forwarding with MMe for all the sites then you can have a separate domain file for each client and use Web Site Maestro to manage then them and select which one to open and work on.
    If each client will provide their own hosting server then it's possible that CNAME forwarding can be used for each client if they have a domain name and their server supports CNAME.
    I use iWebSites to manage over 75 individual sites. It lets me create multiple sites and multiple domain files.
    This lets me edit several sites and only republish the one I want.
    OT

  • IPv6 deployment problem for multiple site

    Dear Expert,
    I have a question about the deployment of IPv6 on two different site and the requirement is that client may need to auto switchover to another site while one of the ASR1002 is failure. I have using two different prefix on two sites with IPv6 stateless autoconfig like above diagram. Different prefix used for each site due to each site should use there own IPv6 prefix for Firewall Stateful(Default gateway point to local site firewall only). Client will retrieved two IPv6 addresses at the same time and it seems workable on Vista PC and Mac(Mac haven't select the High DRP one but work fine) and I haven’t try for other mobile device (have WiFi device for vlan100). Is it a valid solution? Any other solution for multiple site deploy IPv6 with Firewall no NAT enabled?
    Thank you very much!
    Regards,
    Kawaii

    One option would be to tweak the OS prefix policy table to prefer v4 to v6.  On Linux this is in /etc/gai.conf; on windows you'd run "netsh interface ipv6 set prefixpolicies ...".  The side effect would be that you'd only do v6 with the v6-only sites, not with the dual-stack sites.

  • Custom template available across multiple site collections

    I have created a custom site template which I need to be available across multiple site collections. Is there a global area where I can put the .wsp file so that I can use it within any site collection.
    I also have a custom document library which I need to be available from with the site made from the custom site template mentioned above - Is there a global area where I can put the .stp file so that I can use it within any site within any site collection.
    thanks

    This will really depend how the template has been packaged.  If it's a content type, than editing this and making sure that the "update content type" radio is selected will do the trick. Can you ask someone who's made one to show you how they generate
    the template. If it's within the New --> XXX Document, than you're in luck
    If they're just deployed as normal files within a library, you'll have a much harder time.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to change PowerPoint Template across multiple site collections

    I am failry new to SharePoint, and my organization has asked me to research how to change a PowerPoint template that is stored on multiple site collections. There are current PowerPoints based on the template and they wanted to be sure those wouldn't be
    affected, as well. They want a "quick and easy" way to update the template that the divisions in the company use without manually going into each site collection. A co-worker said she hopes to "replace the current...template at the site
    collection and it will modify the available content type when selecting new document."
    Any help on how to handle this would be appreciated.

    This will really depend how the template has been packaged.  If it's a content type, than editing this and making sure that the "update content type" radio is selected will do the trick. Can you ask someone who's made one to show you how they generate
    the template. If it's within the New --> XXX Document, than you're in luck
    If they're just deployed as normal files within a library, you'll have a much harder time.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Incoming Email for a site collection larger than 25GB

    Hello,
    Incoming emails on a site collection not getting to document library. It stays in drop folder. Uls logs shows below message:
    The Incoming E-Mail service has completed a batch. The elapsed time was 00:00:00. The service processed 2 message(s) in total. Errors occurred processing 2 message(s): Message ID: Message ID: 0511e09c-fe1b-d07e-a534-adcbf7e5cfbe.
    I have researched but haven't found anything. Incoming email works for other site collections in the farm with smaller size compare to that is not working. Site collection that is not receiving incoming email is size larger than 25G. There is no size
    quota restriction.
    Is there any restriction for incoming email for site collection larger than 25G?
    Thanks,
    Hp

    try these links it may be useful:
    https://social.technet.microsoft.com/Forums/office/en-US/510a203e-6ed9-436e-a8d4-f7daaf0e6adb/problem-with-incoming-emails?forum=sharepointadminlegacy
    https://social.technet.microsoft.com/Forums/office/en-US/1e6cf316-ca56-4d9e-a778-938deca5b283/incoming-email-problem-mail-in-drop-and-mailbox-folder-but-not-in-list?forum=sharepointadminlegacy
    http://blogs.technet.com/b/praveenh/archive/2012/06/28/unable-to-send-emails-to-lists-and-document-libraries-in-sharepoint-2010.aspx
    http://serverfault.com/questions/37018/unknown-alias-error-with-sharepoint-incoming-e-mail
    Please mark as answer if you find it useful else vote for it if it is close to answer..happy sharepointing

  • How to set version limit for entire site collection

    Hi,
    We have more than 500 document libraries in one site collection. I see some of them have more than 50 versions & taking lot of storage space. So planning to limit the version's to 3 Major and 3 Minor for entire site collection. How can we do that? I
    know we can set to individual library by how can we do that for entire site collection?
    Thanks
    Rithu.
    Rithu

    The version limit is a library specific setting, so you'll need to use PowerShell to set the property value on each library in every site in the site collection.  Here's a sample script that sets if for one library.  You'll need to expand the script
    to walk the sites recursively and run this for every library.  
    https://consultantpoint.wordpress.com/2012/06/15/powershell-setconfigure-document-library-with-majorversionlimit-majorwithminorversionslimit-require-to-checkout-before-editing/
    Please Note: Changing these settings won't delete old versions.  That only happens after each item in the list or library is edited.  
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • AP Payment for multiple sites

    Is there a way to pay more than one site for a supplier in the same payment?

    Hello All,
    Any solution for this situation ? We are on R12 and we would like to pay single payment for multiple sites for same supplier. Anyone has any idea how do we go about this ?
    Thanks in Advance
    Dinesh
    Edited by: Dinesh Chauhan on 11-May-2010 01:15

Maybe you are looking for