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
2
votes
1answer
191 views

Remove Event receiver in SharePoint Hosted App Sharepoint online

Is it possible to create a remote event receiver in sharepoint hosted app?
1
vote
1answer
41 views

SharePoint Hosted App uploaded in App Catalog . App in Disabled Mode

I had uploaded my app package in "App Catalog" ,And I see it's status as below.Can any one do let me know ,How much time it will take to get enabled
1
vote
0answers
154 views

How to access list data in an app web from another app web

I understand how to access app web(SharePoint hosted app) list data from host web, or the other way(app web -> host web). However, is there a way to access another app web's data from an app web? For ...
0
votes
1answer
498 views

Prerequisite for SharePoint hosted app deployment on office 365 site

I have developed SharePoint hosted app on office developer site. Now I want to deploy this app to another SharePoint online site. so what are the prerequisite for App deployment, like the site should ...
0
votes
1answer
494 views

How to set dynamic width and height for iframe in App Part

My app part doesn't support responsiveness height and width. I have tried to set height using app, but it's not working. So how can I make App part responsive Here is some view source of App part
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 = ...
0
votes
1answer
33 views

O365 Active Directory Access

We have the roles of each user stored in our O365 active directory. Is there any way to access this information from Sharepoint (In app part/webpart code preferably)? Thanks!
0
votes
2answers
808 views

Get SharePoint multiple Properties of Multiple Users in Single Request:

I'm working on SharePoint app, where I can get multiple users form user profile. using below code I'm able to get property FirstName of multiple user. 'use strict'; var clientContext = SP....
0
votes
2answers
2k views

How to get Profile details link for User from user profile in office 365

Currently I'm working on SharePoint online app, I'm able to get users from user profile in office 365 site. Now I'm trying get the Profile details URL : https://Akshay.sharepoint.com/_layouts/15/...
0
votes
1answer
3k views

How to retrieve users profiles using JavaScript object model (JSOM) in SharePoint Online apps

To retrieve user profiles using server object model I have used UserProfileManager in C# code. UserProfileManager userProfileMgr = new UserProfileManager(serviceContext); IEnumerator userProfiles = ...
4
votes
3answers
912 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 ...
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/...
0
votes
1answer
660 views

SPO - Hosted Add-In: String was not recognized as a valid DateTime

I want to save data in format: dd/mm/yyyy to SPO server. My regional settings is set to alert(regionalSettings.get_localeId()); //1026. How to solve this problem ? This is my code: oListItem....
1
vote
0answers
12 views

How do I add a calendar properly in Visual Studio [duplicate]

I want to add a calendar to my Default.aspx. How is this done? My first try was: <asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" EnableViewState="False"> <...
0
votes
1answer
293 views

How to use IP in app domain

I have used this tutorial environment for apps to create an app domain. And it's working just fine. See below: But instead of using domain eg http://app-754d6678acde5d.myapps.com:4321/ I want to ...
1
vote
1answer
70 views

SPO - Hosted-Add-in Client picker and question for init.js library

I want to know: 1) Where i use init.js from ../_layouts/15/ (provider folder), and i sends 3 batches to server, fiddler show me 6 requests.. where i comment init.js library i really send 3 requests ...
1
vote
0answers
118 views

Rest API not sending full content of a file

My requirement is that there is a file called abc.pdf in a document library. Depending upon the logged in user and today's date, the downloaded file's name is to be changed. For example, if last name ...
0
votes
1answer
234 views

SPO - SharePoint-Hosted Add-In (Create list from VS)

I have created two list from Visual studio and after deployment I added data into these lists(accessed from URL address addInName/List/(listname)). After second deployment list loose the data... How ...
0
votes
1answer
21 views

Access SharePoint hosted add-in remotely

I have a SharePoint environment on a virtual machine. I can access all my SharePoint webs from my physical computer. But when it comes to SharePoint add-ins I get an error : "This page can't be ...
1
vote
1answer
262 views

SP Online - Use promises in SharePoint-Hosted Add-in

I want to know what is the best way for using JS chaines promises in for SharePoint-Hosted Add-in. In my code: I have a pageLoad function that's getting data from SP and I want to execute pageLoad ...
0
votes
2answers
159 views

Facing problem to validate user in ClientPeoplePicker using javascript

I added 3 users in ClientPeoplePicker but when i am removing 1 or 2 users and saving the ClientPeoplePicker values. Still saving all 3 users. How to handle these removed users from ClientPeoplePicker? ...
0
votes
1answer
355 views

Get the current item id in visual studio workflow

I have a Visual Studio workflow. It's creating a task to the user when Status.Equal("New"). I need a link in task mail body which will redirect to the current item. How can this be done? Thanks in ...
1
vote
1answer
2k views

Are there real differences in App/Add-in development inside on-premise SP 2013, compared to on-premise 2016 and office 365

Our team have been working on app module inside SharePoint 2013 on-premise for many years and on many projects. Now as we got new projects that are:- -On- premise SharePoint 2016 Office 365 ...
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 ...
3
votes
1answer
84 views

SharePoint hosted App with 'Read' permission to site collection in AppManifest, throws error on deploying.

I am developing an App which reads a List in HostWeb. I have granted Read permission to SiteCollection in AppManifest. While deploying the app it throws a peculiar JavaScript error - "JavaScript ...
1
vote
0answers
302 views

Deploy and host custom asp.net mvc applications in sharepoint 2016 intranet portal

we have developed some applications in asp.net mvc and trying to access these applicatons as from one sharepoint intranet portal that is for our organization - How can we deploye these applicaton in ...
1
vote
1answer
43 views

