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

learn more… | top users | synonyms (1)

1
vote
1answer
201 views

Get list at site collection level using SP.js

I have this code which is meant to get data from a list at the site collection level. var clientContext = new SP.ClientContext.get_current(); var oList = ...
1
vote
3answers
1k views

Using CSOM to get list item count for multiple lists

I am trying to create a function which should loop through all lists on current web and display their current item count. My code so far: <!-- language: lang-js --> ZN.updateDocumentCount = ...
2
votes
3answers
169 views

Need a way to identify files which have no checked in version

I wrote a script that traverses a collection, it's document libraries and gets a list of all files. I'm trying to find all the documents which do not have a checked in version and require a user to go ...
0
votes
1answer
331 views

How to change 'Modified By' column value when a new file is uploaded in SharePoint 2013 using Client Object Model?

I want to change 'Modified By' column value of a file that is being uploaded using Client Object Model in SharePoint 2013. The problem is that the version of the file is changing. Kindly help me. The ...
0
votes
1answer
192 views

Synchronize excel file with SharePoint online list

I want to synchronize data from excel file with SharePoint list on office 365. I have already built a utility which uses client object model to achieve this but it is very slow as item count are in ...
1
vote
2answers
480 views

running SharePoint utility on non-SharePoint server

I wrote a utility in C# to copy files from a network directory to a SharePoint document library. When the sys admin tries to run the .exe from a non-SharePoint server, he gets the following error: ...
1
vote
1answer
93 views

Surfacing an SharePoint Online Access Services query for use externally

Is there any way to write a query in Access Services for SharePoint Online, and surface its results through either web services or the Client Object Model for .NET? Like the way that the tables are ...
0
votes
1answer
92 views

CSOM and master page and page layouts: .html vs .aspx vs .master

When applying master pages and page layouts using CSOM, should we generally operate using .html files? What would be pros and cons of using .html vs .aspx and .master files?
2
votes
0answers
99 views

How to access Page layouts and site templates using CSOM?

How to access Site Settings > Look and Feel > Page layouts and site templates using CSOM? The page allows end users to change these settings: Subsite Templates: subsites can use any site template ...
3
votes
2answers
1k views

How to enable publishing feature using CSOM?

How to enable site collection publishing infrastructure and site publishing features using CSOM?
1
vote
1answer
77 views

Get Workflow ModificationID via JavaScript Client OM

I create a dynamic link to the workflow Midification form in SharePoint 2010. I can get all of required parameters such as ItemID, ListId and Workflow InstanceId via Javascript OM. The only problem ...
5
votes
1answer
153 views

SharePoint Client Object Model not returning hidden folders in document library

I am using the SharePoint Client Object Model to get information from a SharePoint 2010 document library to be able to delete old htm-files located there. The problem is that these htm-files have ...
0
votes
1answer
188 views

Jquery show loading progress [closed]

Good day, I have a page with several javascript pages that get loaded. How can I check that all the JS files have been loaded? I tried the below with just alert boxes. $(onPageLoad); function ...
0
votes
1answer
2k views

Add item in SharePoint 2010 document library using JavaScript [duplicate]

Is it possible to add a new item in a SharePoint 2010 document library using JavaScript (client object model)? I have successfully created list items in other type of lists, but when it comes to ...
0
votes
1answer
2k views

upload to document library subfolder in client object model

I'm using the Client Object Model to upload files from a network drive to a SharePoint document library. Here is how I would specify the upload location if I were uploading to the document library's ...
1
vote
1answer
94 views

I am not able checkin/checkout the files in sub folders in the document library using client object model. Below is the code I am using

public void CheckOut()// CHECK OUT FUNCTION { try { string siteurl = ""; string filePath = ""; ClientContext context = new ClientContext(siteurl); context.Credentials = ...
0
votes
1answer
250 views

Check-In & Checked Out files inside folder in Document library using Client Object Model

