Questions tagged [sharepoint-addin]

This tag is used for SharePoint apps (also known as SharePoint Add-ins) development.

Filter by
Sorted by
Tagged with
37
votes
2answers
88k views

How do I turn on SharePoint App store in SharePoint 2013

I am getting this message when I want to add a app: Sorry, apps are turned off. If you know who runs the server, tell them to enable apps.
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 ...
22
votes
4answers
42k views

REST POST: How to add a list item with 'people and group', 'choice,' and 'URL' fields?

I am trying to create a form for a SharePoint Hosted app that will allow users to request a teamsite. The form writes to a list that is contained in the SharePoint site collection, from which a timer ...
20
votes
1answer
7k views

REST list item delete does not go to Recycle Bin

I have a SharePoint 2013 autohosted app with a number of lists inside of it. I would like to be able to soft delete a list item using the REST API and have it go to the Recycle Bin instead of being ...
16
votes
2answers
16k views

App Part iFrame width to 100%

I successfully created an App Part using a provider-hosted high trust App. The app uses bootstrap and has dynamic content to fit page size. The problem is that when I publish the App/Web Part, the ...
16
votes
5answers
7k views

SharePoint REST API getbytitle with ampersand in title?

Trying to use the SP2013 REST API to ping a library with the title "Prep & Admin Docs" and I can't use getbyID as this snippet will be used in multiple sites where the GUID of the list will vary. ...
14
votes
3answers
29k views

How can I view a list of applications added by AppRegNew.aspx?

I have added a few apps to a Sharepoint Online instance using /_layouts/15/AppRegNew.aspx. How can I manage apps added through this endpoint?
14
votes
2answers
10k views

(Solved) Start a Workflow of the Host-Web via SharePoint App and JSOM

The Last Update is the Solution I have got an App for SharePoint 2013, which needs to start a Workflow. This Workflow is in the HostWebContext, not in the AppContext. The List, the Workflow is ...
13
votes
3answers
22k views

How to get SPFieldChoice values using rest api SharePoint 2013?

