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
24 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 ...
2
votes
0answers
10 views

How to debug the sharepoint web proxy

I am using the sharepoint web proxy to call the AAD token endpoint web service in Azure. When I do the call, the response calls my error callback with a jqXHR object that contains the following: { ...
0
votes
0answers
26 views

Visual Studio Sharepoint Hosted App Deployment Error [duplicate]

While Deploy My Sharepoint Hosted App in Visual Studio 2012 It Throws the Following Error:_ "Error 1 Error occurred in deployment step 'Uninstall app for SharePoint': Cannot connect to the ...
0
votes
2answers
39 views

Error occurred in deployment step. Cannot connect to the SharePoint site:

While creating a new App For Sharepoint, in Sharepoint Site URL Validation Form. When we click the Validate Button the following error is shown: Cannot connect to the SharePoint ...
3
votes
0answers
25 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 ...
0
votes
1answer
24 views

Does a Sharepoint 2013 Online hosted Add-in have to create an app and app site?

Based on these Guides: https://dev.office.com/docs/add-ins/overview/office-add-ins https://msdn.microsoft.com/en-us/library/office/fp142379.aspx Is it possible to create a SharePoint Online 2013 ...
2
votes
1answer
23 views

Specify a Root Path of hosted app for script links in SharePoint hosted app?

I'm writing script reference in custom master page, and don't want to change the scripts for subfolder pages. Is there a way to make the path relative to the root directory? for example: <link ...
3
votes
1answer
53 views

What is the best way to add JSLink inside form tag

I am trying to add JSLink insided for tag in my SharePoint hosted app <Form Type="NewForm" Name="{878B105CA-A7O8-7C28-HD7F-5B0DCBA7DSA}" SetupPath="pages\form.aspx" ...
1
vote
1answer
28 views

office365- Uncaught TypeError: Cannot read property 'split' of undefined, querystring parameter fails

I created an SharePoint Hosted App in this app I am using Two form for saving data into list. When I click on save button to save data into list data is saved into list and redirect to another page ...
0
votes
0answers
15 views

SharePoint Online hosted app use Oath

I made a standard visual studio SharePoint Hosted App and did a deploy to my dev enviroment. I downloaded a simple example: https://dev.office.com/getting-started/office365apis it uses Adal libaries ...
2
votes
1answer
18 views

ListInstance with predefined data in Field tag of Element.xml gives an error

I am trying to add data in Field tag like <Data> <Rows> <Row> <Field Name='Title'>Configuration</Field> <Field Name='JSONData'> { ...
2
votes
3answers
66 views

How to add script reference on master page?

I have applied master page using JavaScript in my SharePoint Hosted App. This script reference is added on default.aspx. Now I want to add script reference on master page which I have applied so that ...
1
vote
1answer
29 views

Applying master page through js gives error on List pages of SharePoint Hosted app

I have successfully applied master page to my app function MastePageChange() { var clientcontext; var cweb; var sitename = location.pathname.split("/")[2]; var appname = ...
2
votes
1answer
34 views

How to remove content editor after first load of any page

any one knows how to remove content editor after first load. I want to load the page with content editor for the first time but after page refresh the content editor should be removed from the page. ...
0
votes
0answers
12 views

Shared hosted app and version history modal from hosted web?

I have a problem with this shit SharePoint cross origin and frame unfriendly system. With other words: Why can't I configure the security for a site? Or why there is no option "Allow apps to access ...
0
votes
0answers
45 views

Unable to install a SharePoint Hosted App with Full Control Rights

I have created a basic SharePoint Hosted App and given the Permission for the App as "Web" - "Full Control". The app is added to the App Catalog. When the app is being installed by the Site Admin in ...
3
votes
1answer
59 views

Is it possible to write any c# or server side code in SharePoint hosted app?

I want to render some code dynamically so is it possible to write any c# code in my SharePoint hosted app? And if not, then what are some alternative approach to achieve such goal?
6
votes
0answers
56 views

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

Here is my code from schema.xml <Forms> <Form Type="NewForm" Name="{65B105CA-E7D8-4B28-8C9F-5B0DCBA7E0CA}" SetupPath="pages\form.aspx" WebPartZoneID="Main" Url="NewForm.aspx" ...
0
votes
1answer
75 views

'Install app for SharePoint': Access denied

We get the following error when trying to deploy a SharePoint hosted app in SharePoint Online. It worked fine till yesterday. Install app for SharePoint: Uploading the app for SharePoint... ...
2
votes
1answer
41 views

How to create custom master page in visual studio for SharePoint hosted app

I want to create master page for my SharePoint hosted app and apply it to all pages. please suggest the help
2
votes
0answers
39 views

Apply custom master page to Allitems.aspx and NewForm.aspx in SharePoint hosted app

I want to apply my custom master page to a list in a SharePoint hosted add-in. Is it possible to do this? If so, how?
0
votes
1answer
97 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 ...
-1
votes
1answer
36 views

Getting list items in SharePoint Hosted App for Office 365

I want the code snippet for Getting the list items and Show it in the App page. I'm creating SharePoint hosted app for Office 365. How do i get the list item values? Thanks in Advance
0
votes
1answer
69 views

deploying a sharepoint-hosted app from my visual studio is taking too long

I have created a new simple sharepoint-hosted app using visual studio, but when i try deploying it, it keeps showing installing for around 7++ minutes as follow:- also when i tried accessing the ...
0
votes
0answers
21 views

403 Forbidden - while updating list items through sharepoint hosted apps

an above snap item updating calls GET Items which need to be updated but got 403 Forbidden error in sharepoint hosted apps. My Apps and list in the same domain. i took reference from this side for ...
0
votes
1answer
16 views

Sharepoint hosted app to replace search center

So I've finally got the search CSOM to give me results back in my sharepoint hosted add-in/app. I can install/deploy it out, I can even add it to our catalog. I can then add the app in the site ...
0
votes
0answers
19 views

Provisioning site collections with SharePoint Hosted App

I referred to the Office Dev PnP code on Github to create Site Collection in my O365 environment. This code uses CSOM to create site collections as a provider hosted app hosted on Azure platform. ...
3
votes
0answers
21 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 ...
0
votes
1answer
31 views

“Page can't be displayed” and Admin must enter credentials for local app domain (DNS is correct I think!)

SharePoint Server is a Windows Server 2012 R2 and contains the Active Directory, SharePoint and SQL Server 2008. Local domain is: test.local SharePoint host name is: sharepoint (in domain ...
4
votes
2answers
75 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 ...
0
votes
0answers
19 views

Get the Address of the User

Is there a method in which I can get the physical Address of an user? This information is visible in the Exchange profile, but so far we have not found a way to get it from the SP.UserProfile content. ...
0
votes
0answers
43 views

SharePoint hosted app - access list in app web through host web

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 ...
2
votes
1answer
31 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 ...
1
vote
0answers
30 views

SharePoint-hosted SharePoint Add-in Features deployment

I'm digging for a while into SharePoint-hosted SharePoint Add-in Features deployment, but I'm still dealing with some core questions. I can write a UI add-in, consuming the REST API on any hostweb, ...
3
votes
1answer
37 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 ...
2
votes
0answers
70 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 ...
1
vote
1answer
59 views

How can i add css reference to app parts which is rendered in iframe from the master page

I have been trying to apply the CSS to Office365 App parts, the reference of the CSS is included in the header section of master page(which must not be tenant specific). I tried several codes. One of ...
0
votes
1answer
95 views

HTTP 401 'Unauthorized' In SharePoint Hosted app

Can we use Cisco based Custom web service in SharePoint-hosted app on Office 365? My requirement is get items from Cisco based Custom web service and display items in SharePoint Environment (Office ...
1
vote
1answer
30 views

Read subsite list items through Sharepoint HostedApp

In SharePoint Hosted-App, I want to read specific list items from all subsites. I can get into subsites, but when I tried to read specific list items, I couldn't. My code: context = new ...
3
votes
2answers
138 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 ...
1
vote
0answers
55 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 ...
0
votes
1answer
23 views

App does not load in elements when deployed

I have a strange issue regarding SharePoint apps. I have installed my own Win Server 2013 R2, SQl for dev and SharePoint 2013 SP1 January 2016 CU. I am able to create and run custom solutions ...
0
votes
2answers
81 views

Why is SharePoint hosted App creating a wsp

New to Add-ins i am creating a SharePoint Hosted App in Visual Studio 2015. When i try to publish my app it creates the following structure in the Debug folder looks like this: DEBUG app.publish ...
0
votes
0answers
7 views

Create initial actions on App-Installation (SharePoint hosted)?

I want to offer a SP2013-AddIn that should do some action upon installation like creating SharePoint-Lists, displaying a wizard (where default configuration settings can be entered) and so on. Is ...
1
vote
0answers
25 views

Create custom site template with JSOM?

I understand that I can create subsites on the hostweb of O365 using JSOM and use custom site templates for that. One (out of many) examples for that can be found at Code Project Now my question is: ...
3
votes
2answers
63 views

Performance will be better using CSOM or REST API to retrieve data from 4 lists simultaneously.?

I am developing Sharepoint hosted app, and there is a situation where i need to get the data from 4 lists simultaneously, then use it later on. I am able to do it using CSOM. But performance wise what ...
0
votes
1answer
98 views

Sharepoint Hosted App - Get list Item using SPService call gives access denied why

I have created a SharePoint hosted App for Office 365 and am trying to get list items using SPService call but it is not working. There is an Access denied of Forbidden 404 error, why?
1
vote
1answer
49 views

Assembly does not support app authentication - Reputation.js

I'm trying to use the Reputation.js setLike method in a sharepoint hosted app/add-in which in theory is possible with the following snippet: var ctx = new SP.ClientContext(webAppUrl); ...
0
votes
0answers
32 views

Show dropdown for Client Web Part property

Is it possible to show a drop down list of values in a Client Web Part property (SharePoint hosted App for SPOnline)? I want to read values from somewhere else in site (say items from a list) and want ...
2
votes
0answers
40 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 ...