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

learn more… | top users | synonyms (1)

1
vote
1answer
219 views

How do I set a SharePoint Document Library path to the Setting page in a C# Windows Application?

I have a Windows Application for scanning the document and store that document to a SharePoint document library. When I'm finished scanning, I want to select the SharePoint document library path in ...
0
votes
0answers
61 views

field 'choices' not initialized not requested

Hi im using the following code to get choices of a Choice site column. some times Im getting 'Chices' not initialized error in console. var searchtaxonomy_context = SP.ClientContext.get_current(); ...
0
votes
1answer
3k views

How to use SharePoint 2013 search keyword query refiners and refinementfilters?

I m working on requirement where I need to write a client side managed code in C# to pull search results based on the free text query and then should be able to refine the result based on the Keyword ...
1
vote
1answer
862 views

Lookup field value in CAML, Client Object Model

I am using the .NET Client Object Model from a website to access data in a SharePoint list. One of the fields I am trying to access is a lookup field. How do I get the text for the lookup field using ...
0
votes
2answers
109 views

Can't read Start or End Times with Client Object Model from Calendar in SP 2013

I have some experience using the SharePoint Client Object Model to retrieve text fields and URLs/images from lists in SP 2013. I'm currently trying to do something similar with a calendar. I have been ...
1
vote
2answers
248 views

Javascript Object Model; possible to return whether item has permissions under inheritence or not?

So if I am using the COM/JSOM, and normal GetListItem, can is there something I can add to the Include method, that will allow me to see if the item returned has permissions under default inheritance ...
0
votes
0answers
82 views

Filter SharePoint documents based on a Tag filter using the Client Object Model

I am successfully fetching SharePoint documents using a CAML query via the Client Object Model. I would now like to add list of tags as a filter to this query, so that only documents tagged with ...
0
votes
1answer
588 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
697 views

SharePoint 2013 - How to add an action to a Callout

I want to add a custom action on the default Callout for Document Libraries. The only instructions I could find on this subject show how to override the entire FooterTemplate on an existing Callout ...
0
votes
1answer
73 views

Client Object Model, wait for a list to load

I'm writing some javascript that modifies a SharePoint list, I've added it to the page using JSLink. Sometimes the script fails because the list appears not to have fully loaded. If I add an alert ...
0
votes
0answers
153 views

SharePoint 2013 custom TimerJob gets no results from list but same code as a console program returns results

Can anyone provide any ideas on why the below query returns nothing when inside a custom timer job. But when run from a console program it returns results. Note, both console program and OWSTimer.exe ...
0
votes
1answer
376 views

How do programmatically store the sharepoint document library document to local machine?

i have one question. How do pro-grammatically store the sharepoint document library document(eg Image.png) to local machine(D:/Images)?? Anybody have a solution???
1
vote
0answers
85 views

Add an app from the corporate catalog using client object model

I want to install an app that is in my corporate catalog using the client object model. I've found that I can install an app when I have the app locally. I'm then able to load it in as a stream and ...
1
vote
0answers
129 views

While creating folder in sharepoint using C# takes much time

Yesterday I have programmed to create folder in SharePoint 2010 using C#. It's fine that code create folder but the problem is that while creating a folder it takes 5-10 seconds. And i think it's too ...
0
votes
0answers
248 views

Update/Save list item edits without closing editform

I am working with a customised list 'editform' and would like to give my users the ability to save their edits without the editform closing, which is the default SP 'Save' behaviour. I have linked ...
1
vote
1answer
2k views

How to get the return username using javascript? [duplicate]

I am trying to store the username return by the variable username using the code below, but it seems nothing is returned (Username:undefined pops up), may somebody advise how to make it works? var ...
0
votes
1answer
121 views

How to dynamically load js file in master page based on aspx page loaded?