I have a choice field in my list. I can get it values using server object model by following way List<string> fieldList; SPList spList = spWeb.Lists[listName]; SPFieldChoice field = (...
13
votes
3answers
6k views

SharePoint 2013 Call the REST API from SharePoint hosted app

I've successfully deployed a SharePoint Hosted App to Office 365 and my local on premise installation. All the app aims to do is call the REST API for the user profile manager to get the profile ...
13
votes
4answers
10k views

Can't upload a non-text file to SharePoint App via REST API

I am using the following REST code to add a file as an attachment to a SharePoint 2013 list item. <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <SharePoint:ScriptLink ...
13
votes
2answers
4k views

The remote event receiver callout failed

I've created an AppEventReceiver for my High Trust Remote app, when I deploy the app through Visual Studio 2012 I get the following error The remote event receiver callout failed The HTTP request is ...
12
votes
2answers
10k views

How to send email in SharePoint Hosted apps 2013 for SharePoint Foundation?

Did you know how can I send an email in my SharePoint Hosted apps? currently I am create a visual studio 2012 project for SharePoint 2013 foundation hosted apps with JavaScript code. I do not be able ...
12
votes
4answers
11k views

App in app catalog only available in specific sitecollection

I'm creating a provider hosted app for sharepoint which contains a number of client web parts. The app is for a specific department and it needs some custom configuration (columns, contenttypes etc) ...
12
votes
3answers
14k views

Create multiple items via REST API

I'm looking to bulk create items to decrease the amount of calls being made in my application. In this instance, I'm working on a calendar control that has different needs than what SharePoint OOTB ...
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 ...
11
votes
2answers
46k views

Powershell command to find active features for site collection

Im trying to find active futures for my site from below script but im prompt with error ( cannot call a method on a null-valued expression) Appreciate your help $activeFeatures = Get-SPFeature -...
11
votes
3answers
17k views

_spPageContextInfo is undefined in client web part

I have created a client web part for a SharePoint-hosted app that I am creating. The app makes use of the clienttemplates.js library in SharePoint to render user presence (Lync) in the web page. I am ...
11
votes
4answers
8k views

Where and how are sharepoint list stored in sharepoint apps

Sharepoint Apps, can be installed in multiple site collections. According to everything I have read about apps, sharepoint apps are isolated from the sharepoint environment and I can completely ...
11
votes
2answers
1k views

SharePoint Apps vs Features

SharePoint 2013 supports new kind of Solutions called Apps.According to MSDN, Apps are self contained piece of functionality and easy to install, use and update. I think SharePoint features also ...
11
votes
1answer
1k views

Custom properties for app part

I am developing a provider hosted SharePoint app part. I have defined some custom properties for the app part. I am testing the app in a SharePoint online tenant. On a developer site when I edit the ...
11
votes
2answers
1k views

How to properly logout from sharepoint online hosted app

I have SharePoint online hosted app with multiple pages, on the first page I am getting contextToken = TokenHelper.GetContextTokenFromRequest and use it for own needs (clientContext = TokenHelper....
10
votes
5answers
2k views

Downloading Bulk of data(150 GB) using powershell or C#

I have a task to download bulk of data(150 GB) from SharePoint document libraries? What will be more efficient and faster,Doing it using a powershell script or using a c# code to download files?
10
votes
2answers
6k views

How do I renew a Refresh token?

Let's say I have a provider-hosted app that's installed on a client's Office 365 site. A user clicks the app and they're redirected to our site. The redirects gives us (among other things) a Refresh ...
10
votes
1answer
7k views

Host Web Apps vs App Web Apps

I am little bit confused here and looking for some advise. What I know: When we install SharePoint hosted app it will be installed in your host web as a sub-site within a site collection which is ...
10
votes
3answers
2k views

Get if user has permissions to access to a Cloud App for Sharepoint 2013 with JavaScript CSOM or Rest Api

I have developed a Cloud App for SharePoint 2013 on an office 365 server, and I figured out that to set the user permissions(who has access to it) for that app can be find over https://sharepoindomain/...
10
votes
1answer
1k views

on-premise sharepoint hosted app, anonymous access

I have been wrestling with a permissions issue for a SharePoint hosted app. I have gone through all the permission settings for anonymous access so I am 90% sure it is all correct. So, now I am ...
10
votes
3answers
15k views

Get the ID and Name from multiple Client side People pickers to store in a list

I have a form which contains 3 client side people pickers, i use the following JS to produce the People Pickers // Render and initialize the client-side People Picker function initializePeoplePicker(...
10
votes
1answer
451 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
1answer
2k views

How to create a Sharepoint list that can be used by both an Access desktop application and an Access web app

A SharePoint list that can be edited by both MS Access desktop and MS Access web apps (Access 2013). I want a SharePoint list that works offline and then syncs when the network is working. Sorry, I ...
10
votes
1answer
117 views

ALM for Site Templates? Template or CSOM App?

Looking at the best way to implement a set of feature requirements for a new product being proposed by my firm. A client portal accessed through our 365 SharePoint environment. Features: dropbox ...
9
votes
4answers
40k views

How to get permission of a sharepoint list for a user using REST api

I have a requirement where i need to check the access permission of a user against a List or Library only using REST api from my remote salesforce app. Say for example, I have to send the list name ...
9
votes
2answers
12k views

Get ContentType name with select fields

I have a problem with getting the ContentType name for a item. when i use http://sp2013dev/sites/mms/_api/web/lists/GetByTitle('List')/items(1)/?$expand=ContentType I get as response all Fields ...
9
votes
1answer
750 views

How to distinguish SharePoint 2013/2016 on-premises and SharePoint Online

Our add-in needs to execute different JavaScript code on SharePoint on premises and on SharePoint Online. There is a slight difference, but it is critical for our add-in. The add-in is a pure ...
9
votes
2answers
3k views

Previous versions of ListItem with CSOM

When using Client-Side Object Model for SharePoint 2013, how can I access previous versions of List Item?
8
votes
3answers
7k views

When/How to use asp.net MVC inside Sharepoint on-premises and Sharepoint online

I know in SharePoint things can be done in many ways and using many technologies. But now I am a bit confused on when/how I can/should/most-appropriate to use ASP.NEW MVC inside SharePoint on-premises ...
8
votes
4answers
25k views

SharePoint 2013 apps do not show up

I have a SharePoint 2013 environment and I have the publishing features enabled. When I try to add Apps, only 3 show up: Document Library, Custom Lists, & Tasks. If I turn off Publishing, then ...
8
votes
1answer
6k views

Interview Questions on SharePoint Apps which I could not answer [closed]

Question was : Where does the code lies for Provider Hosted App? does it lie in SharePoint server? if not can we make them lie in SharePoint server. How should we call the web services for Provider ...
8
votes
1answer
12k views

ODataContentTypeException : Content Type 'application/json;odata=verbose'

I'm trying to create items in a SharePoint lists through the SharePoint REST API in Javascript (with an AJAX call using jQuery), all that in a SharePoint2013-hosted App. But I get this error when I ...
8
votes
1answer
9k views

Programmatically add a web part to a page using CSOM

I want to create a SharePoint 2013 app that will add a web part (and an app part) to a page programmatically. I will be using SharePoint online. I cant seem to find any code that does this. Is this ...
8
votes
1answer
2k views

Can you create a multitenant provider hosted app without using the office store?

Stackexchange says this is a subjective question but I don't think it is. I am just trying to discover feasibility here. After a lot of reading online, I was able to successfully convert an app that ...
8
votes
1answer
224 views

What is the pros and conts between JSOM and REST

I have a dilemma choosing between JSOM and REST what is better? what are the pros and conts of both? is different in performance? I have search but I cant find something usefull.
8
votes
2answers
811 views

SharePoint App VS Object Model

For designing solutions I am confused with whole Apps concept in 2013. What is Microsoft's guidance for when to use a SharePoint app and when to go for a traditional client or server object model ...
8
votes
2answers
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 ...
8
votes
3answers
266 views

Isolated (per page) App Part communication

Many of you may know this blog post which explains how to communicate between app parts (from the same provider). Unfortunately the post only describes how to communicate between "all app parts of ...
8
votes
2answers
533 views

Access AAD protected Web API with SharePoint Online user token

I have a Web API protected by using Bearer tokens form Azure AD (https://azure.microsoft.com/en-us/documentation/articles/active-directory-devquickstarts-webapi-dotnet/). Now, I would like to call ...
8
votes
0answers
422 views

Design Package import SharePoint 2013 using App Installed event CSOM

In SP2013, I am trying to import and export the design package from one site to other site using AppInstalled event using CSOM. I am not able to get the context of source site to import the design ...
7
votes
2answers
37k views

Getting an ItemCount with filtering in SP2013 using REST api

I am attempting to return an integer (itemcount) of the items within a SP2013 list. I have done this easily using the stock standard json method. However I have a need of counting the splist items ...
7
votes
1answer
2k views

Difference between Farm solutions and Provider-hosted Apps

I have been reading quite a lot about SharePoint 2013/2016 lately and I am not sure I am able to see the difference between Farm Solutions and Provider Hosted App. Please correct me if I am wrong: ...
7
votes
4answers
16k views

How to create lookup columns in SharePoint Lists within SharePoint Apps?

How can I insert look up column value to a SharePoint list. I created a SharePoint hosted app and created two SharePoint lists in it: list1 and list2. Now I need to create a lookup column in list2 ...

1
2 3 4 5
48