Questions tagged [sharepoint-addin]
This tag is used for SharePoint apps (also known as SharePoint Add-ins) development.
194
questions
37
votes
2
answers
89k
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.
12
votes
2
answers
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 ...
9
votes
4
answers
50k
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 ...
2
votes
1
answer
8k
views
How to join two lists using REST API sharepoint 2013
I have two lists with look up column. How do i join two lists using REST API call.
Thanks in advance
7
votes
2
answers
42k
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 ...
2
votes
3
answers
1k
views
Calculate the average value of an array from sharepoint listitem
So I'm getting my listItems with a Camlquery, but i want to calculate the avg of the "price" rows
This is the code I've used so far:
function VisaLista() {
namn = document.getElementById("...
1
vote
3
answers
4k
views
How to limit the number of entries/records to a maximum in a List
how to limit record of a list programmatically or configuration.
When the user insert record in the list if this list has exceeded the maximum numbers of record allowed, the form of insert have to ...
10
votes
3
answers
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(...
5
votes
1
answer
20k
views
Sharepoint REST API - Using caml query and select/expand to get lookup data
I have a Sharepoint app and I use a caml query to filter the data I get back:
var caml = "<View><Query><Where><And><Contains><FieldRef Name='PublishingPageLayout' ...
2
votes
1
answer
5k
views
Fetching items from sharepoint list and attaching in Fullcalendar with JSOM
I'm relatively new to sharepoint development. I want to load events from sharepoint list to fullcalendar month view. How can I achieve that with JSOM(not with REST api)?
So far I can add to the list ...
20
votes
1
answer
9k
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
5
answers
9k
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.
...
11
votes
2
answers
49k
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 -...
7
votes
1
answer
5k
views
The difference between webpart and add-ins
From what I know both of web part and add-ins (SharePoint-hosted add-ins) can give a custom functionality to a SharePoint page. And the only differences I know is that web part can be added via server-...
6
votes
2
answers
10k
views
Differences between hosting options for SharePoint apps
When we create a new app in Visual Studio, we are given the option to select an hosting model:
What are the differences between the various models?
5
votes
4
answers
37k
views
SharePoint online REST: Get users profile properties
I'm looking for some help with a REST call I'm attempting to make in SharePoint Online.
I'm doing an add-in that gives me the name, birhday and photo property of all user in user profiles
I tried ...
4
votes
2
answers
4k
views
Get Likedby column value from List Rating Setting
I have created a custom list and activated rating setting.
I want to count the number of likes and likedby. But when I modify the list view I found Likedby is disable but checked and likedby is not ...
3
votes
1
answer
14k
views
Add new item to list in JavaScript
I have the following code in my SharePoint 2013 app, I'm getting no errors but the item is not being added, anyone spot anything eyes are square from looking!
function addListItem() {
this.web = ctx....
3
votes
2
answers
20k
views
ReferenceError: SP is not defined error in Provider Hosted App
I've created Provider Hosted app. I'm using client object model in my app. When I try to call this code I get
ReferenceError: SP is not defined
var context = SP.ClientContext.get_current();
I've ...
16
votes
2
answers
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 ...
14
votes
3
answers
26k
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 = (...
14
votes
2
answers
11k
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
4
answers
11k
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 ...
8
votes
1
answer
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 ...
7
votes
2
answers
15k
views
Error occurred in deployment step Install App for SharePoint 2013
I got this error while trying to deploy an App in SharePoint 2013. The full error message is
Error occurred in deployment step 'Install App for SharePoint': Failed to install App for SharePoint
7
votes
4
answers
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 ...
5
votes
1
answer
10k
views
SharePoint Apps - What is App catalog?
What is SharePoint Application catalog? and where do we use this?
4
votes
4
answers
17k
views
Error occured in deployment step 'install app for SharePoint': The System Account cannot perform this action. Deploying App - On-Premises Farm
Yes this question is the same as :
This question
How ever none of the proposed solutions work for me.
I've tried swapping the account in Central Admin (did not work)
I've created a new AD account, ...
3
votes
1
answer
1k
views
how to create new event in SharePoint calendar list with JavaScript?
i want to create new event in SharePoint calendar list in which I have some custom columns,i tried below code but it is not working
function bookingRoomForMeeting() {
var ctx = new SP....
3
votes
1
answer
2k
views
enterprise wiki customization office 365
I need to customize the enterprise wiki so that each article can have comments against it.
The Enterprise wiki is basically a publishing layout page .Can I add the blog web parts to the enterprise ...
2
votes
1
answer
1k
views
Add-in sharepoint deletion
The solution is not a permanent solution. I am able to delete it with the script provided. But i still cannot redeploy my solution from VisualStudio. Is there a way to get this working or do i need to ...
2
votes
2
answers
9k
views
Office 365: powershell script to uninstall the sharepoint app
I need the powershell script to uninstall the sharepoint app from office 365 site. I tried below script did not work for me.
$getinstances = Get-SPAppInstance -Web https://spnote.sharepoint.com
...
2
votes
2
answers
4k
views
How to send email with attachment through SharePoint hosted app
I want to send email with attachments in share-point hosted app,how can I do that?i tried some thing like below
function sendMail() {
var mail = {
properties: {
__metadata: { '...
2
votes
1
answer
2k
views
Rename a file - Without Delete permission
I want my users to
rename the documents
But not delete the documents
Is this possible in SharePoint Online ?
2
votes
2
answers
1k
views
Can not add SharePoint hosted app to the page
I have created a basic sharepoint hosted app using following microsoft tutorial.
https://msdn.microsoft.com/en-us/library/office/fp142379.aspx#Code
It contains a basic list and default page. After ...
2
votes
1
answer
4k
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 ...
1
vote
1
answer
535
views
Move pdf files from one library to folder within library in sharepoint 2013
I want to move files from the Library into its folder (Which is in the same library). How can I do this using sharepiont Designer 2013
1
vote
5
answers
10k
views
Getting the error "$Resources:core,ImportErrorMessage;" in share-point 2013
I am new to SharePoint 2013. I have create a visual web part in vs 2013. I have deployed and try to add the .webpart to my SharePoint 2013 team site.
When I try to add the .webpart then I am getting ...
1
vote
2
answers
540
views
Unable to debug our Remote Event Receiver using Azure service bus. "One or more services were unregistered from the Microsoft Azure Service Bus. "
I am developing a remote event receiver for our site collection. so inside Visual Studio 2015, i did the following:-
i created a new sharepoint add-in of type provider hosted app. I added the code as ...
1
vote
1
answer
2k
views
How to add a custom app to a SharePoint Online site programmatically
I have created and packaged a custom application. The app has been uploaded to App catalog. I can add it manually to a SharePoint Online site and it functions without an issue.
Is there a way to add ...
1
vote
1
answer
22k
views
How To Get User Id Using Login Name in Share Point Provider Hosted App
We are using people picker (jQuery autocomplete) in a SharePoint Provider hosted app for binding the data of AD users.
We are using predefined web service Interface (...
1
vote
2
answers
1k
views
Send Email using Javascript
In sharepoint hosted app how to send mail using js.I want send email to any user,not only for sharepoint user.
0
votes
1
answer
12k
views
Deleting Files with REST API
I'm developing a SharePoint App where I need to delete a number of photos that the user will select, so I have a function that I pass an array with the URLs of the photos that will be deleted, but I ...
0
votes
2
answers
5k
views
Defer SP.RequestExecutor.executeAsync
I'm working on a SharePoint app where I need to run SP.RequestExecutor.executeAsync() in order to grab some information from one of the Host Web's lists. Depending on what method is calling the oData ...
0
votes
5
answers
34k
views
How to create Banner in sharepoint?
I want to create the banner in sharepoint as shown below:
0
votes
1
answer
62
views
Can TokenHelper.cs use Azure AD to validate client secrets instead of Azure ACS?
If this is possible, how should the TokenHelper.cs be modified to accomplish this?
Background: I have a provider-hosted SharePoint add-in that uses the TokenHelper to validate client id/secrets. ...
0
votes
1
answer
52
views
Function in an app that gives alert message when somenone updates list?
I have build an app to get list items etc. Now I want to put a function in it that gives alert message when someone adds,removes or changes something in list.
Is it possible?
22
votes
4
answers
45k
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 ...
19
votes
4
answers
48k
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?
13
votes
3
answers
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 ...