I am not able checkin/checkout the files in sub folders in the document library using client object model. Below is the code I am using. public void CheckOut()// CHECK OUT FUNCTION { try { ...
3
votes
1answer
391 views

Check- in & check-out files using client object model

As the title says, how can I Check- in & check-out files using client object model?
1
vote
1answer
584 views

Move documents from one folder to another in diferent library in different site collection from Client Object Model

I want find and move all documents from one folder to other in different site collection document library. Both the folders are at the sub folder level 3 from the actual list. Please let me know how ...
0
votes
1answer
349 views

How to create sub site context in sharepoint online using app model

I am trying to create a sub-site and some predefined lists in the existed site collection. I am successfully created the sub site in the site. But Now i want to create lists in that newly created ...
2
votes
2answers
294 views

Looping retrieved Items throws an InvalidCastException

I have some very simple code using the client object model to retrieve a list and all items from that list from a SharePoint 2013 Online site. When the ExecuteQuery() fires, I use Fiddler to view the ...
0
votes
0answers
177 views

programatically create “create new file” call out for a link

I've a link on my home page. when I click on it I've to open "Create New File" callout of user skydrive "Documents" library. I found there is a OOTB function "CreateNewDocumentCallout" function ...
0
votes
0answers
37 views

Detect that an item has changed after it is tagged

I am using the Client Object Model to work with SharePoint items and also the 'SocialDataService.asmx' web service to work with tags. I use the 'Modified' field of a SharePoint item to detect ...
0
votes
1answer
350 views

Call executeQueryAsync method second time gives first time result