I have include all the link to my javascript file in my master page using tag. Can I load specific js file according to pages loaded? (for example, I would like to load home.js only when Home.aspx is ...
2
votes
2answers
1k views

How to get all the web application of SharePoint.

How do I get url of all the web application created in SharePoint 2010 with client object model using C#.
3
votes
5answers
3k views

SP.ClientContext is always “undefined” in JSLink functions

I'm trying to execute CSOM functions as part of a JSLink extension to override rendering of a Lookup Field. Problem is every time I try to access SP.ClientContext it returns as undefined I have ...
1
vote
1answer
2k views

Properties when uploading Files using REST in SP 2013

After a lot of research I finally got uploads via REST working in SharePoint 2013. But I would like to provide additional properties to the Add Function like Title. This code works so far but the only ...
0
votes
0answers
165 views

Programatically getting SharePoint 2013 document uploader destination folder structure

I want to add documents to my document library folders programatically. I don't know how to get the destination folder structure to upload documents to SharePoint. How do I get destination folder ...
2
votes
1answer
228 views

CAML Query Custom Ordering

I have looked around a bit, but have not found any reference to this particular issue. Is it possible to specify a custom ordering in a CAML query? What I mean by this is, say I have a list with a ...
3
votes
1answer
181 views

JavaScript CSOM. Is It Possible to Change Language for the SP.ClientContext?

I want to find a way to force CSOM to always return values in en-us (1033 locale). For instance, when I'm trying to get ContentType Name using ContentType.get_name() I end up getting different results ...
2
votes
3answers
2k views

List API get all items limited to 100 rows

When doing a GET call to the List API from JavaScript: "/_api/web/lists/GetByTitle('ListName')/items" the results returned are limited to 100 rows. Is there any way to return more rows in the result, ...
0
votes
0answers
15 views

Uploading a document manually to a SharePoint document library using Jquery [duplicate]

I have been searching for a way to upload a document manually to a SharePoint document library using Jquery. i have done it in C#, but i want to do the same in Jquery. Still i couldn't find the way, ...
0
votes
0answers
187 views

Modify list item field using javascript?

I'm trying to implement some Move Up and Move Down hyperlinks in a list so that, for example, pressing move up moves the item one place up in the list. I have tried giving the list an order column ...
1
vote
1answer
2k views

Convert Image src to base64 [closed]

I am working on Sharepoint 2010, I have create one custom button. when user select any row from list and click on custom button then I have fetch one multiple line column html in one variable name ...
0
votes
0answers
61 views

SBS Silverlight Webpart Gets List Items, how can I send results to div on the page

So I have a Silverlight web part and instead of internally drilling down by changing the contents, I would like to query a list for the top 5 results (simple and down using COM), but make each result ...
1
vote
0answers
79 views

Sharepoint 2010 - get List IRM properties with client object model

This link here shows you how to get the IRM properties of a list with the sharepoint sdk: ...
0
votes
0answers
104 views

How to retrieve user Quicklinks from MySite with CSOM?

this is my first post on SharePoint StackExchange. Is there a way to retrieve current user Quicklinks and show it on the Startsite with CSOM? In this example, the link below "Edit Links" in the Left ...
0
votes
2answers
959 views

Creating site using javascript object model error: The request uses too many resources

I'm trying to create a site in my sharepoint hosted app using the javascript client object model in a SharePoint online site. I use a custom template when creating the site. This is my code: var ...
0
votes
1answer
168 views

Cannot add aspx file to root folder

Using the Object Model and I'm trying to add a file to the root folder of a document library. The file is an aspx page which links to a file handler control we have. The problem I am running into is ...
1
vote
1answer
104 views

Create external users using CSOM

Does anyone know if it's possible to invite external users with the client object model or is this only possible in the UI?
4
votes
2answers
3k views

Format Date using Javascript Object Model

I am using the javascript object model to get a date field back and display it on a page e.g. oListItem.get_item("MyTestDate") This displays on the page by default as: Thu Jul 25 09:30:07 PDT 2013 I ...
0
votes
1answer
69 views

NotSupportedException caught when trying to create library based on custom template

I am trying to create a library based on custom template type using the following code: using (ClientContext context = new ClientContext(@"http://website.network/sitecollection/site/")) { ...
2
votes
1answer
419 views

Mocking Client Object Model's ClientContext with Moles

I've been tasked with writing a small C# tool to fetch and fiddle with some Sharepoint 2010 items using the Sharepoint Client Object Model (COM). The code will typically have something like this in ...
-1
votes
2answers
121 views

:net contra Javascript [closed]

If do some client programmering, what factors should I take it into consideration if I gonnna use javascript/ECMAScript or .net in relation to retrieve some functionality from SharePoint and apply it ...
2
votes
2answers
2k views

SharePoint client model and setting up lookup field

I have list A with "Title" column which is lookup column to List B. I need to update existing List B documents so that they will be linked to List A. However, SharePoint client context doesn't accept ...
0
votes
1answer
51 views

Load libaries given subsite name in clientapi

Hi I'm fairly new to the sharepoint client api, but I'm trying to get the libraries given a site name. My clientcontext in my class is at the root of my sharepoint e.g. https://mysharepoint.abc.com ...
1
vote
1answer
591 views

Javascript : How to handle version conflict errors when using javascript COM?

so I use quite a bit of the javascript client object model for CRUD operations to lists from custom pages (inputs) and I have found that I get version conflict errors on saves from time to time....its ...
0
votes
0answers
91 views

sharepoint datetpicker On change event in application pages

DOes any one tried calling the sharepoint date time control on DATE CHANGE EVENT in jquery or java script.. kindly let me know please
0
votes
1answer
314 views

Javascript Object Model REST/AJAX: does callback/resulting function have access to the id of newly created item

so if I use rest like method to create a list item in javascript, can I get the id of the newly created item in the callback/result function? function createNewRecord(url, body, callback) { ...
3
votes
2answers
732 views

How to Get your manager with Javascript

I want to get the user's manager using Javascript Client Object model. How can I do this?
3
votes
1answer
490 views

How to make a request to SharePoint 2013 REST service from code that runs inside SharePoint server (NOT from App/External code)

I have a page hosted in _layouts in SharePoint 2013. I want to make REST call to SharePoint REST api from this page using current user credentials. I don't want to do it from client-side (jquery etc) ...
1
vote
4answers
4k views

get the login name of the current user using javascript

var context = new SP.ClientContext.get_current(); this.website = context.get_web(); this.currentUser = website.get_currentUser(); alert(currentUser); i tried this code, but i got an ...
0
votes
1answer
959 views

Jquery is not working on sharepoint date time control

Hi In my application page i have a sharepoint datetime control. I am using jquery on text changed event to calculate the number of days and displaying in a text box. Now i want to fire the same event ...
3
votes
2answers
12k views

Get current user in Client Object Model with javascript?

var ctx = new SP.ClientContext.get_current(); var web = ctx.get_web(); ctx.load(web); var user = web.get_currentUser(); alert(user); I used above code to get the current user using JavaScript, but I ...
0
votes
1answer
79 views

Retrieve notifications with JavaScript

I want to incorporate social feed into my SharePoint webpart. I followed this tutorial: Code example: Retrieve social feeds by using the SharePoint 2013 JavaScript object model. Even if I used ...
1
vote
3answers
401 views

SP ECMA/JS get_siteUsers() not working? trying to get user with getByLoginName()

I am trying to get specific users with this line using ECMA but I keep getting error: this.oUser = cxt.get_web().get_siteUsers().getByLoginName('dev\\joe'); I keep getting property or method ...
4
votes
2answers
925 views

SP JSOM: is there any way to get the group by name instead of getById(10)

is there a way I can use the below with something like getByName(thisGroup), instead of getById(10) in SP 2010 jsom: function setSomeUsers(dataObj, projGroup) { var clientContext = new ...