Questions tagged [sharepoint-hosted-app]

A SharePoint-hosted app may provision basic resources into its app web such as HTML/CSS/JS files, site column/content type/list definitions, etc. Under no circumstances can server-side code run within a SharePoint-hosted app.

168 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
0answers
650 views

Bundle SharePoint JavaScript files inside SharePoint hosted app

We have a SharePoint hosted app. This app require some scripts from SharePoint; MicrosoftAjax.js, init.js, sp.runtime.js, sp.js, sp.taxonomy.js and sp.workflowservices.js. We load all these from /...
6
votes
1answer
2k views

SharePoint hosted app - valid app package always NO

While publishing a SharePoint hosted app file to the App catalog site it always shows Valid App Package: No And App Version is always 1.0.0.0. I changed the version in AppManifest.xml from Visual ...
6
votes
2answers
336 views

Full-trust SharePoint hosted app licensing

As we know, Apps for SharePoint that request full-control permissions are not accepted in the Office Store. So, how to implement licensing management and validation then? Especially for SharePoint ...
4
votes
1answer
833 views

Unable to delete SharePoint Online sub-site with SP hosted app installed

When i try to delete a site(Site Settings -> Delete the Site) with SP hosted app installed in the respective site, we are getting the below error There was a problem deleting Web site "". Sites that ...
4
votes
0answers
626 views

SP.WebProxy.invoke Alternative

I'm working on a SharePoint 2013 on premises Hosted App. The app needs to get data from an external REST endpoint from a web service on another computer. I've managed to get in Javascript the SP....
3
votes
0answers
204 views

SharePoint on-premise app catalog configuration

I have been tasked with recreating our existing SharePoint on-premise instance. Everything has gone well apart from a confusion I have with how the app catalog has been setup on our existing instance ...
3
votes
0answers
35 views

SharePoint Hybrid 2013 + SPO365 CSOM REST

once the environment is set up, is it possible to create a Cross-Domain JSOM or REST calls to get data from Site Collections from Both On-Prem and Online Sides using the SharePoint Hosted App Add-in ...
3
votes
0answers
35 views

~sitecollection token in AppPart SRC attribute

I have been testing ability to use various tokens in SRC attribute for app parts in SharePoint 2013. I try to investigate if it's possible to have an apppart that points to a page that is outside app ...
3
votes
0answers
26 views

Resource Not Found error while creating a custom master page for Sharepoint Hosted App

Resource Not Found (Master Page is not found) error is shown when a custom master page is created for SharePoint Hosted App according to steps given in given link: Master Page for Sharepoint Hosted ...
3
votes
1answer
146 views

Unable to create subsite with SharePoint hosted app

Below is my code for creating sub site in SharePoint Hosted App: function createWebsite() { var clientContext = new SP.ClientContext("https://rootSite/sites/Site1"); this.oWebsite = ...
3
votes
1answer
90 views

Connect lookup field to a list inside an app

I have a list in SharePoint online which should get a lookup a field to a list which is inside a SharePoint hosted app / add-in. Is it possible? My app has "FullControl" rights on the web and on the ...
3
votes
0answers
135 views

How to create custom action using SharePoint hosted app

Is it possible to create "custom action" under the "Site Action" menu in "HOST WEB" using SharePoint Hosted App.? We do not want to follow the native method of packaging all the necessary files ...
3
votes
1answer
262 views

JSLink in form tag is not working from schema.xml in my SharePoint hosted app

In the app ,for schema here is my code from schema.xml <Forms> <Form Type="NewForm" Name="{65B105CA-E7D8-4B28-8C9F-5B0DCBA7E0CA}" SetupPath="pages\form.aspx" WebPartZoneID="Main" Url="...
3
votes
0answers
42 views

SharePoint Hosted app and document

I am creating a SharePoint document center application in which I want to achieve the following: We will use the SharePoint screen and will show the list of documents over the SharePoint site. I ...
3
votes
1answer
280 views

Access host web data from a SharePoint add-in

I am writing a SharePoint add-in to add list items to a host web list. I use an AppContextSite object to fetch the list and add an item to it. I then try to do an appSiteContext.load(listItem) call ...
3
votes
2answers
676 views

Access Subsite list from root site using sharepoint hosted app

I've a SharePoint Hosted App and its deployed to Root site. Using that App, I need to read items of specific list from all sub sites of that root site. My current Code: var hostsuburl = "Subsite URL ...
3
votes
0answers
184 views

Display SharePoint App's Version Number

I'm working on a SharePoint Hosted App that includes an App Part (or SharePoint Plugin, whatever they're calling it these days). Somewhere on the App Part, I thought it would be nice to display the ...
2
votes
0answers
33 views

