How to query data on app web from host web

I need to query a list located inside a SharePoint hosted app, when located on host web, using JavaScript (REST preferably).
I control both app and host.

It's possible to communicate with an app part using window.addEventListener('message', m => ...), but I need to load the data from several SPWebs, and the app part can't be added to all pages.
SP.AppContextSite does not work, since host web does not have an app context.


You do not need to do anything special to access AppWeb resources from the HostWeb. The AppWeb is just a child site of the HostWeb so you can access it that way.

How to query data on app web from host web

Category: 2013 Time: 2016-07-28 Views: 7

Related post

  • Query List with REST API in app web from host web on different domain 2015-10-15

    I am successful in getting data from host web to app web but the problem i am facing with is querying the API. This is i am trying to do but getting error.. var getTaskByUser = function (userID) { var hostweburl = decodeURIComponent( getQueryStringPa

  • SharePoint hosted app within the Host Web 2016-07-15

    I have created a nice little SharePoint hosted app. When I launch the app, it brings me to the app domain and a dedicated page (default.aspx). My question is, how do I embed this App within my Host web without getting redirected to the App web? I wan

  • How to query data like only for point by from a grouplayer by using WMSGetFeatureInfo in Openlayers? 2014-01-23

    till now I have been known how to query data from a groupLayer by using WMSGetFeatureInfo while the point is it shows a lot of associate results features,so I aim to query a single layer infomation from enter code herea groupLayer,just like only quer

  • How to query data for CQWP? 2013-09-12

    I have added the CQWP successfully to the web part page programmatically. Now I want to query data for that web part i.e. I want to display the title of the file from the document library. My code is: SPSite site = new SPSite("http://........");

  • How can I prevent the App Store from doing automatic update checks or notifications? 2011-12-17

    I don't like the App Store app automatically checking for app updates, or showing me notifications when there are updates for my installed apps. I prefer to take care of updates when I'm ready to update. How can I prevent the App Store from automatic

  • How to sort data after using uniquevalue from IDataStatistics? 2012-11-26

    How to sort data after using uniquevalue from IDataStatistics? The problem is I am using ArcGIS 9.3 vb6. Edit: Thanks kenbuja for the code. It will be useful. In details what I am trying to is this. join gdb table and feature table using IQueryDef ge

  • FortiGate HA (A/A) Cluster: How can I manage the slave unit from the web GUI? 2016-02-23

    I am confused to what happened to the slave's IP address. Before I set both my units to Active/Active cluster, I could reach each of them with their own IP. Now, I can still reach the master unit with the same IP. However: I can no longer reach my sl

  • SharePoint hosted app - access list in app web through host web 2016-02-25

    I have created an Office 365 SharePoint hosted app that injects a piece of Javascript code in the host web. And as a part of that injection I also pass the URL of the app web to the host web as I need that URL to access a list (that sits in the App w

  • Query for App Web List Data from Host Web Event Receiver 2016-07-21

    I have a Remote Event Receiver attached to a Host Web List. On ItemUpdated, I want to query a list in the AppWeb. I'm trying to create my client context but AppEventProperties is null. Any ideas why? using (ClientContext clientContext = new ClientCon

  • How to query data from BigQuery using JAVA API 2016-01-28

    We have a api project written in JAVA using spring hibernate and reading data from MySQL. Recently, we added another data source as BigQuery, therefore we want to allow user to call certain apis to query data from BigQuery - order count from orders t

  • How do you separate a wsgi django/python app server from the web server? 2011-07-14

    I've built a django / python application, running on apache with wsgi, and hosted on a single amazon AWS EC2 instance. It a custom client application, so low traffic, but one part of my application generates reports, which take a requires more horse

  • How do i query data like POI locations from OSM? 2015-06-03

    I posted a question on Reading terrain data from Google? and but an answer that opened up a whole new world to me; that google wasn't the only service that was logging/tracking GIS information. My original question was not answered and i marked the f

  • How to retrieve data in app folder on drive from android app with different accounts one at a time? 2016-01-19

    I am storing my data in app folder (For hidden purpose ) of google drive by selecting specific account and retrieving also. In that case my app register with local debug keystore(development mode). Problem is, Upload file and download file for one ac

  • Provider Hosted App unable to access List Item value from host web in Sharepoint 2013 2014-07-17

    I have a List on my host web in sharepoint by name 'PremiumCalculatorContent' which has two columns 'Title' and 'FriendlyName' and some data. I was trying to fetch these two column values from the List in Visual Studio (AppWeb project) using the belo

  • How to do centralized outbound email monitoring from multiple web servers? 2013-07-03

    I've got an application consisting of a number of web servers that use JavaMail to send outgoing mail via the gmail smtp server. I'd like to have some centralized monitoring and control over the sending of mail so it seems likely that I'd want to int

  • How to download cacti 0.9 files from its web directory? 2013-09-30

    How to download cacti 0.9 (PHP) files from its web directory? I need cacti version 0.9 to work on it but i don't know how can i download all of its files at once from below directory: Is there an

  • How to query More than 50000 records from sObject 2015-12-10

    i need to count total number of records in an sObject which can have around one million records. Will the code below work ? If no, how can this be done ? I dont need to use this in a vf page. I will be using this COUNT() SOQL Query in a batch class w

  • How do I transfer iOS apps only from an old computer to a new one? 2012-01-10

    I've recently bought a MacBook Pro. I've migrated all the iTunes music across from my old pc to my new mac and have also downloaded more tunes since I bought my computer. Now I'm trying to sync my iPhone and iPad with the new computer - however if I

  • How to Place Shortcuts for Apps Downloaded from Windows Store into Folders 2014-01-07

    I'm trying to organize all of my apps in Windows 8, and I have run into a problem where I can't seem to figure out how to move the shortcuts for Windows 8 apps downloaded from the Windows Store. They don't seem to have any shortcuts in these location

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 2.133 (s). 13 q(s)