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.

Filter by
Sorted by
Tagged with
25
votes
2answers
2k views

Client Web Part - XsltListViewWebPart

I'm trying to display a list view inside a client web part (for SharePoint hosted App). The below code will work inside an app page but does not render in a client web part. There are no errors ...
12
votes
8answers
13k views

Accessing another site collection from a SP2013 app

I have a SharePoint 2013 SharePoint Hosted app, and I've got some code that works swimmingly well when it's pointed to the host site collection. Part of the requirement is to have it point to a user ...
10
votes
1answer
435 views

Not able to set jslink property for a field without FullControl permisson on web (sponline)

For my SharePoint Hosted App, I set the jslink property of the field for customized rendering (JSOM set_jsLink). This used to work without having FullControl permission on web earlier. However, now ...
10
votes
0answers
652 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 /...
9
votes
4answers
8k views

Remove “+Add” from Calendar View Web Part

I have a Calendar View web part that I've placed in a SharePoint page. Right now it looks like this: I want to prevent the user from editing the list from here--I have an app that will take care of ...
8
votes
2answers
792 views

Migrating SharePoint 2013 apps to 2016

I have about 12 SharePoint apps (or add-ins) that I need to migrate over to 2016, but whenever following the steps below, I'm not seeing the app webs, nor the ability to add any apps to an existing ...
7
votes
4answers
17k views

How to get appWebUrl and hostUrl when getQueryStringParameter fails?

I have a sharepoint app with multiple .aspx pages. On different pages I push and pull from sharepoint lists and I would like to send emails. These require me knowing hostUrl and appWebUrl. I would ...
7
votes
2answers
15k views

Get a users Name from their ID