How can I know whether ListItemId is a Folder or a Document in SharePoint Hosted App Using JSOM? [duplicate]

I created SharePoint Hosted App. I Used Following Rest Call to Get File Name and Server Relative URL. But a problem is that when I get data in a result how can I know whether it is a Folder or a File ...
1
vote
0answers
85 views

How can I create and download a Zip in SharePoint hosted app?

I created Share Point hosted app. When I select Document from a document Library file should be select and create a zip of selected file. I am getting a file Content using following rest Call var ...
1
vote
1answer
360 views

SharePoint 2013 APP Deployment Error: on-Premise hosted APP

Today I have start working on SharePoint Hosted APP. I have done with prerequisite Setting up on-premises environment for app development After That I have created New Project. When first time I ...
2
votes
1answer
116 views

Sharepoint-hosted app-instance of an app in the same site

I have created a sharepoint-hosted survey app and deployed to my site.I am able to create a single survey with this app.But when i need to create another survey in the same site,Im not able to add the ...
1
vote
1answer
68 views

How can I get Title and Path from Document Library Using SPListItemId in SharePoint Hosted App

I have created one SharePoint Hosted App. Its Url is Like: https://a.sharepoint.com/ sites/SharePointAddIns/CreateZip19/Pages/ Default.aspx? SPHostUrl= SPLanguage=en-US&SPClientTag=0& ...
2
votes
2answers
2k views

How to call Javascript On Custom Action Button in Sharepoint Hosted App?

I have created Custom Action Button In document Library using <CustomAction Id="7be13ea1-8621-487b-b579-15e3b9d63908.CreateZip19" RegistrationType="List" RegistrationId="...
2
votes
1answer
762 views

Trigger SPClientPeoplePicker to search for string

I am filling the div of a SPClientPeoplePicker with a name of a person via JQuery. Now I want SP to look after this Person without modifying this div any further. Is it possible to use a trigger ...
1
vote
1answer
87 views

Custom Action Stop Navigation In Sharepoint Hosted App

I have created a sharepoint hosted app to create a custom action like Create Zip Button. I have created custom action for ribbon. In first Step I selected Hostweb and select custom action scope as ...
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 ...
1
vote
0answers
34 views

App cannot be used after script installation

I am installing a sharepoint hosted app on my sharepoint instance and it worked with no error. Below is the script I used: param ( [string]$Web = $(throw ‘- Need a SharePoint web site URL (e.g. "...
1
vote
0answers
43 views

Publish Sharepoint App programatically

Is it possible to publish a SharePoint hosted App programatically via a Powersell script or a post-deploy script? And how would this be done? EDIT: Okay, found myself a solution: $instance = Get-...
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....
0
votes
1answer
1k views

The property or field has not been initialized. Error throw in sharepoint online?

I have big problem. I tried a lot of solution for this issue but not worked. I need help. Here is my code. I try to get items from picture library. It's an app for sharepoint online. var context; var ...
1
vote
1answer
686 views

Sharepoint online app, Access denied

Hi I'm new to sharepoint. So I'm trying to develeop sharepoint online app. But there is an error here and I can't find how solve this issue. Error is : Access denied. You do not have permission to ...
1
vote
1answer
464 views

Set Default Layout Page Using REST API Javascript

I am developing a SharePoint-Hosted add-in which bascially provisions a custom page layout to the master page gallery of an publishing site collection. After this is done I want to make this layout as ...
1
vote
1answer
324 views

SharePoint Hosted App Office 365 : could not complete cross domain call

I am trying to create one SharePoint hosted App on office 365. I am trying to access the list item from host web, but it goes to error every time. Please suggest me if i am missing something. ...
3
votes
1answer
251 views

How to open an Office file in the client software programatically in SharePoint Online?

I have a Sharepoint hosted app that retreive documents from a library and I want that the name of the file has a link to open the document directly to the client Office app. The SP hosted app is made ...
1
vote
1answer
94 views

After creating a sharepoint app project, there is no “default.aspx.cs” code behind file

After creating a SharePoint app project, there is no "default.aspx.cs" code behind file. Only default.aspx My APP is SharePoint-hosted. Is that the reason? Can I code freely in a SharePoint-hosted ...
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/...
0
votes
1answer
30 views

Transfer Form-based data to java-script variables

I am building a Sharepoint hosted App. Is it possible to transfer Form-based data in java-script variables? I tried something like this : var MYform = "<form method='get' id='InputForm' action ='...
1
vote
1answer
264 views

Angular and SharePoint: missing references?

Assume: I am new to Angular, still don't know what I am doing. I am trying to create a SharePoint-hosted app that will pull some data from lists deployed with that app. I don't want to use Default....
2
votes
1answer
136 views

Creating an app package to publish to the Store

I'm preparing to publish my first SharePoint Hosted app to the Office Store but it requires a format of .xap, .appx, .appxbundle, .appxupload Only an .app file is packaged when I click Publish in ...
0
votes
1answer
66 views

Move visual studio site workflow to the host web

I have used following code it is working fine for the list workflow now I have to move my site workflow but it is not getting attached to the site. I have tried with changing the source_id to site ...
1
vote
0answers
19 views

sharepoint hosted app will be access all document libraries in a SharePoint farm

Which authentication method suitable for SharePoint hosted app will be access all document libraries in a sharepoint farm 1- Use the SharePoint server-to-server security token service (STS). or 2 ...

1 2
3
4 5
9