Working with npm packages in SharePoint hosted app

I am starting to work on a SP 2013 hosted app. I am planning to use typescript and have setup my project with Typescript configurations enabled. I have created a SP module called "dist" and all ...
2
votes
0answers
60 views

Is it feasible to check PDF accessibility using c#?

I need to check accessibility for uploaded pdf using any dll or any other way. Is it feasible programmatically using c#. Accessibility of pdf means pdf contain header or footer and misspelled word in ...
2
votes
0answers
183 views

What means OnDemand, LoadAfterUI, Localizable attributes in SharePoint:ScriptLink tag?

I'm developing simple sharepoint hosted app. on app's default.aspx i see the below scriptlink tag. but i do not understand the need of OnDemand, LoadAfterUI, Localizable attributes. <SharePoint:...
2
votes
0answers
161 views

Sharepoint hosted client app part custom properties validation

I am trying to validation custom properties of client web part in Sharepoint hosted app. Not finding anything to do so. I have custom properties which are required ,url validation , character limit in ...
2
votes
0answers
76 views

SharePoint Hosted app Custom newform

I need to add a custom form (new, view and display forms) in a SharePoint Hosted app. I did follow these two articles article1 and article2. Steps so far Created a SharePoint App project Added a ...
2
votes
0answers
47 views

Prevent Visual Studio from Overriding Poject internal SPList

Is there a way to prevent Visual Studio from Overriding Poject internal SPList? And how can I reuse a already created List inside an App? The Lists is not accessible after a new deployment of the app....
2
votes
0answers
285 views

Create site collection using jsom

I am wondering if creation of site collections with javascript on SharePoint hosted sites, is still not possible? If not, is it possible to use the site collection creation form _layouts/15/online/...
2
votes
0answers
37 views

Creating Charts in 0365

I am developing a Share-point Application in O365. Will it be possible to use web-part in online premise or only app part can only be used. Following is the code I have used. I am getting the Access ...
2
votes
1answer
79 views

Create a 2010 workflow in Visual Studio 2012 for SharePoint hosted app

Is it possible to create workflow 2010 for SharePoint hosted app 2013 in visual studio 2012. If yes then how we can achieve this. Suggest some help
2
votes
1answer
64 views

Sharepoint Hosted app update issue

I have deployed my hosted app in test site environment with version 2.0.0.0 In the same version I have one list named Employee. Now I renamed the list name as Employees raise the version 3.0.0.0 and ...
2
votes
1answer
678 views

Alternative for ADAL in SharePoint hosted app

Is there any alternative for ADAL. I have created SharePoint hosted app. For every new build app deployed with new url with new Id like https://mysite-a08081eeabb935.sharepoint.com/sites/test/...
2
votes
0answers
621 views

Rest API calls from provider hosted apps

Here is the scenario. We have a product built on linux systems and the data is available through REST API. The web application which is built on JAVA is also hosted on the same environment. Few of ...
2
votes
0answers
139 views

How to create context by using URL from list items?

I've a project main site and some sub sites of it. In the Main site I've list which contains URL of all sub sites. I need to create office app to retrieve the list items from all sub sites, do some ...
2
votes
0answers
68 views

Is cross-site lookup possible with a provider-hosted app?

I have following problem. I got two projects, one sharepoint-hosted app and another provider hosted app. Both contain a couple of lists. So far so good. Now I need the data from the sharepoint-hosted ...
2
votes
0answers
112 views

Filter Drop-down values based on logged user

I should create a drop down box to display hosted-app part, based on the selected value from drop down box. Also I need to filter the drop down values based on logged user. And this need to be done ...
2
votes
0answers
334 views

Sharepoint 2013 Hosted App. Access-Control-Allow-Origin - Access Denied

I am working with SharePoint 2013 and I developed some app parts to show information in our intranet. These app parts get data from WEB API using jQuery, It works fine in Chrome, Firefox, but in ...
2
votes
0answers
84 views

ADFS error in SharePoint Hosted App on On-Premise SharePoint

