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

learn more… | top users | synonyms (3)

0
votes
1answer
10 views

Sharepoint javascript object model, access denied error

I'm using JavaScript object model to retrieve data from a list located a root site. My code is as below: var clientContext; SP.SOD.executeFunc('sp.js', 'SP.ClientContext', ...
0
votes
0answers
22 views

Jquery Async call issue CSOM

I am creating a custom Navigation using Termstore value. I am getting all term using JSOM like that function getTermStores() { context = SP.ClientContext.get_current(); var taxSession = ...
1
vote
1answer
50 views

Upload list item attachment using JSOM

I am trying to upload list item attachment using the below code. There is no error in the code and all the variables are present with proper values but in uploadFile method it goes to error handler ...
0
votes
0answers
18 views

Cannot query SP.UserProfiles.PeopleManager from the App Web via REST

I'm testing REST results in the browser with mixed results. The following URL returns the expected result: ...
0
votes
0answers
16 views

Manipulating SharePoint UI over an IFrame to add missing clientside Features

I stumbled across a requirement where I had to change the RequestAccessMail via clientside code. This property is not available via CSOM or JSOM. Feature Request There are several people who asked if ...
1
vote
1answer
30 views

Fetch list item attachment by name

I am trying to write custom code for list item attachments. As it is not allowed to overwrite them, I will check if file already exists. If yes, will delete and then upload again. I found a method ...
1
vote
3answers
60 views

Getting List Column Order

I'm using the SharePoint 2013 JavaScript APIs, calling web.get_lists().getByTitle('ListTitle') and then list.get_fields() to create a custom search panel. However, the fields do not come back based on ...
2
votes
1answer
37 views

Get Parent term set id using JSOM

I want to get parent term set id in SharePoint online using term_parent.get_id(); in below code.I am getting all terms but unable to get parent term id.It is giving me error as Uncaught Error: ...
0
votes
1answer
26 views

Office 365 pre-provision my site issue with Powershell

I am creating personal sites using powershell csom. My issue is on below line $loader = [Microsoft.SharePoint.Client.UserProfiles.ProfileLoader]::GetProfileLoader($ctx) I get following error. ...
0
votes
0answers
22 views

Get\Set values from SharePoint 2013 custom fields

How Get\Set values from ListItem SharePoint 2013 custom fields using CSOM and C#?
0
votes
1answer
13 views

Retrieve users About Me (PersonImmersive.aspx) page from CSOM

Is it possible to retrieve the O365 About Me data (in PersonImmersive.aspx) via REST or CSOM ?
0
votes
1answer
19 views

Add list item only after workflow approval

Is there a way to restrict or hold the list item from adding into the list until it is approved? Once the user hits the save button from new user form, the workflow approval request starts and until ...
2
votes
2answers
92 views

SharePoint 2013 get all Taxonomy terms JSOM

I am trying to get a collection of terms under a term set so I can see which have custom properties. I have been searching for almost a week now and keep coming up with nothing. I found several ...
-1
votes
1answer
33 views

How to know what kind of permission (Full, manage, write) is used for the current App?

I planing to build an JavaScript library to manipulate SharePoint Lists and Items , which developer can use with there SharePoint Hosted apps, and I want to publish on CodePlex, anyway, this JS ...
-2
votes
0answers
22 views

ClientContext sharepoint to get allowed site for user

I'd like to connect to a clientcontext ` using (SP.ClientContext ctx = new ClientContext("spurl")) { try { //retrieve an other user and use this ...
0
votes
0answers
15 views

Is it possible to simply enable incoming email and set the email address using SharePoint 2013 JavaScript Object Model (JSOM)?

I know this can be done with C#, but I am restricted to a client (JSOM) only environment. I already looked at all the properties and functions of the SP.list (oList in the code below) object using the ...
1
vote
1answer
18 views

How to change a list URL via JSOM?

I'm trying to make a JSOM utility that will allow me to alter the properties of pre-existing document libraries. So far I have successfully managed to update the list 'Title' and 'Description' ...
0
votes
2answers
20 views

Deleting items in object-model

How to add a new item to SharePoint list in server object-model using C#. This is my code and I want to delete just one item using listBox SPWeb web = SPContext.Current.Web; ...
0
votes
0answers
40 views

Set value of summary links column using CSOM in SharePoint 2013

We are creating a custom page where we are providing user a control to add summary links. This is a provider hosted app page and we can't use the SharePoint controls there. So, we are giving the users ...
0
votes
1answer
21 views

updating list item of a file using CSOM

I am using following code to copy a file from a Document Library to another. The file is copied and is there, but the fields will not be updated. fileInfo = File.OpenBinaryDirect(srcClntCntxt, ...
1
vote
2answers
45 views

CrossListQueryInfo or SPSiteDataQuery equivalent in REST API or CSOM

Is there any equivalent in SharePoint 2013 RESTful API or JavaScript Object Model to either one of the following? CrossListQueryInfo SPSiteDataQuery
1
vote
1answer
93 views

Sharepoint 2010 CSOM Get user and his groups by login name

I want to get a user and all his groups by a login name. Easy to do in Sharepoint 2013. clientContext.Load(site, l => l.RootWeb.SiteUsers, l => l.RootWeb.Id, l => l.Id); ...
0
votes
0answers
11 views

Ribbon button added via CSOM is disabled on publishing page in SharePoint 2013

We have added a custom action in the publishing page ribbon using CSOM in SharePoint 2013. The issue is this action is disabled and i can't click on it. The strange thing is it works on one site and ...
1
vote
1answer
37 views

Get Sharepoint Permissions\Roles (custom) of a user from AD Group that is part of SP Group via CSOM

SharePoint 2013 + provider-hosted app. User is part of AD group. AD group is part of Sharepoint group. Sharepoint group has custom security permissions assigned. How do I check whether user has some ...
0
votes
1answer
23 views

Sharepoint define search scope using csom

I have a sharepoint installation with multiple site collections, let's say siteA, siteB e.t.c I am using the following code to search in sharepoint using (ClientContext context = Connect()) ...
0
votes
0answers
18 views

How to get Structured Navigation on publishing SharePoint Site with CSOM

I am trying to re-create my Top navigation bar in a provider hosted MVC App. my C# public static NavigationNodeCollection GetNav() { if (HttpContext.Current != null) { ...
1
vote
1answer
29 views

How to Send return value to the caller function correctly

Hi i have a code like this. var guiD = myCallerFunction('abc'); alert(guiD);====>Line No Y function myCallerFunction(name){ //Some code here var terms = termSet.get_terms(); ...
2
votes
1answer
38 views

Error creating PeopleManager object using CSOM in powershell

I have this line in my powershell script: $peopleManager = New-Object Microsoft.SharePoint.Client.UserProfiles.PeopleManager($context) When it gets hit I receive the error: New-Object : Cannot ...
0
votes
0answers
24 views

Sharepoint 2013 - open a second modal window from a first modal window

I have an aspx page opened in a modal. On button click I need to close the current modal and open a new one or just open the new page in the same modal. Any suggestions? Below is my code: function ...
0
votes
0answers
45 views

SP2013 Adding custom webpart(sandbox) to a page programmatically using CSOM

I'm trying to add a webpart(sandboxed) to a page programmatically using CSOM. I've created a simple windows forms application and tried the below, it gives me error A first chance exception of ...
2
votes
1answer
31 views

SharePoint Online: Change properties

I am retrieving a change log for SharePoint Online site, but I am particularly interested in the who performed the change and on what item. $changeQuery = New-Object ...
0
votes
2answers
24 views

Sharepoint2013 ctx and Js : Retrieve the value of a field from a list

I'm a totally beginner and totally stuck to a point in my Sharepoint project. What i would like to achieve: part 1 : retrieve the current user's Department's name part 2 : retrieve the department's ...
1
vote
1answer
40 views

Get GUID by term name - jsom

i need to pass term name as a parameter and return the GUID of that particular term. As an example if i pass My Term 1 it should return GUID of My Term 1. var termGuid=getTermByName('My Term 1'); ...
0
votes
1answer
17 views

Query “Standard View, with Expanded Recurring Events” doesn't show all items

For Calendar list, I have created a view with type of "Standard View, with Expanded Recurring Events". This view is used to show each instance of a recurring event. So if there is an event with let's ...
0
votes
2answers
41 views

JSOM function undefined in SharePoint - Display list view items

I am using the following code to get the available items from a list view. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> ...
0
votes
1answer
44 views

how to call executeQueryAsync() to behave synchronously?

Items are saved in jumbled bcoz I am using executeQueryAsync().How to make executeQueryAsync() behave synchronously?
1
vote
0answers
26 views

Display Rating Stars

I have a page and I want to display the items' title of a list with the rating stars for each item beside it in that page. What should I do?
0
votes
0answers
17 views

Term ID by Term name JSOM

I need to do something like this. var termID=getTermIDByTermName('My term Name'); function getTermIDByTermName(name){ var ctx = SP.ClientContext.get_current(); var taxonomySession = ...
0
votes
0answers
39 views

CSOM retrieve List Item doesn't show some Lookup Key Value pairs

I try to load a ListItemCollection from my SiteCollection using CSOM C#. Therefore I use the following List rr = web.Lists.GetByTitle("MyTitle"); context.Load(rr); FieldCollection fcol = rr.Fields; ...
0
votes
1answer
34 views

Sharepoint online 2013, Move term to another branch (parent)

In Sharepoint online we can move Term manually. I need that to be done programatically using JSOM. Does anyone have code for that? I checked ...
0
votes
1answer
21 views

reuseTerm JSOM usage

Anyone familiar with SP.Taxonomy.TermSetItem.reuseTerm(e, d) ? It's there in MSDN and I guess it is to copy a termset to another termset as a sub-term. Any idea?
0
votes
0answers
21 views

Export/Import SharePoint List Template without using Microsoft.SharePoint.dll (Is it possible?)

What I'm trying to do is build a migration tool that when moving from a development environment to production environment for example, any SharePoint List references will be packaged as List Templates ...
1
vote
1answer
56 views

Does audiences work with CSOM?

If we build an SharePoint app and need to show items based on audience targeting, can we use CSOM for that? Can't find any references to it in the CSOM SDK.
-1
votes
0answers
16 views

Retrive all items including sub folder items in CAML [duplicate]

I am trying to retrieve all files and sub folders of a specific folder in Document Library. The structure looks like /sitename/shared documents/folder1/ /sitename/shared documents/folder123/ ...
0
votes
0answers
17 views

Moving a term to another parent termset JSOM

Hi i need to Move My Term 3 term under My Term 1 (need to make My Term 3 as a child term of My Term 1) using JSOM. I tried many code snippt but i was really unable to do that. Anyone else has tried ...
0
votes
0answers
15 views

Sharepoint 2013 - jcom - How to add function and increment 1 to a specific field?

The following setup is working perfectly for fetching data from my custom list... var items; $(document).ready(function () { SP.SOD.executeFunc('sp.js', 'SP.ClientContext', CustomAction); }); ...
1
vote
1answer
25 views

SharePoint 2013 - JavaScript - List Data fetch failed

I'm using the following to read data from a custom list in SharePoint 2013: var items; $(document).ready(function () { ExecuteOrDelayUntilScriptLoaded(CustomAction, "sp.js"); }); function ...
0
votes
2answers
44 views

Add hyperlink to Sharepoint list item

I need to add a hyperlink to the Sharepoint (2013) list item in one of the columns or make the list item itself as a link. I don't know how to do this. Any help is appreciated!
0
votes
1answer
49 views

Fields validation with Javascript in custom WebPart - SharePoint Online -

I'm currently developing a SandBox WebPart for SharePoint Online (2013) which have two TextBoxes. I'm trying to add the following code for validate the Email and Subject TextBoxes once the Button ...
0
votes
0answers
18 views

Unable to get the list of all SP2010/SP2013 Work Flows (OOTB and SPD) which are associated with a List using CSOM

We came across an issue while pulling the workflow associations of lists, CSOM and Splist.WorkflowAssociations will not list the workflows created through SPD and attached to list. If anyone faced ...