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

learn more… | top users | synonyms

0
votes
0answers
13 views

Default Service account in SharePoint

What does the default service account property means in the SharePoint farm? Also, what is the difference between default service account and farm administrator account, if both are different? I'm ...
3
votes
2answers
892 views

Set request access email address through CSOM

In the server side object model it's possible to set the request access email address through the property SPWeb.RequestAccessEmail (MSDN). Since we are moving our SharePoint tenant to Office365 I'm ...
0
votes
1answer
1k views

SPServices - GetRolesAndPermissionsForCurrentUser

I have a list where one group of users is not allowed to delete items but they have view and edit permissions. All items in the list contain an attachment. However, users are not allowed to delete the ...
1
vote
1answer
1k views

Access ListItem.Properties from Javascript COM

Is there a possibility to access the ListItem.Properties from the Javascript COM? All I'm seeing is the possibility to read all Fields. There also is the funny [SP.ListItem.LoadExpandoFields()][1], ...
0
votes
2answers
730 views

Import bulk data (over 5000 List Items) into SharePoint

I have an Microsoft Office 2010 AddIn which imports Data into SharePoint. The tool creates a Dictionary with over 5000 Values. Every Value is a C#-Class with Data and represents a SharePoint List ...
0
votes
1answer
5k views

Get document library folder & files via client object model

I have a SharePoint Library and I want to traverse all folders, sub folders and files of it using client object model. How can this be done?
4
votes
1answer
692 views

SharePoint 2013: Using JSOM, get a list of all sites user has access too

I was looking at the JSOM documentation, but couldn't find a nice way to spin through all site collection and sites to show a user what they have read access to. Is this possible using JSOM and a ...
2
votes
0answers
67 views

Use a colleagues' browser settings to detect their time zone and update the date format and time to reflect the time in their time zone

In the Events web part, the date displayed should reflect the date for the event based on the user’s time zone. Can this be achieved by client side This is the sample events webpart: I have till ...
0
votes
1answer
419 views

Taxonomy control in SharePoint hosted app

I am creating an SharePoint hosted app. In that I have to use Managed MataData from my list. In this I am getting the Metadata from my list column to my Taxonomy control. I have find some post but I ...
2
votes
2answers
477 views

Setting SPWeb.AlternateCssUrl via CSOM or JS

According to this Microsoft Office 365 Blog post the SharePoint CSOM (.Net, REST, JS) has been enhanced to support setting SPWeb.AlternateCssUrl: ...
0
votes
0answers
10 views

Set client side choice field to stored value via JSOM

I am using Angular on top of SharePoint for an application. One of the fields I have is a choice column. I am able to get the values and store them in SharePoint/accessible via REST in my create form, ...
4
votes
4answers
4k views

Sharepoint 2013 Client Object Model file larger than 2 Mb exception

I am new to Sharepoint and Client Object model. I am stuck with a problem and not been able to fix the issue. I want to upload files more than 10 MB using Client Object Model in Sharepoint 2013. I get ...
0
votes
1answer
661 views

How to create a new document from a Document Template using Client Object Model

I require to programatically create a new document using the Document Template URL of the document Library and this requires to be done using the Client Object Model. I also require to do this without ...
0
votes
1answer
99 views

this.get_context is not a function when call getMyProperties

When I call the code below: script type="text/javascript" src="/_layouts/15/SP.js" /script script type="text/javascript" src="/_layouts/15/SP.UserProfiles.js" /script script type="text/javascript" ...
4
votes
1answer
2k views

System.ServiceModel.ServiceActivationException “A relative URI cannot be created because the 'uriString' parameter represents an absolute”

The client object model code in my application is throwing the following exception. How to solve it?. System.ServiceModel.ServiceActivationException: The service '/_vti_bin/client.svc' cannot be ...
0
votes
0answers
7 views

The given key was not present in the dictionary while adding RoleAssignment To Group

My snippet should get a Group from a production SC and copy it to Test(same) SC. Until this point, everything works like a charm, group is created, Owner set and People copied to the with no ...
1
vote
4answers
536 views

Get List by “InternalName”

