API for interacting with SharePoint from .NET, Silverlight, and JavaScript.

learn more… | top users | synonyms (3)

0
votes
1answer
17 views

SharePoint CSOM File.LinkingUrl property not found

I am using Visual Studio 2013 and referencing v16 of both Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime in a .NET4.0 application. According to the MSND page for a File object, ...
0
votes
0answers
11 views

retrieving user name in Jquery datatable and caml query

Hi I am on SharePoint 2010 version , I have created a list with createdby, createdDate and Employee name as columns in it. I am having a text box and a button when I enter employee name and click ...
1
vote
2answers
26 views

Get file name from document library

I have a document library named DocLibrary. Inside that, I have created few folders. Each folder have 3 another folder. Inside that, I store the specific files. Example: DocLibrary > NF1> ...
0
votes
1answer
19 views

How to get all users From Owners Group in sharepoint 2013 for a subsite

I am trying to get all the Users from a Sharepoint Owner's Group for a subsite. Below is the Script is Working fine . But it displays both Site and Subsite Users of Owner's Group. For example If SITE ...
0
votes
0answers
10 views

File Not Found. in ClientContext.Site.OpenWeb

I just tring to open the subsite using the CSOM. I'm geting the below error in clientContext.ExecuteQuery(). site URL is https://xxxxxxxx.sharepoint.com/Customer Orders File Not Found. ...
0
votes
2answers
37 views

Passing the Sharepoint Logged in user credentials to a REST API Call

I am having issues passing the current logged in user's credentials in to a REST API call. Here is the scenario: I have a SP 2010 hosted site that has a web part that makes a REST API call to ...
1
vote
1answer
36 views

Send Email with SP.ClientContent

Is it possible to send email using SP.ClientContext. Im aware of the limitations of send email in Javascript, but my understanding is that this calls the back end. All i see related to CSOM is c# ...
0
votes
0answers
12 views

Access list items cross site MySite<>SiteCollection

Office 365 online. I am trying to access list items from MySite host to another host: host: site.sharepoint.com mySite : site-my.sharepoint.com I am not using Apps, just simple cross site ...
0
votes
1answer
32 views

Get document from Document Library using Javascript

I am trying to get a document from document library.I am getting the file but I can't get its binary value. $.ajax({ url: fileUrl, binaryStringResponseBody: true, headers: { ...
2
votes
2answers
77 views
+100

Uploading file using COM occasionally gives an error that the file has been modified

I have created an Office Add In that is used to upload a Word document to SharePoint, showing a list of sites/subsites and Document Libraries. After the file is uploaded I set the content type based ...
1
vote
1answer
27 views

Enable External Sharing Programmatically

We have a scenario on which we are creating site collections from a provider-hosted app. Some of these site collections will be used by external users. Is there a way from CSOM (server-side) to enable ...
1
vote
1answer
66 views

List exceeds threshold. query large lists

I have a list that exceeds the 5000 threshold. total is 16013. Is it possible to query lists of this size. I can get all of contents with no query in batch using query..ListItemCollectionPosition ...
0
votes
1answer
34 views

Can not add value in List property bag using CSOM

I have saved value in list property bag from provider hosted using CSOM code: list.Context.Load(list.RootFolder); list.Context.ExecuteQuery(); var properties = list.RootFolder.Properties.FieldValues; ...
2
votes
2answers
49 views

Get all subsites and rootweb of a site collection using JSOM

