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

learn more… | top users | synonyms (1)

8
votes
1answer
530 views

Opening and closing AssetPortalBrowser.aspx in SharePoint modal popup

I am trying to open the "OOB" AssetPortalBrowser.aspx from a page within a SharePoint native modal popup. My aim is to get the selected filename back to the script. So far I was able to open the ...
3
votes
1answer
137 views

Check if logged in user is member of AD group with ECMA script SharePoint 2013

There is active directory group added to SharePoint group. How would we can check that the logged in user is member of that active directory group using ECMA script?
2
votes
1answer
934 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 ...
2
votes
1answer
179 views

Filter Calendar view by Title in SharePoint 2010

i want to filter calendar view using title field. Is it possible to filter calendar view without make changes in modify view ?
1
vote
1answer
71 views

Looking to retrieve user's groups in SharePoint

I am running SharePoint Foundation 2010. I have a claims based site setup to use a trusted token provider. I am passing it a set of claims that determine the user's group. They look similar to this: ...
1
vote
1answer
196 views

How to get url of file after uploading to document library?

How do you return the URL of a file after it has been uploaded to a document library, using the default upload page? Returning the text from the "inputFile" textbox from the upload.aspx page would ...
1
vote
1answer
192 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
1answer
70 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 ...
1
vote
1answer
92 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 = ...
1
vote
1answer
273 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
268 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
1answer
174 views

How can one create a custom list in JSOM based on a custom list template (STP) in 2013?

I have a custom list template (STP) in my list template gallery. I can retrieve the list template using the client object model in javascript. But it's not clear how to create a new list from that ...
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 ...
1
vote
1answer
106 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?
1
vote
1answer
179 views

ClientContext.Load on data that is already loaded

I need clarification how does ClientContext.ExecuteQuery method works in client context. For example if I use ClientContext.Load to load the data that is already initialized - will it make an request ...
1
vote
1answer
654 views

Getting user email from a List Item column using Javascript

I am creating a Hosted app using NAPA on Sharepoint 2013 (Office365). I need to retrive a user from a list column and get the user's email. SP.List.getItems with a query returns a listEnumerator ...
1
vote
1answer
550 views

How to open file in adobe reader using command line without checkout from Javascript?

I am working on print functionality. I am printing the PDF files (uploaded in SharePoint Library) using Adobe Reader command line from javascript. I am using ActiveX object to call the cmd. refer ...
1
vote
1answer
218 views

Javascript IIFE and SharePoint Client Object Model

I'm having a problem with my javascript code that I am sure is to do with scope, but I can't figure out where I'm going wrong. I'm trying to write a method that will allow me to retrieve items in a ...
0
votes
0answers
40 views

Best method of downloading a folder of content from multiple versions of SharePoint from .NET

I need to implement some code which, given a specific site URL and folder, will download all files within that folder and any sub-folders. I know I can use the SharePoint Client SDK for that, but one ...
0
votes
0answers
65 views

Find termsetid by term name in Sharepoint 2010

i want to retrieve termsetid in console application using client object mode. because i want to create metadata site column using client object model but i need termsetid to create id. how to get this ...
0
votes
0answers
64 views

using SharePoint COM to update list from csv file

Using SharePoint COM (using C#) I am trying to update my custom list from a CSV. In both the list and CSV file on column is common and I using that column for comparision. I am able to achieve the ...
0
votes
0answers
23 views

Linking a js file into a blank page in sharepoint then count how many items in a list

I have created a new page on my sharepoint site. I have embedded some html using the embed code <!DOCTYPE html> <html> <body> hello </body> </html> I have a js file ...
0
votes
0answers
87 views

Get a document thumbnail URL using client object model on SharePoint Online

I am working in a SharePoint online based environment and I need to fetch the thumbnail url for a document in a library programmatically, using the .Net client object model (not EcmaScript). Is that ...
0
votes
0answers
25 views

How to access another web, by name in client object model

Iam in site B . There is another site named A .I want to access a list A of site A from site B using client object model. Can I access it I am using below code. var context = new ...
0
votes
0answers
26 views

How to get “Shared With” count of a list item or document using CSOM

Is there any way to get the count of "Shares" on a list item. I've a requirement to show "share" link along with the share count like "share(10)", Can I do it using javascript?
0
votes
0answers
26 views

set properties for ShimFileCreationInformation object

I am writing some unit test cases using fakes framework. I am using an object ShimFileCreationInformation from Microsoft.SharePoint.Client.Fakes namespace. Now, I pass this object to a function. ...
0
votes
0answers
93 views

Filter/compare two arrays from CAML query

I'm using JavaScript/Client Object Model to retreive some data by CAML query. I've 2 CAML queries. One retrieve all data from a specified column. The other query retrieve data from same column ...
0
votes
0answers
162 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
0answers
57 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
0answers
121 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", ...
0
votes
0answers
216 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> ...
0
votes
0answers
21 views

SharePoint CSOM in Silverlight Returns NO DATA

Here is the Code: string SPUrl = "https://mysite/sites/ProjectSites/Project1/"; ClientOM.ClientContext SPContext = new ClientOM.ClientContext(SPUrl); ClientOM.Web mySPSite = SPContext.Web; ...
0
votes
0answers
93 views

Trying to get list of groups a user belongs to

I came across this post showing how to create a permissions management webPart using SPServices. I tried to do it in SP2010 but keep getting error " User not found". I think it has something to do ...
0
votes
0answers
46 views

Using LINQ to get roll-up data

project1 completed 29/12/2013 project1 notcompleted 12/12/2013 project1 completed 07/12/2013 project1 completed 09/12/2013 project2 completed 19/12/2013 project2 notcompleted ...
0
votes
0answers
177 views

Unable to connect to sharepoint site using Sharepoint Client Object Model

This is my first attempt in using the the Sharepoint Client Object model. I'm writing a console application to connect to one of our sharepoint application sites. I'm trying to run a basic example to ...
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
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
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
0answers
249 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 ...
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 ...
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 ...
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 ...
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
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
0answers
101 views

Copy list item and add it to the same list by copying their ID using ecma script

I need to Copy a list item which is selected and add it to the same list using ecma script..no workflow and designer is allowed(only client object model). I tried to copy the list items but i havent ...
0
votes
0answers
412 views

current user is always is administrator on a SharePoint App

I have tried following solution to check the current user's permissions on the current host web in a SharePoint hosted app, however the user is always administrator. function sharePointReady() { ...
0
votes
0answers
210 views

Convert Sharepoint Calendar Recurrence Data from xml to string

I am creating actual events from sharepoint recurring instances, i want to convert recurrence dat which is xml to string, how can i do it automatically.
0
votes
0answers
461 views

create list using CustomSchemaXml from client object model

I'm using Client Object model of SharePoint 2010. What is the property CustomXmlScheme in list creation? MSDN say nothing about it. It seems not working. I'm using this code: string xml = @" <?xml ...
0
votes
0answers
383 views

How to send Email using Client Object Model ECMA Script/Javascript?

I want to send Email using Client Object model JavaScript.. I found Somewhere that it is not possible using Javascript but as I am using NAPA Tool for development in SharePoint 2013 this is the only ...