API for interacting with SharePoint from .NET, Silverlight, and JavaScript.
1
vote
1answer
38 views
How to call Sharepoint 2013 API by Javascript in Farm Solution
I am developing a Farm Solution (full trust) with some custom WebParts. For one WebPart i want some ajax behaviour, so i thought: Why not use the JSOM API?
My web part just want to retrieve the new ...
0
votes
0answers
18 views
Adding files as attachment to SharePoint List
Requirement: Add files in one SharePoint list -(ListA ServerA - Host Server), add and update same file on (ListB ServerB - Remote Server).
Tried: CSOM C# - getting errors like Save Conflict / 409 - ...
1
vote
2answers
26 views
JSOM Error in SharePoint Client Code When Retrieving User Object
Trying to figure out why I am getting this error with my code, am I missing a script reference, or is perhaps something wrong with the Context data grab section?
Error:
The property or field 'Email' ...
0
votes
3answers
74 views
Get User object from Person or Group field value using JSOM/JavaScript API
How do you get a User object from Person or Group field value using JSOM/JavaScript API? I am looking for something like this (See Vadim Gremyachev answer), but let me be clear I DO NOT WANT the ...
0
votes
0answers
13 views
Elevated privileges using WCF WebService and Client Side coding
I want to use RunWithElevated privileges in CSOM but it is not possible using CSOM coding, So I want to do this using dot net webservices(WCF). For that,
I want to create a dot net webservice on my ...
0
votes
1answer
37 views
Problems while checking if file is locked by user
I wrote a program that opens and modifies documents in a library. I tried to set it up in a way where the program would skip documents that are opened, locked or checked-out by a user. But apparently ...
0
votes
1answer
21 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
2answers
35 views
How to move / copy documents from one SharePoint library to another SharePoint library on different farms Using Event Receiver?
We have requirement to move /copy documents from one site to another, sites are on different farms( totally different environment).
We can can copy items if library in same application/ site ...
0
votes
0answers
26 views
jQuery.Deferred is not working when updating multiple items
I got this error :
This collection has not been initialized....
when using below code:
/*------begin byGetRootData()------*/
function GetRootData() {
var dfd = jQuery.Deferred();
var ...
0
votes
1answer
29 views
How to get ID field in form through internal name in SharePoint
I'm learning Sharepoint 2013 . I have a new form to add data . In that form i have a web part add javascript . In that script i want add code custom this form and i want get ID through internal name ...
0
votes
1answer
23 views
SP.Utilities.UrlBuilder.urlCombine Not working
I am trying to concat two strings using urlCombine method like this:
SP.Utilities.UrlBuilder.urlCombine(_spPageContextInfo.webAbsoluteUrl, AnotherUrl);
The AnotherUrl might contain a slash / and ...
1
vote
0answers
15 views
remove check out check in and download functionality completely from site collection
Please help how to remove check out, check in and download functionality from the site collection so that it is not available for subsites too.
I don't have control over server hence I need to achieve ...
6
votes
1answer
214 views
what happens with items/lists when the creating user is deleted?
I have a user usr1 that i need to remove completely from a site collection.
usr1 has created several lists and items within these lists.
If i remove the user programmatically:
ClientContext.Web....
3
votes
2answers
29 views
CSOM Error 409 because Slide is opend by another user
I am getting an error 409 while trying to write a file in a slide library. All I found on google until now is about wrong paths. But I already wrote about 90 other files in the exact same library ...
4
votes
1answer
59 views
Copying Selected List Items From One Custom List To Another
As the title says, I'm trying to get items from a list that are selected by the user to copy over into another list, "Shopping Cart". During the copy, I would also like to add a username field to each ...
0
votes
1answer
32 views
Connecting to SharePoint Online from on-prem SharePoint with current user
I have setup the cloud hybrid search between my on-prem SP2016 and SPO (SharePoint Online). I have azure ad synchronized with my ad etc. (without SSO).
sample scenario: I am displaying results from ...
1
vote
2answers
44 views
How to display a string in client browser console using c#?
Let's assume I have a C# file in my SP2010 application and I want to display a message in the browser console.
using System;
using System.Collections.Generic;
...
public class WhatEver{
// some ...
2
votes
2answers
78 views
How to Check Out Document Remotely
I am trying to check out a file remotely using the Sharepoint libraries:
using Microsoft.SharePoint.Client;
public void CheckOutFile()
{
// Set the context (URL) of the site
var cc = new ...
2
votes
1answer
143 views
Sharepoint 2013 C# Add recurring event, Shows in calender view but is not there
From C# codebehind I added a recurring event
SPList olist = web.Lists[appname];
SPListItem item = olist.AddItem();
item["EventDate"] = startdate;// 9/5/2016 8:00:00 PM // System.DateTime
item["...
0
votes
1answer
164 views
CSOM The request uses too many resources error while provisioning web
I am provisioning web on SharePoint online using following CSOM code(provided hosted app), but intermediately we are getting "The request uses too many resources" error.
using (ClientContext ...
0
votes
1answer
36 views
Is it possible to transfer authorized Windows's user credentials to SharePoint?
I have a console application that connects to the SharePoint and works with lists (I'm using SharePoint Client model). Code that connects with SharePoint is:
SPCli.ClientContext _clientContext = new ...
0
votes
1answer
77 views
Upload a document into a SharePoint library with IRM
I'm trying to upload a file into a SharePoint document library using the C# CSOM library. The document library I'm uploading into has information rights management settings enforced.
When I try to ...
1
vote
1answer
72 views
Which dll client version should I use to connect to both Sharepoint 2010 and Sharepoint 2013?
I have a web project that should consume both On-premise Sharepoint 2010 and Sharepoint 2013.
So, we have two different versions of the following dlls :
Microsoft.SharePoint.Client V 14.0.0.0
...
0
votes
0answers
15 views
Query for App Web List Data from Host Web Event Receiver
I have a Remote Event Receiver attached to a Host Web List. On ItemUpdated, I want to query a list in the AppWeb. I'm trying to create my client context but AppEventProperties is null. Any ideas why?
...
0
votes
0answers
17 views
SharePoint Online provided hosted ribbon app running twice
I have a SharePoint Online provided hosted ribbon app (in Azure), the app perform query the document properties and check out the document, the problem is when the document process for 50 documents or ...
1
vote
1answer
129 views
Sharepoint client object model {File not found}
var onlineCredentials = new SharePointOnlineCredentials(ServiceUserName,securePassword);
var context = new ClientContext(clientUrl);
context.Credentials = onlineCredentials;
ar cc = GetAllFiles(...
0
votes
2answers
37 views
Creating a sub-folder in a SharePoint with Client.dll in C#
I am trying to create a list of all the folders that exist within the root folder. From there I want to implement the creation of a folder if the folder does not already exist.
Is there a way to ...
1
vote
1answer
60 views
Group permission - Sharepoint Online Powershell
I would like to have a report of which sites a specific group or user has on all the SharePoint sites.
I have this group called SPGroup and I want to see on which sites this group has permissions on, ...
0
votes
0answers
13 views
SCOM + group: how to distinguish its members (between user or Active Directory group)
A SP group contains users and Active Directory groups. I need to get the emails of all users (including users in Active directory group) for the particular SP group. How can I do that?
string ...
1
vote
2answers
93 views
How to get the return value from SP.SOD.executeFunc?
I have the same scenario as what this below question has:
How to get the return value of an on demand executed function?
I have SP.SOD.executeFunc('sp.js', 'SP.ClientContext', getPageTitle); ...
3
votes
2answers
138 views
Can we create List in another site collection using CSOM?
I have a very simple scenario. I am using SharePoint Online
I have 2 site collections SC1 and SC2. Now i am executing a JavaScript function in SC1 and am trying to create a list in SC2 in a sub-site ...
3
votes
1answer
32 views
Add Site Name to column in NewEdit Form using Client object model
I've been able to Get the site name (adding this to editform via CEWP) but I don't know how to modify the script to be able to update the field ProjectName with the Site Name. Any ideas? Thanks so ...
1
vote
1answer
122 views
Detailed version history for a specific version label
How to perform 'View' operation for fetching all metadata values of the specific version using SharePoint client object model, for instance here version 7.1
I am working for Provider hosted app [...
1
vote
1answer
101 views
How to get lookup field in Search REST API?
How to retrieve the lookupId or lookupvalue in Search REST API results with other fields. http://server/_api/search/query?querytext='sharepoint'&selectproperties='Title,Age'
0
votes
2answers
92 views
Is there any way to overcome URL length limitation in REST API “GET” Requests?
Is there any way to overcome the 2083 characters limit using REST API GET request itself.
3
votes
2answers
38 views
Update vti_ property
I use CSOM and I'm trying to find a way how to change vti_contenttypeorder property for a list item.
Does anyone know some workaround how I can to do this?
2
votes
2answers
106 views
Get all property of Group using CSOM
Unable to get all property of SharePoint group using CSOM.
GroupCollection collGroup = clientx.Web.SiteGroups;
clientx.Load(collGroup, grups => grups.Include(grup => grup.Title, grup => grup....
0
votes
0answers
48 views
JSOM returns empty object on some pages
I've got some JSOM code that I use in two forms: a display form and an edit form. On the display form, DisplayTicket.aspx, it works exactly as expected.
On the edit form, it runs and the JSOM call ...
1
vote
2answers
108 views
“The formula refers to a column that does not exist. Check the formula for spelling mistakes or change the non-existing column to an existing column.”
I am trying to create calculated column using csom.
var fieldXml="<Field Name='calctest' DisplayName='calctest' StaticName='calctest' Type='Calculated' Required='FALSE' ColName='sql_variant1' ...
0
votes
1answer
123 views
Add Webpart to a Page using only Javascript?
Is it possible to add a webpart to a page using Javascript. I want to add a webpart to a specific page whenever a button is clicked.
1
vote
2answers
155 views
Set Welcome Page using Javascript only?
Is it possible to set the Welcome Page of a SubSite using only Javascript? I'm looking to create an Onclick Event that does this. Anything would help.
0
votes
0answers
50 views
Client context is not working with ajax
I have an application where a sub site in SharePoint will create automatically by entering name, description and custom template id. I already have a working application, but the same application is ...
0
votes
1answer
173 views
Checking whether a sub site exist in site collection using client object model
I want to check a sub site exist in site collection. I site exist a new one will be created.This is what I have tried:
int siteLanguage = 1033;
//Create a new ...
0
votes
2answers
55 views
How to attach documents to list items SharePoint 2013 - Microsoft.SharePoint.Client (Error System.IO.FileNotFoundException)
I have a custom list and i'm using the below.But getting error:
Could not find file 'c:\windows\system32\inetsrv/Filename -System.IO.FileNotFoundException
if (FileUpload1.HasFile)
{
...
0
votes
1answer
31 views
SharePoint 2010: Add GroupBy to existing list view using JSOM?
Is it possible to modify an existing view, more specific adding GroupBy, using JavaScript / JSOM? I am creating the library using JavaScript and I'd like to add a GroupBy in the "all items" default ...
0
votes
3answers
178 views
What is the list template type of an asset Library in SP2010?
I would like to know the list Template ID for an asset Library.
Here is a link that list the template type enumeration available for all kind of lists and libraries... but nothing about the asset ...
1
vote
1answer
186 views
SharePoint JSOM and Promises - copying items from one list to another
I need to use JSOM to copy a set of items (found from a CAML query) from one SharePoint list to another.
I'm pretty experienced doing this type of thing on the server side, but relatively new with it ...
0
votes
0answers
196 views
Copy list item value to another in SharePoint using REST API
I am trying to auto increment a value for a specific column in SharePoint list. How to copy list item ID value to another column of of a SharePoint list (e.g ProjectID). I tried this code '...
-1
votes
2answers
101 views
executeQueryAsync function calling not working using for loop
I am having values in result[15452,33616] when using for loop ,the async function taking only last array value (e.g-33616) and fetching the data for that pushing to another array and final push into ...
1
vote
3answers
82 views
CSOM error with SP.SOD.executeFunc used twice
I'm trying to do several CSOM requests. But I can't do it.
Here is my first, that works alone :
var collListItemToBeUpdatedRevente = "";
var enumeratorRevente;
var ...