Skip to main content

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
2 answers
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 ...
Jesus Shelby's user avatar
  • 10.9k
12 votes
8 answers
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 ...
David Lozzi's user avatar
  • 7,372
10 votes
1 answer
511 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 ...
Prakash's user avatar
  • 666
10 votes
1 answer
712 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 /...
eirikb's user avatar
  • 7,425
9 votes
4 answers
12k 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 ...
Ectropy's user avatar
  • 287
8 votes
2 answers
1k 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 ...
Mike's user avatar
  • 12.2k
7 votes
4 answers
18k 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 ...
Charles Clayton's user avatar
7 votes
2 answers
16k 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()["...
Stephen's user avatar
  • 1,812
7 votes
1 answer
2k 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....
Serhiy's user avatar
  • 379
6 votes
2 answers
2k 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 ...
Mehul Sharma's user avatar
6 votes
1 answer
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 ...
Hitesh Chandegara's user avatar
6 votes
2 answers
342 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 ...
Serhiy's user avatar
  • 379
5 votes
2 answers
15k 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....
Philipp Eger's user avatar
5 votes
1 answer
1k 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 ...
mohd tahir's user avatar
  • 2,416
5 votes
2 answers
1k 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 (...
Ashish's user avatar
  • 401
4 votes
2 answers
5k 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 ...
Florian Leitgeb's user avatar
4 votes
3 answers
2k 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 ...
Goshky's user avatar
  • 2,058
4 votes
3 answers
8k 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 ...
sharepoint2013's user avatar
4 votes
1 answer
517 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 ...
eirikb's user avatar
  • 7,425
4 votes
1 answer
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: ...
SilvioDante's user avatar
4 votes
2 answers
69 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 ...
Michael Colbs's user avatar
4 votes
1 answer
2k 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 ...
a1mery's user avatar
  • 344
4 votes
2 answers
75 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 ...
PGP's user avatar
  • 1,125
4 votes
1 answer
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 ...
Aakash Maurya's user avatar
4 votes
1 answer
534 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....
Codec's user avatar
  • 1,340
4 votes
2 answers
726 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 ...
user257655's user avatar
4 votes
1 answer
77 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 ...
David Hemsey's user avatar
4 votes
2 answers
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 ...
user2598808's user avatar
4 votes
1 answer
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 ...
NYTom's user avatar
  • 781
4 votes
1 answer
1k 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 ...
Srinath.MV's user avatar
4 votes
1 answer
304 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() { ...
Arun's user avatar
  • 495
4 votes
0 answers
693 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....
Ian Fleet's user avatar
3 votes
3 answers
9k 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 ...
Joao Paulo's user avatar
3 votes
1 answer
105 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/...
Goshky's user avatar
  • 2,058
3 votes
1 answer
11k 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 ...
Philipp Eger's user avatar
3 votes
1 answer
503 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 ...
Akshay's user avatar
  • 626
3 votes
2 answers
670 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 = ...
eman's user avatar
  • 31
3 votes
2 answers
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,...
Glenn Vandamme's user avatar
3 votes
1 answer
2k 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 ...
Trimantra Software Solution's user avatar
3 votes
2 answers
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'); ...
OleksiiYatsenko's user avatar
3 votes
3 answers
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 ...
Stephen's user avatar
  • 1,812
3 votes
1 answer
148 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, ...
adilahmed's user avatar
  • 2,975
3 votes
2 answers
3k 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 ...
Trimantra Software Solution's user avatar
3 votes
1 answer
650 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 ...
eirikb's user avatar
  • 7,425
3 votes
1 answer
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 ...
Philipp Eger's user avatar
3 votes
4 answers
6k 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 ...
Stephen's user avatar
  • 1,812
3 votes
1 answer
4k 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'...
Bishnu Das's user avatar
3 votes
3 answers
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 ...
Daniel's user avatar
  • 93
3 votes
1 answer
138 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 ...
Adarsh Awasthi's user avatar
3 votes
1 answer
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 ...
Praveen Pudi's user avatar

1
2 3 4 5
9