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

learn more… | top users | synonyms (1)

1
vote
1answer
24 views

Get the current version and level of listitem

I'm using a client script to retrieve listitem from a context. Everything works and load my item with and it's ok. myCtxtWeb.Load(item); myCtxtWeb.ExecuteQuery(); Now I'd like to know the versions ...
2
votes
1answer
20 views

Sharepoint provider hosted app Microsoft.SharePoint.Client.File.OpenBinaryDirect does not work

I am trying to do. Microsoft.SharePoint.Client.File.OpenBinaryDirect(context,relativeUrl) Always get "forbidden" and unauthorized. However If i use same context and url to do ...
0
votes
0answers
8 views

dispex SharePoint.OpenDocuments.3 works for PDF but not Office docs?

I have the folllowing in my XSL for a (SharePoint 2010) content query webpart: < A onfocus="OnLink(this)" HREF="{$ItemUrl}" onmousedown="return ...
1
vote
0answers
39 views

How do you properly write to a managed metadata column from JSOM? (SharePoint 2013)

I am trying to write the value of a managed metadata column across several documents in a document library at once using JSOM, but for some reason the way I'm trying only writes the value to the first ...
0
votes
2answers
27 views

JS ClientContext return undefine when deleteObject

I'm trying to delete a list item from a SharePoint library via JavaScript with ClientContext. Unfortunately I don't have access to the ID of the item that's why I use the Title and I can not delete ...
0
votes
1answer
16 views

Access SharePoint online using client object model- Forbidden error

I tried to Create a new list item using client object model. I have created an asp.net application to do the task. It works if I pass the URL of SharePoint server which is installed in my machine. But ...
1
vote
0answers
11 views

how to change programatically a date in a form library item?

I'm trying to change a date field in a form included in a form library (from a .net desktop app with sharepoint client runtime) but when I change it and open the form it crashes and says that is an ...
2
votes
1answer
30 views

Add file with comment sharepoint client object model

I use following code to add file to SharePoint library using client object model. Web web = context.Web; FileCreationInformation newFile = new FileCreationInformation(); ...
1
vote
1answer
35 views

Display loading/processing while processing using CSOM

My current implementation includes following, User adds an item, once saved it is redirected to the display form of the same item. I have implemented this requirement using below steps. On ...
0
votes
1answer
26 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 ...
2
votes
2answers
72 views

What are the advantages of using SP Services?

What advantages would I gain by using the SP Services library in SharePoint releases 2010 and later? The 2013 (and even the 2010) JavaScript Object Model and REST API seem to cover a significant ...
1
vote
2answers
67 views

Does ExecuteQuery have a cache/timeout/etc?

I wasn't sure how to phrase the title, forgive me. I'm running into an issue with the CSOM (SharePoint 2010, but likely in 2013 as well), where my initial ExecuteQuery() statement takes upwards of 20 ...
0
votes
0answers
46 views

Get the template File from an Infopath Library via Webservice

I am trying to create a new Document in an Infopath library in a SharePoint 2010 Server. It worked quite well when trying to do the job via WebPart (server side). var mySpSite = ...
1
vote
1answer
38 views

Copy files/folders between site collection and retaining metadata

I'm using SharePoint 2013 I need to copy files/folders/sub folders from one site collection to different site collection(basically archiving them). I need to do this remotely by using CSOM/JSOM. ...
2
votes
1answer
38 views

executeQueryAsync fail on Chrome

I am using SP.ClientContext (JS library) to update some item's fields. It is working fine on IE but on Chrome I get this error (displayed as alert): Request Failed, status code 0 text '' The ...
0
votes
1answer
20 views

Missing DLL msoidclil in Azure Web Site

I have an application that accesses and updates SP document libraries. Using SP 2013 COM, it works fine locally. When the code is deployed to and executed in an Azure web site, a file not found ...
0
votes
2answers
42 views

CAML query returns all items instead of one

