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.

learn more… | top users | synonyms

2
votes
0answers
43 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 ...
0
votes
0answers
9 views

Error starting a workflow on host web from within a SharePoint-hosted app

I am trying to start a workflow on the host web from within a web part in an app. Here is my code: var clientContext = new SP.ClientContext.get_current(); var hostWebUrl = hostUrl; var ...
0
votes
2answers
26 views

Javascript url redirection not working in a multi-page sharepoint-hosted app

I wrote a sharepoint app that is almost entirely html/javascript/jquery. Bare minimum asp because that is not my expertise. It works great locally in all browsers when using pure html pages, but I'm ...
1
vote
1answer
44 views

how to use the gridview in SharePoint 2013 Hosted App

I want know how to use the grid view in a SharePoint-hosted App. Can any one provide information on this?
1
vote
0answers
19 views

Do SharePoint-hosted apps have a persistent PropertyBag

I'm trying to store some user-configurable settings inside a PropertyBag. The getters and setters seem to work correctly, at least while the app is still open, but when I refresh the app's page it ...
0
votes
0answers
22 views

SharePoint 2013 App. Workflow Permissions for an app web

I have prepared environment to host apps on SharePoint on-premises, then I have configured workflow manager to work through HTTP and implement simple SharePoint-hosted app with a workflow. My ...
0
votes
0answers
13 views

SharePoint App Asset Library 500 error on add video

I'm trying to make a SharePoint-hosted app which has it's own Asset Library, on a SharePoint Online developer site. I create the asset library by right clicking my project -> Add -> New Item... -> ...
1
vote
1answer
61 views

Difference between provider-hosted app and SharePoint-hosted app + IFRAME for provider

Assume I have an external web application that I want to use as provider for a provider-hosted app. What is the difference between the following two approaches: Using a provider-hosted app and ...
0
votes
0answers
44 views

Copy a list in an App Web to a List in the parent in SharePoint Online

I'm looking at all the cross domain jsom that allows communication from a SharePoint 2013 App to parent host. I have read that (in my case) I can write some code on the parent SharePoint site that is ...
0
votes
1answer
39 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 ...
0
votes
4answers
90 views

Error while calling SP.UserProfiles.PeopleManager.getMyProperties method

I am trying to get current user profile information using the PeopleManager object ( SP.UserProfiles.js ) in a SharePoint hosted app. Code snippet is like below : var peopleManager = new ...
0
votes
0answers
17 views

Chrome control SharePoint hosted app

I am developing an SharePoint-hosted app. Can I edit the chrome control for an aspx page? For html page it is easy but for aspx I don't know how do it.
0
votes
1answer
43 views

Get Managers name and ID from Active directory via client side people picker

I have a working app that uses's a client side people picker to find users...Once i have my user selected i then need to get the selected users Manager and department. I don't think this is readily ...
2
votes
1answer
37 views

Sharepoint Hosted Apps - Why separate domain should be created?

Really, why? You said XSS. Ok, what is XSS? XSS allows me to execute maleficent script on different domain. So, from an app web I can't break something in a host web. But stop. I can request ...
0
votes
2answers
63 views

Invoking SP.ModalDialog in Sharepoint 2013 Hosted Apps

I'm building a SharePoint 2013, SharePoint Hosted app project using the JSOM api. I have to make use of the SP.UI.ModalDialog to popup some content in the app. I have used the getScript method to ...
0
votes
0answers
37 views

“Unable to render data” list items in XsltListViewWebPart

I have a list displayed in an XsltListViewWebPart on the default page of my SharePoint-hosted app, and if I add an item to it and try to select the item (trying to execute a workflow on it) I get a ...
3
votes
2answers
175 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 ...
0
votes
1answer
77 views

SP.RequestExecutor.js is never unloaded, should I worry?