As part of my Sharepoint hosted App i am using a list which contains a Person or Group. I am getting the ID of the person by using the following. var ApproverID = currentItem.get_fieldValues()["...
7
votes
1answer
1k views

Add item to SharePoint Online Library - strange Access Denied exception

I have created a very simple SharePoint Online App. It has a manifest and a website. There is a simple script on a Default aspx. It is trying to deploy the file to a Library and getting "Access denied....
6
votes
2answers
1k views

how to get site collection url from SharePoint Hosted App

I am trying to get site collection URL using _spPageContextInfo.siteAbsoluteUrl but it is giving output as https://domain.-a08083bbaacc988.sharePoint.com/sites/sitecollectionname but I want it ...
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 ...
5
votes
2answers
14k views

SP.UI.ModalDialog undefined - Close SharePoint Modal dialog with javascript

I have created a modal dialog in SharePoint with the elements.xml. I use a SharePoint Hosted app. This is my CustomAction Definition: <CustomAction Id="2c2b7036-4582-4238-8205-b348628c0ed9....
5
votes
1answer
574 views

Fetching and displaying more than 5000 list items

I am aware of the list items threshold of 5000 items. But I need to display more than 5000 items on a SharePoint Hosted Addin and on a .net website. How can I overcome this constraint? Also, I do ...
5
votes
2answers
905 views

SharePoint Add-in - Modify App Domain Name

I have come across situation where I need to change App domain name which we set in early steps of configuring environment for SharePoint add-in while creating isolated app domain. I read somewhere (...
4
votes
2answers
4k views

Sharepoint Framework for Sharepoint 2013

I know the new SPFx will be released for Sharepoint 2016 sometime in the year 2017. But are there any plans to also bring this for Sharepoint 2013? Are there any possibilities/hacks to add a ...
4
votes
3answers
966 views

SPO - How to change default URL of list forms with custom URL?

My solution in SharePoint Hosted-Add-in. I want to change default URL of NewForm.aspx with my custorm page through Visual Studio.. My custom page is in Pages/AddHoliday.html. Can i do this directly ...
4
votes
3answers
6k views

how to read all recurrance events from sp calendar list in SP hosted app

I am trying to create one SP hosted app which will read all events (includes recurring) from SharePoint calendar list. I tried but am enable to reach to it. my code is as below. function ...
4
votes
1answer
513 views

App prison break

Me an my colleges were discussing the possibility of breaking out of the sandbox that a SharePoint-hosted apps provide. As most of you know host webs in SharePoint 2013 are protected by deploying apps ...
4
votes
1answer
2k views

How to utilize audience targeting with javascript?

Im creating a SharePoint-hosted app (restricted to use client side code only), and I want to retrieve documents from a library. Each document have a Target audience field. I want to, in javascript: ...
4
votes
2answers
66 views

SharePoint hosted app within the Host Web

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 ...
4
votes
1answer
1k views

MS Project Server REST api from SharePoint-Hosted app

I'm trying to get some project data using the REST API. My queries work fine when using Postman. But when it comes to SharePoint-Hosted app, I'm getting a "404 (Not Found)" error. My app is deployed ...
4
votes
2answers
69 views

SharePoint 2013 App Backup

I have added a SharePoint app from SharePoint store.This app cannot have the setting option. This app can only handle in edit web part mode. Now i want to use this same app into another SharePoint ...
4
votes
1answer
1k views

How to reference JavaScript file in custom ribbon action in SharePoint Online App?

I am trying to call JavaScript function into my Custom Ribbon command. I was able to create my Custom Ribbon Action using this answer. This perfectly worked for me in creation of Custom Ribbon Action ...
4
votes
1answer
512 views

Call Javascript code in Custom Ribbon Action for office 365

I want to call my javascript code in custom ribbon action in SharePoint online. I tried this code. <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas....
4
votes
2answers
690 views

modify sharepoint hosted app files without having to redeploy app

I have a SharePoint Online hosted app that I'm building that is an angular app. Typically i start the app out by doing all the angular UI stuff just using local development so I am able to easily ...
4
votes
1answer
74 views

Office 365 addin not working on IE7, working on chrome, firefox and IE8

I have a hosted addin that we developed internally. it works on chrome, firefox and IE8+, but for some reasons, the infrastructure made the default rendering for IE to be 7. Is it a limitation in ...
4
votes
2answers
4k views

Office 365: Publish and deploy .app through PowerShell

Can we deploy a SharePoint hosted app in Office 365 (SharePoint online) using PowerShell? Like in SharePoint 2013 apps, we will import the .app file and then install it. Can this be done in Office ...
4
votes
1answer
4k views

How to upgrade SharePoint app where the SharePoint app is installed on 20+ sites?

I understand stand the App upgrade process for a SharePoint hosted app and when I update my App Catalog for the web application I then can upgrade the app successfully manually for a site. But my ...
4
votes
1answer
267 views

Get Subsite context from Root Site SharePoint Hosted App

I'm creating SharePoint Hosted App to create sub-sites for users. After creation I've to modify the user permissions on newly created Subsite. I'm trying following code. function createSite() { ...
4
votes
1answer
851 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
635 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
3answers
8k views

How to get a old version of list item?

I need to get all field values of an specific version. It is possible by sharepoint hosted app (javascript)? I need to create a custom version history page of itens. If there is a caml query ...
3
votes
1answer
98 views

SharePoint hosted-add in save date object in list

What is the best way to save date object in SPO list with JSOM? because date where is saved is not correct This is my code(experiments) //This is my date string where i get from datepiker - **25/01/...
3
votes
1answer
10k views

Get SharePoint list items from another site collection with JSOM

I am using JSOM to get the list contents of a list which is located in another site collection than my app. For example, my app is hosted here: portal.contoso.com/sites/myapp and the list is on top ...
3
votes
1answer
396 views

Remote Event receiver using provider hosted app

Getting error on deploy Remote event receiver using provider hosted app solution in SharePoint online. Cannot register Services/RemoteEventReceiver1.svc on Microsoft Azure Service Bus: The remote ...
3
votes
2answers
553 views

List item returns null JSOM

I'm new in developing sharepoint hosted apps, I need to return list items of list, it returns null. I've set permissions of list & web to full control. The following is app.js code var context = ...
3
votes
2answers
2k views

X-RequestDigest in Modal Dialog (without masterpage)

I'm trying to post a REST query to SP.Utilities.Utility.Sendmail so I can send a mail from my sharepoint hosted app. For this I have the following function: function sendEmail(from, to, body, subject,...
3
votes
1answer
999 views

How to restrict Client side people picker not to allow duplicate users?

I am using Client Side People Picker as shown in Use the client-side People Picker control in SharePoint-hosted SharePoint Add-ins. Now the problem is, this people picker is allowing same user ...
3
votes
2answers
3k views

How create Sharepoint online site with custom template?

I need to create site in SharePoint Online from SharePoint hosted app. I used code like this: var webCreationInfo = new SP.WebCreationInformation(); webCreationInfo.set_webTemplate('STS#0'); ...
3
votes
3answers
2k views

Retrieve list items created by user based on login credentials

I'm developing a SP2013 office 365 app using the Sharepoint hosted option so working with JS. I'm allowing users to create new records in a list and also displaying that list of records that are ...
3
votes
1answer
145 views

How to start the Sharepoint app development [closed]

How to start the SharePoint App development ? What is the SharePoint Hosted App Model ? What is the open authorization 2.0 OAuth 2.0 ? i am new to office 365 and develop apps for share point 2013, ...
3
votes
2answers
2k views

Attaching Remote Event Receiver to host web list without using azure ACS connection string in Provider Hosted App SharePoint Online

I am trying to attach an Remote Event receiver in Provider hosted app for SharePoint online.I don't want to use azure account ACS connection string.Somehow i was able to find the solution and i ...
3
votes
1answer
610 views

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 ...
3
votes
1answer
1k views

System.UnauthorizedAccessException when accessing list with JSOM

I try to get items from a list with JSOM. But I get a System.UnauthorizedAccessException with error code 2147024891. If I navigate and authenticate to the site with a browser I am able to access the ...
3
votes
4answers
4k views

Get users Manager using Client API

url: appweburl + "_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='" + seluser + "'", For my SP 2013 app I need to get a users manager and I'm ...
3
votes
1answer
3k views

SharePoint hosted app part is not loaded with error “Refused to display <App URL> in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'”

I am working on a SharePoint hosted app. It runs fine when loaded by clicking on the app icon in Site Contents page. But when I add it to a page with client web part, it is stuck on the 'Working on it'...
3
votes
3answers
3k views

Sharepoint Hosted App with Custom List Forms

I'm developing a SharePoint Hosted App that deploys a custom list. I am trying to figure out what the best way to create custom New, Display and Edit Forms for that list are. Is there a way to create ...
3
votes
1answer
71 views

How to migrate SharePoint hosted app from SharePoint 2013 to SharePoint Online?

How to migrate a SharePoint hosted app from SharePoint 2013 to SharePoint Online? Do that require the code of app to be rewritten or can we simply download and upload the app file to SharePoint ...
3
votes
1answer
1k views

How do SharePoint-Hosted Apps authentication and authorization work?

How SharePoint-Hosted Apps Authenticate and Authorization? Is it same as Provider-Hosted Apps or different? Provider-Hosted Apps use OAuth; what about SharePoint-Hosted Apps? For cross domain ...

1
2 3 4 5
9