I am querying a list to return only items matching a certain title, but the query returns all items. It seems I built or execute the query the wrong way: /* SP is an alias for ...
0
votes
1answer
47 views

What is the purpose of Microsoft.SharePoint.Runtime.dll in CSOM?

I know we need to use Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime dll's reference in .NET managed CSOM application development. But can someone help me understand why we have ...
0
votes
0answers
14 views

Sync desktop folder with document library folder

I am working on a client side application. Is there any way to sync a document library folder with a desktop folder with the following requirements? all files in the folder should be synced with ...
1
vote
3answers
159 views

Sharepoint- Client Object Model - Javascript - How to check if a particular file with same name exists in a document library folder

I am using javascript sharepoint 2013. I want to know how to check if a file exists in a folder, before i upload. Here's my code // Folder Name - folder into which I need to upload var ...
0
votes
1answer
16 views

Newly added files to document library client object model

I am developing an application which is will be deployed in the client machine. Client will be downloading the applications from SharePoint to local machine to a fixed folder(folder wont get ...
2
votes
1answer
31 views

How can I get a listing of all sites in my site collection using Client Object Model?

As the Site Collection Administrator, I don't have access to the servers to write server side code to get a listing of all sites in my site collection. I can write sandbox solutions in SP2010 to get a ...
0
votes
2answers
32 views

Get the field “Created”

I have a list "Consult", and I want get the field "Created" this is my code: function consultWorkOrder() { try { var customlist ; var clientContext = new ...
2
votes
2answers
52 views

Field or Property 'Url' does not exist

Can someone help me understand why I am unable to get the "Url" property from this example? I get the error "Field or Property 'Url' does not exist": ClientContext ctx = new ...
0
votes
1answer
54 views

SP2013 online : set_formDigestHandlingEnabled Error

I get the error : Object doesn't support property or method 'set_formDigestHandlingEnabled' when I try to get the current SPContext object from javascript code in an Office 365 site. I am ...
0
votes
1answer
38 views

Convert Person/User Group to String

I am retrieving a list that contains Persons and would like to convert them to String, and also be able to count how many users are per list. The Person is retrieved as an Object. How can I solve this ...
0
votes
2answers
106 views

get Library document URL using Javascript client object model

I am working with SP.js to get data from a SharePoint library. Below is the code i am using: var clientContext = new SP.ClientContext(); var oList = ...
2
votes
0answers
28 views

Client WebPart (apppart), I need to explain some settings

Property element <Property xmlns="http://schemas.microsoft.com/sharepoint/" Name="Text" DefaultValue="Text" Multilingual= "true" | "false" PersonalizationScope="user" | "shared" ...
1
vote
1answer
107 views

how to use the gridview in SharePoint 2013 Hosted App

I want know how to use the grid view in a SharePoint-hosted App. Can any one provide information on this?
0
votes
0answers
41 views

Update a rating scale field of survey list using JavaScript

I have created a survey list which has 3 columns. One column is of type rating scale with value 1-5 . Using JavaScript I'm able to update the first two columns. But not able to do so for the rating ...
0
votes
0answers
46 views

SharePoint Online and execute query async

The code below is running in a Silverlight XAP which is using the SharePoint Silverlight client object model. The application logical flow is the following: first, a file is uploaded in extension ...
3
votes
1answer
36 views

change NavigateForFormsPages value to true using CSOM

I'm searching for a way to change NavigateForFormsPages property using CSOM but no luck till now. Anyone has idea to do it using CSOM
0
votes
1answer
43 views

Date functions with $select in REST API

I'm using the following REST call to get the data. Here is the url structure: SiteURL+'/_api/web/lists/GetByTitle(\''ListTitle+'\')/items?$select=AlternateThumbnailUrl,Title,Created this is ...
0
votes
0answers
29 views

Extracting blog posts with images using Client Object Model

I'm extracting blog posts from SharePoint 2010 with the managed client object model in order to migrate the data onto another platform. I can get both pictures and posts from the blog but I can't find ...
1
vote
4answers
233 views

Check user existence on SharePoint

I deleted a user in Users and groups management of Office 365. But his information is still in Site Collection's All users. How can I check if a user was deleted or not? Using Client Object Model.
0
votes
0answers
24 views

Batch retrieve document information via c#

Note: Using Microsoft.SharePoint.Client Greetings folks, I've written a system for automatically updating some tools we use (tools are excel workbooks, but immaterial to discussion). Part of this ...
0
votes
2answers
75 views

Jquery to display date in MM/DD/YYY in sharepoint client object model [closed]

In My sharepoint list i have a Duedate if type DateTime.Using Client object model when we fetch the value from this Field, it is displayed in the below format(Mon Jun 23 GMT+0530 2014).How to convert ...
0
votes
2answers
74 views

Delete column from list using Client Object Model

Developing for SharePoint Online, I've created a Contact List programmatically in my app. I now want to delete some of the columns that were added to the list. So I have the following code: var ...
1
vote
0answers
161 views

CSOM caml query list view lookup threshold

I have a list with about 15 managed metadata columns in it. Now I want to query that list using CSOM. I don't want to retrieve all the columns values so I limited the column values retrieved by using ...
0
votes
2answers
88 views

Load more list items on scroll

I am showing the first 5 list items on the page (in one div). Div has vertical scroll bar. I want to show the remaining 5 items on when scroll goes down end. I am using CSOM to fetch list items. Any ...
0
votes
1answer
212 views

CSOM Javascript - when executing query on multiple lists getting error - SharePoint 2010

Is here any SharePoint expert, who can help me find out, why I am getting error on lists queries? I am trying to fetch data from multiple list asynchronously, but I am getting following error: The ...
0
votes
1answer
84 views

Create Custom Content Type using Client Object Model

I need to create custom content type from a given guid for a SharePoint site using Client Object Model. However, in the constructor of ContentTypeId ctid = new ContentTypeId() there is no facility ...
0
votes
1answer
57 views

Unable to add .exe file to SharePoint 2010 using Client Object model after it has been removed from blocked files list

Language: C# Framework: .Net 4.5.1 Environment: SharePoint 2010 - Windows Server 2008 R2 My software is used to upload files to sharepoint. It works perfectly well for the majority of files. However, ...
1
vote
2answers
239 views

JS CSOM to redirect to another SharePoint URL

I have an application page which takes some inputs for list creation. Based on these inputs, i am using JavaScript Client Object model to create a new list. Once the list is created a notification ...
0
votes
2answers
81 views

Get SP.ListTemplateType enum value using JSOM

I am trying to create a new list (based on a dropdown menu selection) using JavaScript Client Side Object Model. var typeList = "SP.ListTemplateType." +listTemplateType; ...
0
votes
2answers
80 views

Javascript Client Object Model Update List Items (only some items updating)

I am using a JavaScript button to set a Field-2 on each selected list item from "false" to "true". It first checks if Field-1 is empty, and if it is, sets Field-2 to true. The relevant code is as ...
0
votes
2answers
52 views

Fetch user profile service in object model

How to call user profile service in client object model (ECMA)? I need to fetch department ID or name of current logged in user in Sharepoint 2010.
1
vote
1answer
89 views

Appove ListItem using Javascript in Office365

I'm trying to approve selected items from a list by pressing a custom button in the Ribbon. I can get the selected items. I can get the fields of the selected items. I can even update those fields. ...
0
votes
2answers
112 views

Compare current user login name with four custom sharepoint list 2010?

I have 4 custom list (test A, Test B, Test c,test D). I need to find current user login belongs to which list in sharepoint. if current user belongs to Test b list i need to show pop up "U belong to ...
0
votes
1answer
208 views

Get all files under subfolder in Shared Documents list - SP Object Model

I am trying to get all files in a subfolder, in the Document Library "Shared Documents" in SP 2010. So the structure looks like http://sp2010site/sitename/shared documents/folder1/ ...