I'm trying to use the SharePoint 2013 JavaScript Object Model to retrieve a List via an internal name equivalent. SPList doesn't have a Name or Internal Name property. It is referred to by the ...
0
votes
2answers
24 views

ListItem.get_id() return “-1” after adding value in custom list

I am trying to add value in custom list of SharePoint using COM and Javascript. Code work file but i can't see any item added in list. also i got id of recently added item is "-1" This is my code. ...
1
vote
1answer
2k views

set multiselect lookup column using jquery

I have a Multi select Look up column which as you all know is a control with two list boxes and "Add or Remove" Buttons. The user populates the right-hand side of the control with some values by ...
1
vote
1answer
518 views

how to update properties of item in doc set with client object model

I've been able to create doc sets and upload files to it with the client object model. I am having difficulty updating the properties of the files in the doc sets. Here is what I've tried: public ...
0
votes
1answer
549 views

Exception calling “ExecuteQuery” with “0” argument(s): "The remote server returned an error: (400) Bad Request. CSOM SP13

I'm trying to add a page to my search centre in sharepoint 2013. Trying out cSOM too. Here is my code, I am getting a bug Exception calling "ExecuteQuery" with "0" argument(s): "The remote server ...
0
votes
1answer
688 views

Cannot invoke HTTP DAV request. There is a pending query during OpenBinaryDirect

I've to move some items from one document library to an other one in a different site. I use object client model to do this My issue is having an exception while i'm trying to open the file and here ...
2
votes
2answers
604 views

How do I enable Intellisense sp.js in VS 2012. TILT

No matter what I try, I keep on getting the yellow triangles with the message "Intellisense was unable to colmplete an accurate...". For example when I type "SP." then among others ClientConetext does ...
0
votes
1answer
123 views

Install app from SharePoint store via client object model

I'm looking for a way, how I can install app from SharePoint store to my site in Office 365 using Client Object Model. In Object model I found method Web.LoadAndInstallApp. It work if I put app from ...
0
votes
0answers
8 views

How to connect to ping federate site(sharePoint 2010 sites) from a tool which runs on windows machine?

We need to sync two sites. One is intranet SharePoint 2010 site and other is external SharePoint 2010 site. The external site uses pingfederate authentication. We need to run a tool to synchronise ...
1
vote
3answers
864 views

How to create List and libraries with CustomSchemaXml property using SchemaXml with CSOM in sharePoint online2010?

How to create List and libraries with CustomSchemaXml property using SchemaXml with CSOM in sharePoint online2010???? I am using following Code... // Create new list for restore List Item from List ...
0
votes
2answers
20 views

Get SharePoint List data & Bind to Gridview by Client Script

I need to get data from SharePoint List using Client Script (JavaScript) and bind same data to GridView using Client Script (JavaScript, JQuery, etc...) kindly suggest me on this.
0
votes
0answers
19 views

How to get Groups RoleAssignments with COM

I'm trying to retrieve Roles Assignments and SPRoleDefinitionBindingCollection from a Group .Probably, I'm using the wrong method to that. The RoleAssignment groupRoleAssignments = ...
1
vote
2answers
943 views

Create a document in SharePoint Online using CSOM

I need to create several documents in my SharePoint Online library. I am using the following code to upload an existing file to a library: ctx.Load(ctx.Web.Folders); ...
1
vote
2answers
801 views

Get userProfile mail by SP.FieldUserValue

What I want Simply - the user's profile information to obtain the mail adress. What I have A SP.FieldUserValue object filled with the user which mail I want to obtain. Approach MailContact: ...
1
vote
0answers
31 views

How to load Group.Owner properties using CSOM

When I try to load owner = TargetSite.Web.EnsureUser(grp.Owner.LoginName); I got the exception : The property or field has not been initialized. It has not been requested or the ...
0
votes
1answer
2k views

How to upload a file attachment to a new list item using Sharepoint Online remotely

I need to upload a file to a new list item in Sharepoint Online from a clientapp. The list exists allready, but I create new list items and tried to upload file as attachements. I tried it over CSOM, ...
0
votes
1answer
971 views

Get a Content Type by Name (Title) using CSOM