I have developed a SharePoint Hosted App for a customer. For development I used SharePoint Online, the customer system is an on-premise SharePoint 2013. Now I deployed the .app-file on the customers ...
2
votes
1answer
576 views

Get all users in Office 365 and their permissions in Sharepoint hosted app

How to get all users of office 365 and their permissions in SharePoint hosted app and is it even possible ? I want to get everyone's permissions and display content based on permissions of current ...
2
votes
1answer
1k views

Sharepoint-hosted app on-premise 2013

We have been developing SharePoint-hosted apps for SP online with great success, but seems like developing SharePoint-hosted apps for the on-premise 2013 is not so intuitive process. Questions: As ...
2
votes
0answers
103 views

User-hidden credentials for SharePoint-hosted / Auto-hosted App

I am experienced with developing SharePoint 2007 and 2010 solutions, and am working to get into SharePoint 2013 development. The requirement from our customer is that the App can only be deployed as ...
2
votes
1answer
351 views

Enable ratings for custom list via JavaScript in a SharePoint Hosted Add-In (App)

let me just start by saying that I've searched for about 8 hours and I've read every accepted answer for CSOM, PowerShell, list settings etc and tried to convert the codes myself into a working ...
2
votes
1answer
245 views

In SharePoint App, What permission will be needed to bind taxonomy termstore to column of list?

I have SharePoint hosted app which creates list with Taxonomy Field. I want to bind term store to that column. I tried by editing that column and try to set "Term Set Settings", but that setting ...
2
votes
1answer
3k views

Using JSOM or REST get list items stored in a different web application

In an on-premises SharePoint 2013 environment I need to read list items stored in a different web application using JavaScript based solution. This could either be JavaScript in Script Editor web part ...
1
vote
0answers
24 views

Can a SharePoint Hosted Add-in call a public web API (like Google Maps or Open Weather)?

Assuming, it's a pure JavaScript page/app with no server-side rendering required... Can a SharePoint Hosted Add-in call a public web API (like Google Maps or Open Weather)? Or would this make it a ...
1
vote
0answers
183 views

Error when deploying .sppkg file to SharePoint App Catalog

I have been following this tutorial, and I have been having a bit of trouble deploying the app to the App Catalog in my Office 365 SP-Online tenant. I decided to go back and start again, but this ...
1
vote
0answers
212 views

SharePoint App: The remote server returned an error: (401) Unauthorized

I am getting the following error when I run the SharePoint app project via Visual studio debugger: Anyone can help how to solve the Authorization issue? I am not sure what authorization I need since ...
1
vote
0answers
45 views

Save document template from AppWeb to HostWeb document library

I am trying to create SharePoint app. Basic idea is to create document in hostweb document library from AppWeb (document template stored in AppWeb doc lib). In Details : I have created ribbon ...
1
vote
1answer
82 views

How to add .app (app part) into a share point page using powershell?

I have an App which is already deployed into SharePoint site. I want to add that .app file into a SharePoint page using powershell script. Thanks in advance.
1
vote
0answers
48 views

How to get popular Tags using Popular Items' web-part in SharePoint online?

I want to show popular tags used across my site collection. I have tried 'Tag cloud web part' but it has been retired from SharePoint Online. To achieve this I have used 'Popular Items' web part by ...
1
vote
0answers
512 views

SharePoint Add-in is not available in Web Part (App Part) gallery - SharePoint Online

I've developed SharePoint Add-in (SharePoint hosted) with an app part so it can be added to SharePoint page. The problem I'm facing now is that the app part is not available from App part (or Web part)...
1
vote
0answers
36 views

Can I download the add-in from Microsoft Seller Dashboard?

I have submitted a SharePoint Hosted Add-in to Microsoft Seller Dashboard (SharePoint Online). Unfortunately, I lost my source codes and published file together. Now, my add-in is rejected for some ...
1
vote
0answers
18 views

User unable to login to the app with Read permissions while there is no problem with Full Control

Scenario: There is an custom SharePoint app/Add In which has got 4 different types of groups for 4 different types of users. 4 different groups have permissions are Full Control, Contribute, ...
1
vote
0answers
29 views

Search content from main site from SharePoint add-in

Hi I have a SharePoint addin deployed onto a SharePoint dev site. I want it so that I am able to see results from the dev site. I have tried editing the search settings and query settings but nothing ...