Reading sub-sites with files rest API?

I’m using the REST Files API, as documented here, to read the content of an Online Sharepoint (Office 365) site.

Is it possible to get the sub-sites the root site using this API?

I understand I can get a list of sub-sites using the traditional SharePoint API (https://<my-domain>, but I’d rather use the files API because I’m using it for other purposes as well.

(Note that the two APIs are very different. One example: getting the child-elements of a folder in the files API is done using GET {base-url}/Files/{folder-id}/children, which it’s done using http://<site url>/_api/web/getfolderbyserverrelativeurl('/<folder name>')/folders in the ‘classic’ API).

In addition, once I get the list of sub-sites – using the above endpoint or any other means – is it possible to traverse / read these sub-sites using the files REST API?

How to exclude a site from search result source but keep its subsites in search results?

How to exclude a site from search result source but keep its subsites in search results? I have a site collection in which i used to make team sites and project sites. In search results i want that all the subsites in that site collection should appear but that site collection needs to be excluded from search results. I tried the query as


But this query excludes all the subsites of that site collection. Please help?

pulling different lists data of subsites into one main list in SharePoint 2013

We had one site collection with four subsites. Under four subsites, we have somany lists and libraries exist. But for four subsites we have one common list exist with name “Data maintain”, means for example one subsite name as “A”, second subsite name as “B”, third subsiste name as “C” and Fourth subsite name as “D”. Now on Subsite A we have list name as “Data Maintain”, second subsite B also we have list name “Data Maintain” and as same as C and D subsites also with same columns.

on Our environment, Daily users are updating items on the list “Data Maintain” on every subsites. Now our requirement, on main site collection, we have also created “Data Maintain” list with same columns and now we need to club all items on main site collection list. means all four lists items data need to add on main list which exist on main Site collection.

for example, suppose if user add an item on the A subsite, then the item automatically need to Add on main subsite list. If user Add an item on the B subsite, then the item need to Add on Main list and same process for C and D subsites. So whenever items add on the lists, it need to automatically Add on Main list which exist on Site collection.Is it possible? Could anyone please share your ideas.

Deploy and install a SharePoint Hosted Add-in to all site collections (sites and subsites) at once in SharePoint Online(Office 365)

I have many site collections that use a SharePoint Add-in common for most of the pages in sites and subsites.

Each time when I create a new version of add-in and upload in appcatalog, I have to manually go to all the sites and follow steps – site contents> select add-in > click on upgrade > Get it .

Is there anyway such that if I upload new version of an app it should automatically upgraded in all the sites?

Also if new app id added to appcatalog, can it be added to all sites , even trust it should also be taken care for itself.

I have tried below link from which I was able to only deploy the Add-in but not install it.

Tenancies and deployment scopes for SharePoint Add-ins

Connect two lists between subsites in the same collection (or how to web part)?

The issue:

E.g. Subsite A has List A; Subsite B has List B

I want to connect two Lists on different Subsites in the same collection. Technically establish a CRUD like connection/two-directional sync, so I can Create, Read, Update and Delete on either List (or webpart thereof) and have it update the other list (or a central one).

I tried webparts, but ‘Apps’ of other subsites don’t show up.

We have on-premise Sharepoint 2016.

Sorry if my definitions are not exactly correct, but I’m translating from German where there are Websites and Websitesites – a terminology mess.

I am fairly new to Sharepoint – but I’m not bad at IT stuff. So if you can at least point me in the direction of what to search for, because I’m close to pulling my hair out, because I just don’t know how to find the knowledge I need.

Good day.

Adding an “Apps you can add” app with Powershell for SharePoint Online for all Subsites

Currently I am running into an issue. I have an app installed from the SharePoint store “Docusign” and it is at the top level site collection. I have to manually go to every subsite and click the gear and choose add an app, then choose docusign and then click Trust It. I want to enable this “app” on all the subsites of said site collection with a Powershell script/command.

Site Collection 1 Where app was initially added

  • Subsite1
  • Subsite2
  • ….etc

I am very new to powershell and I have tried to copy and paste some scripts together to get this to work but keep hitting a wall. Any help on this would be greatly appreciated or should I approach this a different way? Tried reaching out to Docusign support but that was a dead end as well.

Thank you

Subsites are redirecting to localhost after alternative access mapping in sharepoint production Environment

Subsites are redirecting to localhost after alternative access mapping in sharepoint production Environment.

    Because of this the public url is redirecting to the default port url.      Please help any one regarding this issue. 



Workflow 2013 not working in some subsites

I have an issue where 2013 workflows aren’t able to be run on some subsites. On other subsites I have no issue to publish and run the workflow. For the subsite where the workflow is not working, I can still publish the workflow with no errors but the workflows did not appear in the associated list. I have compared the features and permission and they are all configured the same. I noticed that on the subsite where it’s not working, the subsite contains some customized lists and tasks list that was not on subsites with working workflows. Anyone have any ideas on what setting could cause the workflow not able to work in some subsites?

CSOM get subsites times out

I’m trying to fetch all subsites (just those at the root level, not sub-subsites, etc.). But, I suspect due to volume (4,000+ subsites), the following times out.

clientContext.Load(     clientContext.Web.Webs,     w => w.Include(s => s.Url),     w => w.Include(s => s.RoleAssignments)); await clientContext.ExecuteQueryAsync(); 

I’ve tried increasing the timeout by setting clientContext.RequestTimeout = 600000;, but then instead of timing out, the query eventually results in error: The remote server returned an error: (503) Server Unavailable.

Is there some way I can paginate the results, or another way I can fetch a list of subsites that won’t result in a timeout?

Missing SPFX webpart on SP2016 subsites

Missing web part from the add a web part group on sub site pages. I deployed web part to the app catalog and CDN. I’m able to use it on the top level of my website without any issues, but I can’t get the option to add the web part to appear on any sub sites. I tried adding the app to the site contents page like I did for the top level and I’m getting the error that:

A different version of this App is already installed with the same version number. You need to delete the app from the site and the site recycle bin to install this version.

Are SPFX apps only usable on the top level? Did I miss a step during the build/deployment process? I can’t seem to find any documentation or others with the same issue (on-premise) in forums. All the forum questions I’m finding are dealing with online which runs a different version of the framework. Here is my set-up:

SharePoint 2016, CDN is pointing to a site assets folder on SharePoint, and package.json…

 "dependencies": {     "@microsoft/sp-core-library": "~1.1.0",     "@microsoft/sp-lodash-subset": "~1.1.0",     "@microsoft/sp-office-ui-fabric-core": "~1.4.0-0",     "@microsoft/sp-webpart-base": "~1.1.0",     "@pnp/spfx-property-controls": "1.14.1",     "@types/es6-promise": "0.0.33",     "@types/jquery": "^3.3.29",     "@types/webpack-env": "1.13.1",     "bootstrap": "^4.3.1",     "dateformat": "^3.0.3",     "jquery": "^3.3.1"   },   "devDependencies": {     "@microsoft/sp-build-web": "~1.1.0",     "@microsoft/sp-module-interfaces": "~1.1.0",     "@microsoft/sp-webpart-workbench": "~1.1.0",     "@types/chai": "3.4.34",     "@types/mocha": "2.2.38",     "ajv": "~5.2.2",     "gulp": "~3.9.1",     "typescript": "^3.3.4000"   } }