In the code I tried to get the data from 2 different LIST. Input of the second query will be done after executing first list. $(document).ready(function () { $("#SearchButton").click(function ...
2
votes
3answers
2k 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 ...
1
vote
1answer
280 views

Button to Show/Toggle Sharepoint Ribbon

I would like to add a button to a webpart we have already created that increases usability for our document libraries. I would like this button, when clicked to toggle the standard ribbon that is ...
1
vote
1answer
1k views

Sharepoint 2013 App access cross site collections

I'm using SharePoint 2013 and I wrote an AppPart that needs items of a list other than it's host site collection. But it keeps popping up an error indicating that my request has been failed. Access ...
1
vote
1answer
467 views

Get Sharepoint 2010 search results using Javascript Client Object Model

I need Sharepoint search results from Cient Object model using javascript Client object model. Can anyone please tell me how to do it for sharepoint 2010
0
votes
1answer
79 views

Obtain 'Tags' of SharePoint item using the Client ObjectModel

I would like to obtain the 'Tags' for each SharePoint (2010, 2013) list item (either a document in a library or an item in a list) using the Client Object Model. I haven't found any API that let's me ...
0
votes
1answer
176 views

Display Form Text Inaccessible via JS

I'm overriding the Display Form of a list as per Mark Rackley's blog post: http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=47 For this particular list, I need to parse a text field, split ...
0
votes
1answer
98 views

Use REST or XSL to get a Table with totals

I have a list with items that contains several columns like: Year Month HourCategory1 HourCategory2 HourCategory3 Now I want to create a table that shows only totals of the hour categories: ...
0
votes
0answers
58 views

In SharePoint 2013, adding selected webparts to a page

I have been given an interesting problem to solve. We have a publishing site in SharePoint 2013. Requirement: Every user should able to customize their home page with ease. Load available webpart ...
0
votes
1answer
307 views

Bind ListItemCollection as a DataSource of a DataGridView

I am using SharePoint Server 2013. I am trying to show a list data in a DataGridView in a windows forms application(client application). I obtained the ListItemCollection object related to the ...
1
vote
1answer
146 views

Updating the locale using the Client object model

I'd like to set the the Site Settings -->locale setting to English (United Kingdom) using the client object model. Is this possible? This setting can be found browsing the SP site Site Settings --> ...
1
vote
1answer
117 views

Adding a logo to site and sub-site using the Client Object Model

How do you add the url of a logo for the site and sub site using the client object model. This functionality can be found browsing the SP site. Site settings -->Title, Description, and Icon-->Logo URL ...
0
votes
2answers
857 views

Using REST API to get Site Groups in SP 2013

I'm trying to use the REST API in SharePoint 2013 to get the site groups. I've been using this link for a little help... http://msdn.microsoft.com/en-us/library/jj245927.aspx It's to do it with the ...
0
votes
2answers
2k views

Get all subsites of top level site using JavaScript OM

I am trying to get all sub sites of the top level site. However, the code I wrote for the app returns zero subsites. I am a little mystified as to why: var context = SP.ClientContext.get_current(); ...
0
votes
0answers
126 views

Trying to get all selected items from a list

Im trying to get all items selected in a list but unable to do so with the code below: getItem = new TextBox(); getItem.Text = "get item"; getItem.Attributes.Add("onkeyup", ...
4
votes
2answers
561 views

Programatically setting Site Collections Administrators in SharePoint 2010 using Client Object Model

I am writing a program where I want to be able to add/remove user/groups as administrator for a given Site Collection. I am using Client Object Model API for SharePoint 2010. I havent been able to ...
1
vote
3answers
4k views

How to authenticate user in sharepoint online using javascript

I have one sharepoint online 365 site. In that one public site will be there. In that there is sign-in option. Generally When ever user clicks on signin it will redirect to microsoft login page. But i ...
0
votes
1answer
169 views

JavaScript OM to Approve Designer Workflow Task

I have a SharePoint Designer 2010 approval workflow and I am attempting to approve the tasks via JavaScript Client Object Model. I am able to change all of the fields to "Completed"/"Approved" but the ...
2
votes
0answers
128 views

Change content type order via Javascript/ECMAscript

In my SharePoint-hosted app, I use javascript to apply a content type called "Order" to a list in my app. When users click "new item" to upload a document, I want that document to derive from my new ...
1
vote
1answer
386 views

How can I get a list of all user alerts set on a site collection in SPO?

I need to retrieve a list of user alerts set on a particular site collection in SharePoint Online. This is possible through the web UI under Site Settings -> User Alerts, but requires that I choose ...
0
votes
1answer
2k views

Add an existing WebPart Using the Sharepoint client object Model [duplicate]

My knowledge of the Client Object model is fairly limited, although I have been able to remove and move existing web-parts on a particular page. But I'm now struggling to find and then add a custom ...
0
votes
1answer
170 views

Sitemap with site owners using jquery/javascript

I am having scenario where i need to create site map webpart using jquery or javasscript i want to show all the subsites and their owners of each site with hieracrchy .can anyone help me in ...
0
votes
0answers
219 views

How to add and delete items in SP list using multi select box?

My question is that I am using a multi select list box to insert selected data to sharepoint list and I am using ecmascript object model. <select id="dd" multiple="multiple"></select> ...
1
vote
1answer
295 views

Load page error when I use ScriptLink in the page head

Here is the beginning of my custom SharePoint Application Page: <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, ...
1
vote
0answers
482 views

Javascript in CEWP queries a list every time dropdown is changed on NewForm.aspx not working

I am trying to apply javascript in a CEWP to a NewForm.aspx page of a simple custom list. Basically, the idea is to auto-populate a text field on the new item form whenever a dropdown column's ...
1
vote
3answers
3k views

SharePoint COM - SP.ClientContext(siteUrl) - Object doesn't support this action

Using the SharePoint COM to update a list item, but my function is failing. function updateProjectEC(projID, totalEC) { if(totalEC !== 0) { console.log("projID: " + projID); ...
1
vote
2answers
986 views

Upload to DocLib with jQuery (and REST) without HTML5

Uploading Documents to SP 2013 with jQuery and REST work just fine (Properties when uploading Files using REST in SP 2013) but these methods require a HTML5 compatible browser. The problem is now I ...