I am applying a temporary fix to some CSOM code whilst a more permanent fix is given to me hence I want to create the equivalent of ctx.Web.Lists.GetByTitle("Contoso ...
1
vote
1answer
507 views

How to get server datetime without postback using JSOM or services

My application page may be long time without reloading, and user changed system date and time. And I need to know datetime from server, not from client.
4
votes
1answer
1k views

How to get a client context for App in provider-hosted Apps?

I use a provider hosted Apps, so need to work with an App Web and Lists. Could anybody provide a code snippet to get ClientContext() of the App? Can I do something like this? Uri appWeb = new ...
0
votes
1answer
592 views

502 DNS lookup failed error when using SharePoint 2013 CSOM

I am facing an issue while using CSOM in SharePoint 2013. I have configured an alternate access mapping for our site to run on http://mycustomdoamin.net/ The site is running fine and I am able to see ...
0
votes
1answer
1k views

Client Context executeQuery() works in console app but returns null object when executed from CRM Server

I have the function GetDocumentLibrary which must return a libray from sharepoint site. When I execute it from a Visual Studio Console Application it works and return the library with all ...
4
votes
1answer
506 views

SharePoint and Javascript - Get content types for list

I have been using the JSOM with SharePoint 2013 and am trying to get the content types of a list to iterate through, and am having no luck. First, while the success handler is being reached, the ...
0
votes
1answer
33 views

Activate Cross-Site Publishing with CSOM

We are currently evaluating on how to enable/configure Cross-Site Publishing with the usage of CSOM. When using Server Side Object Model (SSOM) the documentation recommends to use the ...
0
votes
1answer
14 views

Creating custom content organizer rule using Client Object Model in Sharepoint 2013

Can we create custom content organizer rules using Client Object Model in Sharepoint 2013? If no, then what way of doing it should be followed?
0
votes
0answers
10 views

Client Object model does return all Groups

I'm trying to build a Client App The retrieve all groups By client O M .But I notice that it doesn't return all groups into my site. I have tried build the same code Server Side on Machine server ...
1
vote
1answer
342 views

How to get the distinct values from sharepoint list using GetListItem and bind to dropdown?

I am Passing the XML for getting List item and binding to dropdown. Here i have shown the code.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
1
vote
1answer
499 views

Retrieve Multi-line Text Field with Append Changes in CSOM (Javascript)

I have been looking for an answer to this question all morning and i cannot find anything to point me in the right direction. We have several customizations to a SharePoint page which displays list ...
4
votes
3answers
962 views

Get webpart's Zone Id via CSOM

How to get Web Part Zone Id via CSOM? WebPart has property ZoneIndex but no ZoneId while WebPartDefinition has method MoveWebPartTo(string zoneID, int zoneIndex) but lacks methods to retrieve the ...
1
vote
2answers
580 views

Sharepoint 2013 publishing page creation using Client Object Model

I am using SharePoint 2013. Is there any way I can programmatically create a page using ONLY th Client Object Model? Also notice that the page should be editable for further use.
2
votes
3answers
5k views

get current user info using jquery ,REST and csom

My goal is to get the login name and picture for the current user. I am using SharePoint 2013 Foundation. I tried three method and non of then worked correctly: This is with jQuery SPServices: ...
5
votes
3answers
4k views

How to enable publishing feature using CSOM?

How to enable site collection publishing infrastructure and site publishing features using CSOM?
0
votes
3answers
167 views

Stop workflow associated to a list via JSOM

I want to stop a workflow when user clicks on the Cancel request button. To achieve this I am trying with the JSOM code. My code as follows SP.SOD.executeOrDelayUntilScriptLoaded(function(){ ...
1
vote
1answer
29 views

Client Object Model RoleDefinitionBindingCollection.Remove not working

I'm using the Client Object Model and trying to remove a specific RoleDefinition from a RoleDefinitionBindingCollection in a RoleAssignment. This is the code I'm using: Web web = context.Web; ...
1
vote
2answers
717 views

How do I get the URLs of files attached to items in my list?

I'm using the CSOM to get my SharePoint list. I need to loop through it and get the URLs for the files attached to each item in the list. C#: SPContext spctx = new SPContext("news"); List news = ...