Using microsoft.sharepoint.client.search.analytics to report the monthly hit count of site collections on SharePoint Online
Is it possible to use microsoft.sharepoint.client.search.analytics to report the monthly hit count of site collections on SharePoint Online.
GetHitCountForDay()
GetHitCountForMonth()
If yes, how can this be called and executed successfully from a Console application using the Client Object Model.
Reference:
http://download.microsoft.com/download/8/5/8/858F2155-D48D-4C68-9205-29460FD7698F/[MS-SPACSOM].pdf
http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/54310f5f-e8a3-469e-86a3-63781b91670d/how-to-get-analytics-reports-programmatically-in-sharepoint-2013?forum=sharepointdevelopment
Check if this works in 2013 as well.
http://blogs.technet.com/b/sharepointdevelopersupport/archive/2012/10/04/how-to-retrieve-web-analytics-report-data-using-api.aspx
This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.
Similar Messages
-
Hi,
We are using ContentBySearchWebPart to facilitate search through the site.
We have used display template to format the results. We are deploying the web part on the desired page through a feature. We have below markup for web part in the elements.xml file to add the web part -
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="Microsoft.Office.Server.Search.WebControls.ContentBySearchWebPart, Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="StatesJson" type="string">{}</property>
<property name="UseSharedDataProvider" type="bool">False</property>
<property name="UseSimplifiedQueryBuilder" type="bool">False</property>
<property name="QueryGroupName" type="string">f5646507-4a7a-4d75-b5c4-d435b9128e2a</property>
<property name="LogAnalyticsViewEvent" type="bool">True</property>
<property name="SelectedPropertiesJson" type="string">["Title","Path","Description"]</property>
<property name="PropertyMappings" type="string" />
<property name="ShowAdvancedLink" type="bool">True</property>
<property name="NumberOfItems" type="int">10</property>
<property name="EmitStyleReference" type="bool">True</property>
<property name="ShowPreferencesLink" type="bool">True</property>
<property name="ServerIncludeScriptsJson" type="string">null</property>
<property name="IncludeResultTypeConstraint" type="bool">False</property>
<property name="Height" type="string" />
<property name="MaxPagesBeforeCurrent" type="int">4</property>
<property name="ResultType" type="string" />
<property name="ShowDidYouMean" type="bool">False</property>
<property name="StartingItemIndex" type="int">1</property>
<property name="AlwaysRenderOnServer" type="bool">False</property>
<property name="GroupTemplateId" type="string">~sitecollection/_catalogs/masterpage/Display Templates/Content Web Parts/Group_Content.js</property>
<property name="ResultTypeId" type="string" />
<property name="ItemTemplateId" type="string">~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_LearningGroup.js</property>
<property name="AllowConnect" type="bool">True</property>
<property name="HelpUrl" type="string" />
<property name="ResultsPerPage" type="int">10</property>
<property name="RenderTemplateId" type="string">~sitecollection/_catalogs/masterpage/Display Templates/Content Web Parts/ListWithPaging.js</property>
<property name="AllowEdit" type="bool">True</property>
<property name="AllowZoneChange" type="bool">True</property>
<property name="AddSEOPropertiesFromSearch" type="bool">False</property>
<property name="AdvancedSearchPageAddress" type="string">advanced.aspx</property>
<property name="HitHighlightedPropertiesJson" type="string">["Title","Path","Author","SectionNames","SiteDescription"]</property>
<property name="TitleUrl" type="string" />
<property name="EmptyMessage" type="string" />
<property name="ShowBestBets" type="bool">False</property>
<property name="ShowViewDuplicates" type="bool">False</property>
<property name="AllowHide" type="bool">True</property>
<property name="BypassResultTypes" type="bool">True</property>
<property name="Description" type="string">Content Search Web Part will allow you to show items that are results of a search query you specify. When you add it to the page, this Web Part will show recently modified items from the current site. You can change this setting to show items from another site or list by editing the Web Part and changing its search criteria.As new content is discovered by search, this Web Part will display an updated list of items each time the page is viewed.</property>
<property name="ShowSortOptions" type="bool">False</property>
<property name="ExportMode" type="exportmode">All</property>
<property name="AllowMinimize" type="bool">True</property>
<property name="ShowPersonalFavorites" type="bool">False</property>
<property name="ChromeType" type="chrometype">None</property>
<property name="ShowPaging" type="bool">True</property>
<property name="ChromeState" type="chromestate">Normal</property>
<property name="CatalogIconImageUrl" type="string" />
<property name="HelpMode" type="helpmode">Modeless</property>
<property name="TitleIconImageUrl" type="string" />
<property name="ItemBodyTemplateId" type="string" />
<property name="AlternateErrorMessage" type="string" null="true" />
<property name="Hidden" type="bool">False</property>
<property name="TargetResultTable" type="string">RelevantResults</property>
<property name="AllowClose" type="bool">True</property>
<property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
<property name="ShowResultCount" type="bool">True</property>
<property name="ShowLanguageOptions" type="bool">True</property>
<property name="ShowUpScopeMessage" type="bool">False</property>
<property name="Width" type="string" />
<property name="RepositionLanguageDropDown" type="bool">False</property>
<property name="Title" type="string">Search Learning Groups</property>
<property name="ScrollToTopOnRedraw" type="bool">False</property>
<property name="ShowResults" type="bool">True</property>
<property name="ShowAlertMe" type="bool">False</property>
<property name="OverwriteResultPath" type="bool">True</property>
<property name="PreloadedItemTemplateIdsJson" type="string">null</property>
<property name="MaxPagesAfterCurrent" type="int">1</property>
<property name="ShowDefinitions" type="bool">False</property>
<property name="ShouldHideControlWhenEmpty" type="bool">False</property>
<property name="AvailableSortsJson" type="string">null</property>
<property name="DataProviderJSON" type="string">{"QueryGroupName":"f5646507-4a7a-4d75-b5c4-d435b9128e2a","QueryPropertiesTemplateUrl":"sitesearch://webroot","IgnoreQueryPropertiesTemplateUrl":false,"SourceID":"8413cd39-2156-4e00-b54d-11efd9abdb89","SourceName":"Local SharePoint Results","SourceLevel":"Ssa","CollapseSpecification":"","QueryTemplate":"Path:{SiteCollection.URL} AND :{SearchBoxQuery} ","FallbackSort":[],"FallbackSortJson":"[]","RankRules":[],"RankRulesJson":"[]","AsynchronousResultRetrieval":false,"SendContentBeforeQuery":true,"BatchClientQuery":true,"FallbackLanguage":-1,"FallbackRankingModelID":"","EnableStemming":true,"EnablePhonetic":false,"EnableNicknames":false,"EnableInterleaving":false,"EnableQueryRules":true,"EnableOrderingHitHighlightedProperty":false,"HitHighlightedMultivaluePropertyLimit":-1,"IgnoreContextualScope":true,"ScopeResultsToCurrentSite":false,"TrimDuplicates":false,"Properties":{"TryCache":true,"Scope":"{Site.URL}","UpdateLinksForCatalogItems":true,"EnableStacking":true,"ListId":"60ae8593-eddc-45e0-802a-27f78059ce26","ListItemId":4},"PropertiesJson":"{\"TryCache\":true,\"Scope\":\"{Site.URL}\",\"UpdateLinksForCatalogItems\":true,\"EnableStacking\":true,\"ListId\":\"60ae8593-eddc-45e0-802a-27f78059ce26\",\"ListItemId\":4}","ClientType":"ContentSearchRegular","UpdateAjaxNavigate":true,"SummaryLength":180,"DesiredSnippetLength":90,"PersonalizedQuery":false,"FallbackRefinementFilters":null,"IgnoreStaleServerQuery":false,"RenderTemplateId":"DefaultDataProvider","AlternateErrorMessage":null,"Title":""}</property>
<property name="Direction" type="direction">NotSet</property>
</properties>
</data>
</webPart>
When we are downloading the 'Top Queries by Month' or 'Top Queries by Day' report, while we see numbers in 'Total Queries' and '% of all queries' columns, we are not finding anything in 'Query Text' column, its empty. Not sure while the analytics is
not able to fetch/report the 'Query Text' itself - the report doesnt make any sense without 'Query Text' information.
Is there anything in the web part markup I pasted above- is any of the property value is affecting this?
Or it can be some configuration/error with the logging/analytics process?
Please suggest. Thanks in advance.
Regards,
Mahavir
MOSS programmerHi,
Hope you are doing well. Would you help to try to run the script to start the timer job manually:
Run the script to start the timer job:
==================
$ua = Get-SPTimerJob -Type Microsoft.Office.Server.Search.Analytics.UsageAnalyticsJobDefinition
$ua.GetAnalysisInfo()
$ua = get-sptimerjob -type microsoft.office.server.search.analytics.usageanalyticsjobdefinition
$ua.DisableTimerJobSchedule()
$ua.StartAnalysis()
$ua.EnableTimerJobSchedule()
$ua = Get-SPTimerJob -Identity ("job-usage-log-file-import")
$ua.RunNow()
==================
2. Please install the SharePoint 2013 March update if our version is before this:
SharePoint 2013 March update:
http://support.microsoft.com/kb/2767999
Best Regards,
Dats Luo -
Session "Microsoft Security Client OOBE" stopped due to the following error: 0xC000000D
i keep getting this Event in my event viewer and dont know what to do. Could use any help
Hi,
Regarding the error messages mentioned here, have you checked the below thread?
Microsoft Security Client OOBE stopped
due to the following error: 0xC000000D
Please take a try with the methods suggested by the others above.
Best regards
Michael Shao
TechNet Community Support -
Microsoft Security Client OOBE stopped due to the following error: 0xC000000D
I keep getting this error in my event Viewer and I removed Microsoft Security Client a few weeks ago and replaced it with Bitdefender 2012
Session "Microsoft Security Client OOBE" stopped due to the following error: 0xC000000D
I am also getting these aswell...
Custom dynamic link libraries are being loaded for every application. The system administrator should review the list of libraries to ensure they are related to trusted applications.
Your computer was not assigned an address from the network (by the DHCP Server) for the Network Card with network address 0x0811960D92F5. The following error occurred: 0x79. Your computer will continue to try and obtain an address on its own from the
network address (DHCP) server.
A problem prevented Customer Experience Improvement Program data from being sent to Microsoft, (Error 80004005).If you do not want to reinstall Microsoft Security Essentials to stop this problem, there is a step which you MUST, I repeat, MUST follow. As indicated above by Zuhl3156, YOU MUST, again, MUST shutdown the security counter. This is a problem
when you uninstall MSE, it does not remove the security counter. This is the reason that everyone says to delete the C:\ProgramData\Microsoft\Microsoft Security Client\Support\EppOobe.etl file. This file is used and created by this counter.
If you have uninstalled the MES, then you MUST delete the C:\ProgramData\Microsoft\Microsoft Security Client\Support\EppOobe.etl. But, MOST IMPORTANTLY, you MUST go into into Computer Management and drill down into:
System Tools -> Performance -> Data Collector Sets -> Startup Event Tracing Sessions
Then, in the frame to the right on that window, select Microsoft Security Client OOBE, right click on it and select Properties. Then DISABLE it (uncheck the Enabled box). Then, when you select OK, if you have uninstalled MSE and NOT reinstalled
it, the entry in the right frame will 'magically' disappear.
This is a problem with the uninstall of MSE and needs to be resolved by Microsoft (hopefully they are reading this). It has taken me DAYS to discover this, and many different attempts to resolve this. But, apparently, this has now resolved my
problem. I have seen performance counters cause many problems in my experience with Windows, and am very confident that this resolves the issue.
I cannot thank Zuhl3156 enough for his suggestion and my willingness to try it (I noticed 'performance counter' and jumped on it). It seems to work wonderfully for the moment.
I hope this helps someone else who has spent days trying to chase this nightmare down.
Jim -
Migrating on premise site collections to SharePoint online using powershell
Hi folks,
Intention:-migrating on premise site collection to SharePoint online.
Is there any power-shell script or list availabe products.
Please give idea and let me know that script.
Thanks,Hi Jio333,
This issue has been discussed in Sharepoint forum:
SharePoint 2013 - Migrate
from SharePoint 2013 On Premise to SharePoint 2013 Cloud
To complete this kind of Migration task, we usually use 3rd party tools because they have some complex migration requirements.
If there is anything else regarding this issue, please feel free to post back.
If you have any feedback on our support, please click here.
Best Regards,
Anna Wang
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Bsod Session "Microsoft Security Client OOBE" stopped due to the following error: 0xC000000D
I have a t540 with all hardawre and software updates running Win 7/64 pro and get this message repeatedly. Microsoft says to delete MSSEOOBE.etl but that file doesn't appear to be in the 64 bit version of Microsoft Security Essentials
If it happen when the PC is in SLEEP mode it causes an abnormal shutdown/recovery when the PC restarts Did uninstall and reinstall MSE
One MS thread says to contact the OEM - so here I am.
I was also getting Code 10 Disk Errors but there was a MS KB fix for that
Log Name: Microsoft-Windows-Kernel-EventTracing/Admin
Source: Microsoft-Windows-Kernel-EventTracing
Date: 5/29/2014 8:39:03 AM
Event ID: 3
Task Category: Session
Level: Error
Keywords: Session
User: SYSTEM
Computer: bill-THINK
Description:
Session "Microsoft Security Client OOBE" stopped due to the following error: 0xC000000D
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Kernel-EventTracing" Guid="{B675EC37-BDB6-4648-BC92-F3FDC74D3CA2}" />
<EventID>3</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>2</Task>
<Opcode>14</Opcode>
<Keywords>0x8000000000000010</Keywords>
<TimeCreated SystemTime="2014-05-29T13:39:03.627614300Z" />
<EventRecordID>209</EventRecordID>
<Correlation />
<Execution ProcessID="4" ThreadID="212" />
<Channel>Microsoft-Windows-Kernel-EventTracing/Admin</Channel>
<Computer>bill-THINK</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData>
<Data Name="SessionName">Microsoft Security Client OOBE</Data>
<Data Name="FileName">C:\ProgramData\Microsoft\Microsoft Security Client\Support\EppOobe.etl</Data>
<Data Name="ErrorCode">3221225485</Data>
<Data Name="LoggingMode">5</Data>
</EventData>
</Event>
Any thoughts? I guess I will try another AntiVirus but Microsoft Security Essential is running on 2 other Win 7 laptops
ThanksHi,
Regarding the error messages mentioned here, have you checked the below thread?
Microsoft Security Client OOBE stopped
due to the following error: 0xC000000D
Please take a try with the methods suggested by the others above.
Best regards
Michael Shao
TechNet Community Support -
Building Site Collections in SharePoint Online
Hello all,
Please forgive me for this very basic question, but I was not able to find the info online.
Background info: I have a great deal of experience with SharePoint administration on-prem but not much experience with SharePoint Online. My current organization has O365 and wants to build a collaboration environment and an Intranet. I understand the information
architecture practices that would have been common for this for an on-prem environment, and I understand that those have changed with 2013 and SharePoint Online due to the new practice of organizing everything under one web app.
Between reading some articles and using my experience with on-prem, I am trying to design an organized information architecture that will facilitate both environments and the permissions structures they require. My tentative plan was to build one site collection
for the Intranet under https://mycompany.sharepoint.com/sites (under which subsites would be built for various Intranet divisions), and then a number of individual site collections for the collaboration environment under https://mycompany.sharepoint.com/teams
(/hr, /finance, etc., so that content owners and users could work in their own site collection without affecting a site collection belonging to someone else).
This is the article that initially caused me to believe that this is possible/a good idea: http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2014/09/01/sharepoint-online-information-architecture-considerations.aspx.
"For [managed paths] you get the root, /search (explicit managed path), /sites (wildcard managed path), and /teams (wildcard managed path)."
However this article leads me to believe that I will not be allowed to create any site collections at all, only subsites: https://support.office.com/en-us/article/Plan-sites-and-manage-users-8e568d8d-3d65-42c4-99fa-f7285c9db842.
"You cannot create additional site collections in SharePoint Online for Office 365 for Small Business."
I understand the answer to this may depend on what version of O365 we have, and I am working to find that out.
My understanding is that I cannot be made a SharePoint Online administrator without being a global O365 administrator: http://blogs.technet.com/b/lystavlen/archive/2012/06/14/understanding-the-administrator-role-in-sharepoint-online.aspx.
"You cannot separate the roles of Office 365 global administrator and SharePoint Online Administrator."
Thus, I don't currently have the level of access I need to browse around the administration area and find the answers to my questions that way. When the time comes, I will likely be given temporary access or will be working with an O365 global administrator
to build.
Main question: Will I be allowed to build site collections under managed paths?
Larger question: How are others managing the information architecture for an Intranet and a Collaboration environment in SharePoint Online, especially if the answer to the prior question is no?
Thanks in advance for any insight you can offer.
ShaeHi,
According to the error message, the Microsoft.Online.SharePoint.Client.Tenant.dll seems not been loaded.
You can find it in the path below:
C:\Program Files\SharePoint Client Components\Assemblies
A code snippet about how to retrieve a list of site collections in a tenant for your reference:
const string username = "[email protected]";
const string password = "password";
const string tenantAdminUrl = "https://yourdomain-admin.sharepoint.com/";
var securedPassword = new SecureString();
foreach (var c in password.ToCharArray()) securedPassword.AppendChar(c);
var credentials = new SharePointOnlineCredentials(username, securedPassword);
using (var context = new ClientContext(tenantAdminUrl))
context.Credentials = credentials;
var tenant = new Tenant(context);
SPOSitePropertiesEnumerable spp = tenant.GetSiteProperties(0, true);
context.Load(spp);
context.ExecuteQuery();
foreach (SiteProperties sp in spp)
Console.WriteLine(sp.Title);
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
Authoring and Publishing site collection in SharePoint Online
Hi ,
Can we have multiple authoring and publishing site collection in SharePoint Online?
Thanks, Kaviya (Please remember to click “Mark as Answer” on the post that helps you)Yes you can use SharePoint 2013 cross-site publishing feature in SharePoint Online to support 1:1 and 1:n set up of authoring : publishing site-collections in SharePoint Online. The catch is that it all needs to be within same tenant.
http://technet.microsoft.com/en-us/library/jj635883(v=office.15).aspx
http://blogs.msdn.com/b/richard_dizeregas_blog/archive/2013/04/01/cross-site-publishing-alternatives-in-sharepoint-online-office-365.aspx
Please mark the replies as answers if they help or unmark if not. -
Backup - Restore process of a Site Collection in SharePoint Online
Hi, I have a couple of questions.
1) What do I have to do to get a backup-restore of a site collection in SharePoint Online?
2) Can I myself perform a backup-restore or just backup a site collection without using any 3rd party tool?
Any inputs on these will be helpful. Thanks in advance!Hi,
what you can instead of backup and restore site is to save it as template, check this thread
http://community.office365.com/en-us/f/154/t/203139.aspx
Kind Regards,
John Naguib
Technical Consultant/Architect
MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
Please remember to mark your question as answered if this solves your problem -
Can't delete a Site Collection from SharePoint admin center completely
Hi All
I'm using Office365. And I wanted to delete a Site Collection from SharePoint admin center.
But at first, I couldn't delete it from there. So I opened the Site and delete it from the Site setting successfully.
Then I went back to SharePoint admin center to check it was deleted or not completely.
But the Site Collection was still on the Site Collections list.....
Things I did are
1. IE -> Tools->Internet Options-> In General Tab click on Delete in browsing history section and check all options and again click on delete.
2. Close and re-open the browser and sign back in
I wanna make free server resource to create new Site Collection.
Does anyone know how to delete a Site Collection completely?Hi,
Can you try delete the site collection using SharePoint online power shell command? Refer the following link for that.
Delete site collection
Also, while deleting site collection from Admin Center, do you get any warning?Or what are steps you follow to delete the Site Collection from Admin Center?
Thanks,
Avni Bhatt
If this helped you resolve your issue, please mark it Answered -
Using Rename() method to change the Url of path based site collection
Hello All,
Is it correct to use
SPSite.Rename() method for changing the url of path based site collection(except the root)?
For example:
Old Site Url: http://portal.contoso.net/sites/HR
New Site Url: http://portal.contoso.net/sites/HROLD
It is working in SharePoint 2013 test environment, but I will be happy to receive some feedback from you about this.
Ivan Yankulov
SharePoint Admin/Consultant
http://spyankulov.blogspot.com/
This post is my own opinion and does not necessarily reflect the opinion or view of MicrosoftHi Lvan,
Yes, the server object model SPSite.Rename() method works on an SPSite object to change the URL of a site collection which is host named or path based.
Best Regards,
Eric
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] -
How to use Microsoft Excel dll in SQL Server Reporting Services
Hi,
Can you please explain me the steps to use excel .dll in ssrsHi PrakashThandra,
Based on my understanding, you have created a chart in Excel, then you want to use this chart in Reporting Services, right?
In Reporting Services, it’s not supported to use a chart which created in Excel directly. But we can use Excel as datasource to create a report, please refer to this article:
Create SSRS report using Excel Data Source Step by Step. In your scenario, since you want to use the Excel chart in Reporting Services, you could create a same report in Reporting Services refer to this article:
Charts (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Not all contacts showing in lync 2013 client search for most of the users
Dears
i have an issue in searching for contacts in Lync client 2013.
i already set the Global client policy to websearchonly and still not able to see all the contacts.
what should i do else?
we are using:
- windows 7 ent 64bit
- microsoft office 2010 plus 32bit
- microsoft lync basic 32bit
and on the server side:
- windows server 2012 64bit
- lync server 2013
appreciate your swift response
Moayad SewarOk Moayad, thank you for these info.
It looks ok, I cannot find strange settings.
Did you do this check?
%userprofile%\appdata\Local\Microsoft\Office\15.0\Lync
enter the sip_<usersipuri> folder
you will find two files
GalContacts.db
GalContacts.db.idx
open the GalContacts.db with notepad, you can find every AD Users and Contacts that Lync consider eligible
for the GAL.
Try to find in this file some Contacts that lync users cannot find. If you cannot find here we've to investigate
more deeply into AD Attributes.
Regards
Luca
Luca Vitali | MCITP Lync/Exchange | snom Certified Engineer | Sonus SBC1000 Engineer -
Sharepoint 2010 Reporting Feature not showing up under "Site Collection Feaure"
Hi
I want to enable "Audit Log" to do this I need "Reporting" feature to be enabled first, which can be located as below located as in below picture.
But I am not able to see "Reporting" feature itself .Can anyone please explain how to add Reporting feature
Thanks,
MeenakshiHi
Can you please confirm if you are using SharePoint Foundation or SharePoint Server Enterprise version ?
As with SharePoint Foundation Audit Log is not available, you can check below links -
https://auditlogsp.codeplex.com/ - This post says -
"In Sharepoint 2010 we have a feature called Site Collection Audit and Audit log. But this feature only
on Sharepoint Enterprise, but on the Foundation we dont have that feature. With this application, we can enable audit feature on SP Foundation, see all the log. "
Also check same discussion here -
http://sharepoint.stackexchange.com/questions/13399/how-do-we-activate-auditing-in-sharepoint-foundation-2010
Hope it helps.
Thanks,
Danny
Please remember to mark as answer if it helps. -
Is there any REST API to get all the Site and site Collections from Sharepoint Online
Hi,
I have one SharePoint Online tenant. We are using REST API to integrate SharePoint to our internal System.
For my use case I need to get all the SharePoint sites ans Sitecollections. From each SiteCollection I need all the subsites under this.
I have used below REST Query
http://<Base site url>/_api/web
This doesn't give me all the Site collections
Could any one please give me some way to get all the Site collections and sites from my sharepoint tenant through REST API.
Thanks,Hi Abhiram,
There seems no such endpoint in SharePoint REST API can retrieve a list of site collections in a SharePoint Online tenant:
https://msdn.microsoft.com/en-us/library/office/jj860569.aspx#Reference
If Client Object Model can be an option for you, you can use Tenant object to achieve what you want:
http://social.technet.microsoft.com/wiki/contents/articles/24050.perform-basic-admin-operations-using-csom-in-sharepoint-online.aspx#Scenario_3_Fetch_All_Site_Collections
Anyway, I would suggest you submit a feedback to the Office Developer Platform if there any expectation about the future version of REST API of Office 365 SharePoint
Online:
http://officespdev.uservoice.com/
It
is a place for customers provide feedback about Microsoft Office products. What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft
Product Team will take it into consideration when designing the next version in the future.
Thanks
Patrick Liang
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]
Maybe you are looking for
-
Hyperlinks don't work in PDF Form
We use Acrobat Pro 10 / LiveCycle Desginer to create our fill-able forms to then publish on our website. Our users can click the form on our webpage, the PDF opens in Chrome just fine and they can fill in the fields. But when a user trys to click o
-
My two right hot corners stopped working
The two right hand hotcorners of my Macbook Pro stopped working 2 days ago. The left hotcorners work fine, as the right ones did, but suddenly nothing. I already tried the thing with erasing the dock file from the library and restarting the laptop, b
-
Compatibility of Firefox 6 with Trend Micro titanium - how can I make them work together? I have not downloaded FF6 yet because it is not compatible with my virus software - has this changed? If not, is there a simple "fix" or workaround? Thanks.
-
Update a table from a view (WITH)
Hello, Is the below valid? Can I update table1 from table2 (view)? Oracle is 9i UPDATE WITH t2 AS ( SELECT.................... SELECT t1.name n1, t2.name n2 FROM cell_info t1, t2 WHERE t1.cell = t2.cell AND t1.name IS NULL SET n1 = n2; SQL Error: ORA
-
XML Help Needed- SYS_XMLGEN
Hi, How to eliminate the default "ROW" tag from the below result? Result: <?xml version="1.0"?> <ROW> <request> <operationId>SERVICE</operationId> <transactionId>12</transactionId> <processId>123</processId> <parameters> <Department Type="integer" nu