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

learn more… | top users | synonyms (1)

0
votes
1answer
36 views

JSOM context newly created id reference when creating more than one item

I am using the COM JavaScript/jQuery to get, create & update some list items. I have two lists and every time I create a new item in one list, the newly created id is something that I want to grab ...
0
votes
1answer
29 views

Client Object Model: How to get the credentials for windows authentication?

In my .Net application I am using Windows Authentication. I need to save a document to SharePoint, and to do this I need to use the Client Object Model with the Microsoft.Sharepoint.Client namespace. ...
1
vote
1answer
21 views

Use GroupBy on ListItemCollection using CSOM

I am trying to do a GroupBy on a bunch of items that I have retrieved using CSOM and when I try do a foreach loop to go through them I get method not supported exception. List contactsList = ...
3
votes
0answers
38 views

Get Library and Folder from document guid (C#)

Information given I am using version 16.0.0.0 of the Microsoft.SharePoint.Client library. There are several different document libraries in the SharePoint site. In code, we are given a list of ...
1
vote
2answers
231 views

How to set field type choice using csom (c#)

I have a field type: Choice (menu to choose from) which is not multichoice. How do I set a value? I have found code for multiple choice but it doesn't seem to work for single choice.
0
votes
3answers
161 views

get current user info using jquery ,REST and com

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: ...
0
votes
1answer
27 views

ReferenceError: itemID is not defined (JavaScript)

I'm trying to grab data from an external list using ecmascript. I'm running into a slight problem. I'm not getting an error popup, however, in debugger mode it's referencing the above error message ...
0
votes
1answer
22 views

How to determine authenticated status on client side?

Do you know any syncronous way to get IsAuthenticated status for currentRequest in client side via javascript? I can get current user via client model, but it will be asynchronous. ...
1
vote
2answers
51 views

Refresh sharepoint parent modal dialog on closing child popup

I have a button in a modal popup, on clicking that button another modal popup opens on top of that. Now I want to refresh the containing page of parent modal dialog on closing child popup. my code ...
0
votes
1answer
26 views

Client object model: orderby in camlquery doesn't work

I have a list on SharePoint 2010: (only showing the first item) How can i get that list alphabeticly? I use a camlquery to try this but it doesn't work. I do get the list but it is in a random ...
1
vote
1answer
49 views

Proper way to call multiple functions using SP.SOD.executeFunc

I need to make sure sp.js is loaded before I call several functions. I currently call them as follows in SP 2013. It works, but I suspect there is a better/more efficient way. ...
0
votes
2answers
40 views

How to get all subsites using ClientContext Object in SP 2010

I need to find all the subsites of particular sites and fill the drop down using ClientContext Object
0
votes
1answer
22 views

How to fill drop down dynamically using ClientContext object in sharepoint 2010

I need to fill the dropdown from the sharepoint list using ClientContext object.
0
votes
1answer
35 views

An error “The remote server returned an error: (403) Forbidden.” [duplicate]

Below is the code and I am getting error in context.ExecuteQuery(); using (ClientContext clientContext = new ClientContext(url)) { NetworkCredential credentials = new ...
0
votes
2answers
85 views

Loading image freezing with Javascript Object Model and jQuery Promises

I have some code using the javascript object model to get items for several dropdown boxes on a form. I also heard that using Promises was the way to go for speeding up things and created 2 wrapper ...
0
votes
1answer
45 views

JSLink Client-side rendering

I need to render some fields client-side, I followed this guide: Client-side rendering but this code is not working: (function () { // Create object that have the context information about the ...
0
votes
0answers
28 views

Run MVC App with Sharepoint as backend for Document Storage

My company has a small sharepoint site that we're hosting. We are almost exclusively using it for document storage, and we don't have very many documents. At the same time, we are developing an MVC ...
0
votes
0answers
26 views

Upload/ download multiple documents to library It need to upload in each folder for an ID…

I need to upload multiple document form .net Aspx page to SharePoint document library. In .net having a multiple record, For Each record having the Multiple file upload option having different ...
0
votes
0answers
46 views

Document Set created using SPServices shown as folder in WelcomePageView

After creating Document Set programatically using jQuery SPServices, if i click on Document Set Name it showing AllItems.aspx page instead of default docsethomepage. I checked in the Welcomepage view ...
0
votes
0answers
21 views

Remote access development

I'm relatively new and have tried to search posts regarding this problem but I'm not sure whether I'm hitting the right sites. The scenario is this. I have a sharepoint 2013 installed on ...
0
votes
1answer
74 views

Getting fully qualified FieldUserValue instead of actual user name from SharePoint

I'm working on my first C# program, and it's a pretty simple program that uses a view of a SharePoint page to go through and delete things that are older than 5 days on that page. Before deleting the ...
0
votes
1answer
46 views

CAML Query works in U2U CAML Query Builder, but not SharePoint

I built a CAML query using U2U CAML Query Builder and it works when I execute it in the builder, but when I go to JSOM in SharePoint, I get the entire list and none of the filters from the query work. ...
0
votes
1answer
34 views

why all documents are imported in check out

I've an issue with an import of documents in client object model. My import run correctly an imported my documents not check out and after 12h, every documents arrive check out. I changed nothing in ...
0
votes
0answers
32 views

How to fetch 'nth ' items from a SharePoint List one by one through Client Object Model in SharePoint Online

I want to fetch nth Item from a SharePoint List from a SharePoint Online (Office 365) site and then compare it with the other Items of the SharePoint List. I am doing the following code. Can anyone ...
1
vote
1answer
103 views

An unhandled exception of type 'System.Net.WebException' occurred in Microsoft.SharePoint.Client.dll

I try to access SharePoint list from a console app in .NET. My environment doesn't have SharePoint installed one and I write code in VS 2013. I want to access SharePoint 2013 list data. When I run my ...
1
vote
2answers
63 views

Reference problem when trying to replace a master page file while keeping the original in CSOM

I have some logic that does some custom file provisioning in CSOM. It basically tries to upload various files located on a provided-hosted (Azure) site to mapped locations in the Sharepoint host site ...
1
vote
2answers
71 views

Attach file in CustomList Item using Sharepoint.Client object

Hi is there a way to attach file in specific Custom list item? Currently i tried to add files on the root folder using below code: using (ClientContext context = new ...
1
vote
1answer
13 views

SharePoint integration outside farm

Can someone provide me an overview of the possible ways of interaction with SharePoint from an external source. For example add items to a list from an application not running in the farm. In a farm ...
1
vote
1answer
28 views

Guess SharePoint version based on connection parameters

My client application uses the SharePoint Client Object Model against SharePoint 2010 and 2013. I would now like to add support for SharePoint Online. Users of my application specify the 'Url' to ...
1
vote
2answers
107 views

Get list default view url in SharePoint JSOM Client Object Model

I have simple JSOM script to get all the list and it's default view url but i am not getting default view url property var context; var lists; // This code runs when the DOM is ready and creates a ...
0
votes
2answers
44 views

How are Deferreds different from callbacks

I have following piece of SharePoint JavaScript client object code which works perfectly without throwing any error. $(document).ready(function () { //don't exectute any jsom until sp.js ...
0
votes
0answers
34 views

N number of call for /_vti_bin/client.svc/ProcessQuery

I have on application page which will display data from list. For that I have write client object model code which is as follow: var PageList = _spPageContextInfo.siteAbsoluteUrl + '/xxxx'; ...
1
vote
1answer
119 views

Field names in announcement list in Sharepoint Online

I am trying to add fields to an announcement list. I have successfully added various fields with single-word names: announcementy.Fields.AddFieldAsXml("<Field Type='User' ...
1
vote
1answer
88 views

How to write a WCF Service for SharePoint 2013 hosted App?

I've deployed a WCF Service in SharePoint. I am able to retrieve data from it using URL: http://nit-hv8-itr4:1111/_vti_bin/PresidentsService.svc/GetAllPresidents The problem occurs when I try to ...
1
vote
1answer
78 views

Issue in REST call

I have two methods which will be call on bashed on condition Code: //Method to add item in TT items list. function addTTItemsList(url, listname, itemTitle, columnOrder, rowOrder, listName, ...
1
vote
1answer
197 views

O365: Unable to get property 'get current' of undefined or null reference

I'm on SP2013 in an O365 environment. I am trying to pull some data from a list and render that data using the Google charts API. I am doing this in a content editor web part that points to an HTML ...
0
votes
1answer
71 views

vb.net client object model: get wikipagelibrarytitle/list by url

I am using the .net client object model for SharePoint 2010. I am able to create a new wiki page in my wikipagelibrary using the following method: Dim wikiLibrary = ...
0
votes
1answer
64 views

Modifying folder contenttypeid via REST

I have a library where a customized SPFolder content type is defined. When I use the following code in generating the folder I'm perfectly able in creating one. However, I seem to be unable in using ...
0
votes
1answer
90 views

CSOM get items from subsite

I want to be able to retrieve items from a subsite. I've found some code which works but only on the current site. <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(MainFunction, ...
0
votes
0answers
50 views

Using the client obeject model getting the multiple lines of text field append changes to the same text

I have a SharePoint List in site. It has a custom list. I added a new field with type 'Multiple lines of Text' and in Additional Column Setting section selected 'Append Changes to the existing ...
0
votes
1answer
28 views

Overide Core.js Options?

What is the best way to be able to manipulate objects in the DOM using JQuery/JavaScript, specifically in an InfoPath browser enabled form in SharePoint 2010? If I try to grab a value from an input ...
0
votes
1answer
63 views

Get ctx based on list GUID

I want to get list ctx based on GUID. My requirement is to develop a context menu security webpart. I want to display the list/library context menu items in my application page which is user ...
1
vote
1answer
125 views

SP2010: Client object model: add new wikipage to document library

Is it possible to create a new wiki page using the client object model and give it some content ("<h1>Welcome to the SharePoint!</h1>")? I'm using VB.Net
0
votes
1answer
42 views

Deleting a single item from RecycleBin gives error “operation is not valid due to the current state of the object.”

I have below code , but it gives mentioned error on ExecuteQuery() after item.DeleteObject(). Site collSite1 = _ctx1.Site; RecycleBinItemCollection collRBI1 = collSite1.RecycleBin; ...
0
votes
0answers
125 views

Attach file to list item in SharePoint 2013 Sandboxed solution

I have developed a visual webpart in Sandboxed solution for SharePoint 2013/Online. I am trying to add an attachment to list item at the time of creating the item using Client Object Model. I have ...
0
votes
0answers
22 views

How to retrieve users from “list permissions users” of any LIST in SharePoint 2010 Client Object Model?

These code is giving me all users of the site, but need to get Users that are in List Permissions of any LIST (not Library) i.e of Project Task or Custom List. Thank you Web web = _ctx.Web; List ...
0
votes
0answers
231 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 ...
1
vote
1answer
118 views

vb.net com: get list by url

Is it possible to get a list by url? Something like this. Dim list As SP.List = ctx.Web.Lists.GetByURL("site") If that isn't possible, is it possible to get the guId by using the page id?
3
votes
2answers
60 views

XsltListViewWebPart and custom link column

I have a XsltListViewWebPart with a custom link column used for change a value on current listitem using JavaScript. <a href="javascript:ApproveRejectRDA('{@ID}', true);" title="approve"> ...
0
votes
1answer
65 views

Trying to get lookup (Title) value, but returns null only in Client Object Model

I have this query: <View> <ViewFields> <FieldRef Name='Title' /> <FieldRef Name='itlgCategoria'/> ...