18 Okt 2011

Tools to Get SPSite and SPWeb Aggregation ID for SharePoint 2010

It’s been a busy months for me, I can’t write anything on my spare time. But I tell you what, I’ve created a little tools to generate Aggregation ID so you don’t have to write code about it if you just want to query the Web Analytics on SharePoint 2010.

Just specify your URL and Level, and you’re good to go.

image

Usage:
Rdz.GetAggregationId.exe –URL <URL of SharePoint Site or SubSite> –Level [SPSite | SPWeb]

Below is the exe file that you can use. It based on .NET 3.5.

UPDATE: Thanks for Anand for noticing. I just realized that I haven’t include the DLL inside the ZIP file yet. Above, is the updated link. Thanks a lot and sorry for my mistake! Open-mouthed smile

17 komentar:

  1. the dll fiel is not downloadable .can you please upload the correct file

    BalasHapus
    Balasan
    1. It's not a DLL, pal. I put it inside the zip file. The link is OK, I've already tested it just a minute ago, and still working.
      I'll try to fix and manage it. Thanks for the input, pal.

      Hapus
  2. Hey Radityo,

    I got the exe file that you have posted, but it is looking for the Dll in the GAC and you haven't included that in the zip file. Can you please post the dll file so that we can use your tool to get the aggregation ID for using in our Web Analytics reporting project? Please post it as soon as you can or you can email the same to me at abalasubramanian@gmail.com

    Rdz, Version=3.5.0.0, Culture=neutral, PublicKeyToken=3307e78ba1fa90d7

    Thanks,
    Anand.

    BalasHapus
    Balasan
    1. Got it, Anand. I appreciate it! My mistake....
      Already update the latest link, and send to your mail also...
      Thanks a lot.... :-D

      Hapus
  3. Hello Radityo,

    I tried to use your tool, but I could not succeed to get any Aggregation Id : I get the following error :

    "The web application at : http://***** could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intented application."

    I typed correctly the URL. Do you have any tips to make it working, or getting the AggregationID for a SPWeb object by another way ? (I am able to get Aggregation ID using SQL Manager)

    Florian.

    BalasHapus
    Balasan
    1. Nice to know you Florian. I don't know, maybe I've changed the build platform type to x86 maybe. That's a common problem, bicoz MOSS 2010 only run on x64 platform.

      BTW, thanks for noticing. I've uploaded the new one and updated the link, built on x64 platform.

      Hapus
    2. Another way, you can follow my previous post on how to get aggregation id, but by creating a Class. http://otak-otak-it.blogspot.com/2011/05/how-to-get-sharepoint-2010-web.html

      But this post is the simpler way. Let me know if u still have a problems.

      Hapus
  4. Didn't work, I get "URL" is empty. (yes, I specified the URL)

    BalasHapus
    Balasan
    1. wow... mine worked and been checked on the code, case insensitive.
      Did you specify URL correctly (with minus sign)? -url ""?

      Hapus
  5. Hello Radityo,
    First of all, thank you for this tool.
    Is it not possible to get the aggregation ID of a web application?
    Why is the SPWebApplication level not supported?
    Many thanks!

    BalasHapus
    Balasan
    1. Yup, pal. Actually possible, since it's supported on microsoft aggregation ID generator class.
      But I haven't added it (and also tested it). Hope will update it soon. Thanks for noticing, this is a good idea to add web app level and also service app.

      Hapus
  6. Hurrah, that's what I was looking for, what a data! present here at this webpage, thanks admin of this website.
    Here is my site ... buy youtube views

    BalasHapus
  7. Hello Radityo,
    Even I am in need of your tool . But I couldn't download it. So can please share the new link .
    Thanks in Advance..

    BalasHapus
    Balasan
    1. Is it? Sorry then. I'll try to fix a few hours later.
      Need to do something first :-P

      Hapus
  8. The link is OK, you just need to click it, and will open on another page. On another page, you click "Download" on the right side of the page.

    BalasHapus
  9. Microsoft.Office.Server.WebAnalytics.ProcessedDataRetriever.AggregationContext.GetContext can be used to get the AggregationId

    BalasHapus

[give me your ideas, hopes, comments and compliments below...]
[aaand...... +1 if you need to....]