I am developing a SP 2013 app and making frequent asynchronous calls via SP.RequestExecutor.js using the REST API. Every time I need a function call I use: jQuery.getScript(scriptbase + ...
0
votes
2answers
104 views

SharePoint hosted APP - Create subsite with JSOM under hostweb - Access is denied

I'm trying to create a SharePoint hosted app that creates a subsite under the hostweb with JSOM. The app has full control on the site collection. Why do i I getting this error message: My code: ...
0
votes
2answers
40 views

Get the ID of a new listItem and update same record

I'm trying to add a new record and get the new ID created then use the new ID to create a specific reference number using the following code. function saveDraftGHrecord() { ghList = ...
0
votes
0answers
15 views

Sharepoint 2013 App live on the MS store

Finished my SharePoint hosted app which is now live on the MS store, quite a few of the issue i had round the development of it were solved on this very site so I thought i would put out the link ...
3
votes
0answers
127 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 ...
0
votes
1answer
21 views

Deploy app with default document

I have an app that deploys several lists, one of which is a document library. I would like deploy a default document (help file) with the document library list, is this possible with a SharePoint ...
4
votes
1answer
233 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 ...
0
votes
0answers
45 views

App upgrade process gets stuck

Im trying to update an existing Sharepoint-hosted App to a new version. I uploaded the new app-file to the app catalog and then clicked Update on my App information. The text "We're updating your ...
0
votes
1answer
176 views

List and list item permission and security in Sharepoint hosted App

Having created a SharePoint Hosted App which allows users to add records to a list i noticed that the list is accessible via the URL if the user knows the name of the list. If you access the list in ...
0
votes
1answer
57 views

Sharepoint Hosted Permission (SP 2013)

I am developing a test REST app currently, the app is sharepoint hosted and is being developed and deployed to the SP site without Sharepoint installed on my Machine. The app is meant to take in a ...
0
votes
2answers
179 views

403 Forbidden when sharepoint hosted app tries to access OData service

So I've been developing my sharepoint hosted app using my developer account. This has been working great so far. Now before deploying my app I've been doing some tests, one of them is running them as ...
0
votes
1answer
30 views

Sharepoint Hosted App, Javascript and Permissions

I've deployed a sharepoint hosted app with custom javascript. When I access my devsite with administrator I can use my app. When accessing with another user the js-files aren't loaded in my apppart. ...
2
votes
1answer
180 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, ...
0
votes
1answer
66 views

Add file to host web in SharePoint hosted app. Is it possible with Manage permissions?

I wonder is it possible to add a file from a SharePoint hosted App to host web without setting Full permission for the Web? function uploadFile(data) { var url = appUrl + ...
0
votes
0answers
106 views

Sharepoint-hosted app - Missing workflow history fields

When running a workflow for a SharePoint-hosted app, the workflow history items are written without any data in the List ID or Primary Item ID columns. I'm trying to link the workflow history list ...
4
votes
2answers
1k 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 = ...
1
vote
3answers
351 views

There is no trusted URLs configured for the app deployment on Client side People Picker

I've built and been using a Sharepoint hosted app which uses a Client side people picker which all worked correctly until today. No when using them I get the following error. There is no trusted ...
0
votes
0answers
17 views

Replicate the User availability Status using client code code

Having completed another Sharepoint hosted 2013 app i'm looking at ways to improve it and I've been looking for some example code around the User availability Status which you see in OTB lists ...
2
votes
0answers
50 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 ...
0
votes
1answer
181 views

Error in SharePoint hosted app: Add permission level to the list programmatically

I am trying to add permission to the list which I have created in my app. I am trying to give current user some permission to add update delete items from my list. I have used one article from MSDN ...
0
votes
1answer
50 views

Users with read rights are not able to insert data in my SharePoint hosted app's List

I have SharePoint hosted app. In that I have created an List and I am managing data of that list using a form which I have created in my app page. When I am inserting data with the user who has full ...
0
votes
1answer
40 views

Updating an Sharepoint 2013 app (sharepoint hosted)

I have developed an app and I'm trying to get my head round what happens in the update process. My app contains several lists some of which the user can update. If they then update their app with my ...
0
votes
0answers
36 views

Workflow creates another task on item update rather than update task

I have developed an SP2013 app which uses a workflow to assign task based on my main list. The task creation is working when i add the item. When I update that item it would seem another task is ...
1
vote
1answer
1k views

Get Related Item ID from a workflow task list

using JSOM i am displaying a list of a workflow task...in order to allow my users to approve the task i need to get the ID of the related item. I'm guessing this is going to be in the Related Item ...
2
votes
2answers
192 views

Apply theme to subsite from SharePoint hosted app + javascript

I have to make a SharePoint-hosted-app for creating subsites and applying a theme on created subsites programmatically. my app is installed on root site (site collection) and I want to change ...
0
votes
2answers
1k views

Display JSON results from REST API

I have the following code function execCrossDomainRequest() { var executor = new SP.RequestExecutor(appweburl); executor.executeAsync({ url: appweburl + "/_api/Web/GetUserById(9)", ...
0
votes
0answers
74 views

Save people picker info to list (client side)

I'm building a office 365 app so its all client side and I've implemented the people picker DIV method as discussed here, my people picker is part of a form which submits to a list but I'm not sure ...
1
vote
1answer
389 views

Intermitant - The property or field 'EffectiveBasePermissions' has not been initialized

Get getting this error on my SP2013 SharePoint Hosted app...randomly...I can just refresh the page and the error resolves itself. Anyone had this? Using developer tools the error seems to be ...
3
votes
2answers
205 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 ...
0
votes
0answers
133 views

Getting FileNotFoundException in sharepoint apps

i have created one Sharepoint hosted app using visual studio 2012, it build and published successfully. then i deploy .app file into developer site. .app file deployed successfully in my developer ...
0
votes
0answers
30 views

Can I add SP 2010 Workflows to lists in my SP 2013 App?

I have a Sharepoint-hosted app deployed to a site collection containing a custom list (contained within the app web). I open the app web list in my browser and from the ribbon I choose to create a ...
0
votes
1answer
74 views

Client Web Part for SharePoint Hosted App

G'day there, Just wondering if someone could advise on this for me? I have a simple sharepoint hosted app and all it is doing is performing simple CRUD operations on a list in the app. I want to ...
0
votes
2answers
119 views

Debug code in Napa ( Office 365 Online)

I have written a code to add an item in list in Office 365 using Napa. I have used client object model in the code. But the item doesnt get added in the list. Is there any way to debug the code in ...