I have used the following code from Most efficient way to get all sub sites under a site collection/sub site using JSOM? function getAllWebs(success,error) { var ctx = ...
0
votes
1answer
21 views

Creating item in document library error

Hi I'm trying to create a number of items in a document library.I've added the following in a CEWP but it errors: function createListItem() { var clientContext = new ...
0
votes
0answers
15 views

create or copy document in sharepoint using client object

I want the user to press a button and this creates or copies documents (Excel) into a document library on the same sharepoint site. There are many examples showing how to do this for a list but how ...
0
votes
1answer
35 views

I want to get list of all site collection available on SharePoint Server 2013 using CSOM or REST API but not server object model

I am working on client application for which I don't want to use Server Object Model of SharePoint 2013. I am ready to go for anything other that SOM. I want to get a complete list of site ...
0
votes
0answers
20 views

How can I add an event with resource reservations?

My task is to add an event to a group calendar in Sharepoint 2010 Foundation. The event shall have resource reservations (much like reserving a room, and a beamer etc.). With help of this forum I got ...
0
votes
0answers
24 views

Change content type of all files in a library using CSOM

I am attempting to change all the files in a library from one content type to another. This is in SharePoint Online so I'm using the CSOM. I am new to this so I'm stuck at where to go from what I have ...
0
votes
1answer
24 views

Create filtered list view in Calendar using JavaScript/JSOM

I am attempting to create a filtered list view in a Calendar. It is creating everything as appropriate, but not creating the filters. It believe it's my CAML. My goal is to filter by a choice column ...
0
votes
1answer
13 views

Creation of Calendar List View doesn't Set Calendar or Default View

I am using the following to create a View in a calendar, but it doesn't create the view as a calendar or set it as the default view. What am I missing? function createCalendarView() { ...
0
votes
2answers
27 views

Create Choice Column via JSOM

I am using JSOM to create columns in my lists and not having issues for text, user, or number columns, until I attempt to add a Choice Column. I have been trying different methods, but can't get it ...
0
votes
1answer
21 views

Upload javascript file to sharepoint online library saved in wrong format

I am trying to Upload a myfile.min.js to sharepoint online using JavaScript using JSOM but its stored as wrong encosing format var req = jQuery.ajax({ url: sourceFileItem + '?ver=' + ...
0
votes
1answer
28 views

“The collection has not been initialized” when doing ListItemCollection.getEnumerator()

I have been having a problem with Javascript and Sharepoint 2013. I have a number of custom list rows that contain date and time values. I want to determine if there are any overlapping date spans. ...
1
vote
0answers
28 views

How to Update/Set Field values by LookUpId in a sharepoint list?

I have a list called ResourceCheckList which contains following columns with lookup fields as below : Here Resource:ID is a lookup column which contains unique ID of another list. So, I want to ...
1
vote
1answer
21 views

SharePoint Online - Hidden site collections

We use Powershell with CSOM to remove and provision site collections in SharePoint Online during the development phase. We use the Powershell commands provided by the PnP team like this: ...
0
votes
0answers
10 views

Access List items from Provider Hosted App

I developed an App on SharePoint online using provider hosted model. From clientwebpart, I want to access SharePoint list item using CSOM. I've been stuck on this problem.
1
vote
2answers
48 views

Get Current User's Colleagues Using JSOM

Is there a way to retrieve the currently logged in user's colleagues' usernames? I found this which shows how to do it using server object model, but haven't found anything for JavaScript object ...
0
votes
0answers
19 views

Modify field description with jslink in new form

I have a list with a lot of questions. For each question I have added a code to the descriptionfield, where the first 10 characters is used to define a specific "characteristic". Basically each ...
1
vote
2answers
52 views

Get the list of all users from Sharepoint Online

I'm using CSOM .NET library to access Sharepoint data via ClientContext. Is there a way to get the list of all users (including users who don't belong to any group) from Sharepoint? If not, is there a ...
0
votes
1answer
45 views

JSOM Remote Access Office 365 Site

From a remote web app(plain ASP.NET), I am trying to read the data from an office365 SharePoint site using JSOM. I am using the following code var siteUrl = ...
0
votes
2answers
30 views

Client object model connect to site with different authentication enabled?

I have a site at SharePoint on-Premises which has both Form based authentication and windows authentication enabled. Users can login using either of them. Now, I try to use Client Object Model for an ...
1
vote
1answer
26 views

Problem when updating user profile property using SetSingleValueProfileProperty

I am writing a C# application where I have to update a user profile property. I am using the following code: using (var clientContext = new ClientContext(serverUrl)) { var peopleManager = new ...
0
votes
2answers
75 views

How to rename a folder via csom c# in SharePoint List?

How can I rename a folder in a list via CSOM (c#). I tried it with: var folder = ctx.Web.GetFolderByServerRelativeUrl(folderRelativeUrl); ctx.Load(folder); ctx.ExecuteQuery(); var folderItem = ...
0
votes
0answers
24 views

Sending E-Mails in On-Premises environments? (CSOM)

I'm working on an E-Mail function for a SharePoint 2013 provider-hosted App. The code I'm currently using: // Prepare the E-Mail parameters EmailProperties properties = new EmailProperties(); ...
1
vote
1answer
25 views

Set content type of document when uploading using client object model

I am trying to use the Client Object Model in SharePoint to upload a document to a specific library. Right now I have it saving the document but I can't figure out how to specify the content type ...
0
votes
1answer
23 views

Authenticate user with FormDigest via CSOM/REST

Our SharePoint 2013 farm is using Windows Authentication and exposed to the Internet. We have a webparts contains javascript AJAX call to another server with a different hostname. Intranet: ...
1
vote
0answers
28 views

SharePoint Online - custom ribbon tab on all pages

Is there a way to make custom tab available on all pages of SharePoint Online website? For SharePoint Farm solution you can register a Delegate Control and activate it on a server side like this: ...
0
votes
1answer
32 views

Sharepoint javascript object model, access denied error

I'm using JavaScript object model to retrieve data from a list located a root site. My code is as below: var clientContext; SP.SOD.executeFunc('sp.js', 'SP.ClientContext', ...
0
votes
0answers
38 views

Jquery Async call issue CSOM

I am creating a custom Navigation using Termstore value. I am getting all term using JSOM like that function getTermStores() { context = SP.ClientContext.get_current(); var taxSession = ...
1
vote
1answer
96 views

Upload list item attachment using JSOM

I am trying to upload list item attachment using the below code. There is no error in the code and all the variables are present with proper values but in uploadFile method it goes to error handler ...
0
votes
0answers
25 views

Cannot query SP.UserProfiles.PeopleManager from the App Web via REST

I'm testing REST results in the browser with mixed results. The following URL returns the expected result: ...
0
votes
0answers
23 views

Manipulating SharePoint UI over an IFrame to add missing clientside Features

I stumbled across a requirement where I had to change the RequestAccessMail via clientside code. This property is not available via CSOM or JSOM. Feature Request There are several people who asked if ...
1
vote
1answer
36 views

Fetch list item attachment by name

I am trying to write custom code for list item attachments. As it is not allowed to overwrite them, I will check if file already exists. If yes, will delete and then upload again. I found a method ...
1
vote
3answers
68 views

Getting List Column Order

I'm using the SharePoint 2013 JavaScript APIs, calling web.get_lists().getByTitle('ListTitle') and then list.get_fields() to create a custom search panel. However, the fields do not come back based on ...
2
votes
1answer
57 views

Get Parent term set id using JSOM

I want to get parent term set id in SharePoint online using term_parent.get_id(); in below code.I am getting all terms but unable to get parent term id.It is giving me error as Uncaught Error: ...
0
votes
1answer
53 views

Office 365 pre-provision my site issue with Powershell

I am creating personal sites using powershell csom. My issue is on below line $loader = [Microsoft.SharePoint.Client.UserProfiles.ProfileLoader]::GetProfileLoader($ctx) I get following error. ...
0
votes
0answers
27 views

Get\Set values from SharePoint 2013 custom fields

How Get\Set values from ListItem SharePoint 2013 custom fields using CSOM and C#?
0
votes
1answer
19 views

Retrieve users About Me (PersonImmersive.aspx) page from CSOM

Is it possible to retrieve the O365 About Me data (in PersonImmersive.aspx) via REST or CSOM ?
0
votes
1answer
22 views

Add list item only after workflow approval

Is there a way to restrict or hold the list item from adding into the list until it is approved? Once the user hits the save button from new user form, the workflow approval request starts and until ...