4
votes
2answers
115 views

How to get List by Url using SharePoint 2013 CSOM

SharePoint 2013 CSOM API contains the following methods for accessing List object: ListCollection.GetById method - returns the list with the specified list identifier ListCollection.GetByTitle ...
2
votes
0answers
34 views

JSOM working in Chrome but not IE

I am learning the Java CSOM at the moment and have written a little program that creates a sub-site and assigns a masterpage to it. I am embedding all the code directly on the page. I am finding ...
1
vote
0answers
13 views

Set Task list EnableAssignToEmail in CSOM

I would like to set the EnableAssignToEmail bit on a task list via CSOM after a list is created dynamically. I have found a way to do this in Powershell and in code using SPList: Add-PSSnapin ...
0
votes
1answer
23 views

SharePoint 2013 - Enumerate all subsites using CSOM and authentication code flow

I'm trying to enumerate all sites that a user has access to underneath a given site in sharepoint. For example, given I've authenticated to https://offtechsmith.sharepoint.com/teams/teamsite, I want ...
0
votes
0answers
14 views

Sharepoint 2013: How to get all Lists a user has access to from Provider Hosted app using CSOM

I'm trying to get a list of all Lists that a user has access to in a given SharePoint 2013 site. Specifically right now I'm testing against a SharePoint Online site and authenticating via ...
0
votes
0answers
33 views

How to retrieve the breadcrumb with REST Api

All, People who have worked on SharePoint 2007 and SharePoint 2010 will notice that breadcrumb is missing in the SharePoint 2013(BTW, Why Microsoft want to remove it in the SharePoint 2013?). But I ...
1
vote
1answer
79 views

SharePoint 2013: Creating custom list in SharePoint using CSOM

I'm having a difficult time creating custom lists using the SP JS API. Here's what I'm attempting to do: var lciTasksList = new SP.ListCreationInformation(); lciTasksList.set_title('ProjectTasks'); ...
0
votes
1answer
122 views

Remove role from group programmatically, CSOM

I would like to remove the contribute permission level from a specific group. I use this code: Group group1 = web.SiteGroups.GetByName("StudentsKls11"); RoleDefinition readDef = ...
1
vote
1answer
293 views

How to use CSOM/Powershell to update list item(s) in O365 from CSV

Not a programmer, but need to get a job done. Using Powershell and CSOM I've found examples and been able to import CSV into a list as new items. That is working. Here is a code snippet I'm using ...
2
votes
1answer
98 views

Create list and add a choices column to default view

I would like to create a link list, and then add a choice column (Field) with two choices to the default view. Using the following code i am able to create the list and add a column (Field) to the ...
1
vote
3answers
107 views

Add items to list programmatically

I would like to create a menu from the listtemplate Promoted Links, with several tiles. I use the following code to create the list, and create new list items: ListTemplate listTemplate = ...
1
vote
0answers
130 views

Problem storing SharePoint context in Provider hosted app hosted in a azure website

I created a provider hosted app, which I want to deploy in a azure website. The problem that I'm currently facing is that I don't have a SharePointContext after postback. I'm using the default way to ...
0
votes
1answer
103 views

Hiding the toolbar of a Listview webpart through CSOM

I recently successfully added a web-part to the frontpage using the method from Add Document Library XsltListViewWebPart using CSOM or web services However, it seems impossible to disable the toolbar ...
0
votes
1answer
89 views

Setting value of Enterprise Keywords using CSOM

I have included the enterprise keywords column in my contenttype and list and I try to set the value using the managed CSOM. I just used the default already existing column so the column name is ...
0
votes
1answer
153 views

Download Root level folders,sub folders and all files using CSOM C#

I have to Download Root level folders, sub folders and all files using CSOM and C#. I have to save the same folder structure and all file paths into the local system. Please provide the solution for ...
0
votes
2answers
256 views

Undefined SP.ClientContext

I always get undefined on my SP.ClientContext.get_current() I have tried with this code: SP.SOD.executeFunc('sp.js','SP.ClientContext',runthiscode); function runthiscode(){ ...
2
votes
2answers
427 views

Create list from custom template using csom, c#

I would like to create a list based on a template (.stp uploaded to the list template gallery), it almost works with this code: ClientContext context = new ClientContext("<Your Site URL>"); ...
3
votes
1answer
348 views

Change masterpage from Seattle to Oslo using CSOM, Sharepoint online

Using CSOM and c#, I would like to change the master-page from Seattle to Oslo. Can anybody help me?
1
vote
0answers
290 views

CSOM caml query list view lookup threshold

I have a list with about 15 managed metadata columns in it. Now I want to query that list using CSOM. I don't want to retrieve all the columns values so I limited the column values retrieved by using ...
2
votes
2answers
192 views

Update available page layouts of web using CSOM

Is it possible to update the available page layouts of a web using CSOM? In the interface you can change them by going to the site setting and then to page layout and site template settings, but I ...
0
votes
0answers
54 views

User or Group field SharePoint 2013

I have a field in a list that is a group or user field with multiple user choice. Now i want to check if there is 3 users in that field, i want to check if the current logged in user is equal to the ...
0
votes
0answers
17 views

Hide Elements on topnavigation

I have a metadata navigation dropdown in SP 2013, How can I hide a specific element with a specific title?
0
votes
0answers
130 views

SharePoint csom set_item limitation

Is there a limit on set_item with csom ? If i add a third: olistItem.set_item("Body", "test"); It doesn't work var theList = clientContext.get_web().get_lists().getByTitle('userData'); ...
0
votes
1answer
94 views

How is Project Site newsfeed accessed by CSOM

I've created a subsite based upon the "Collaboration/Project Site" template. This template creates a newsfeed content of type MicroFeed. I would like to use CSOM to extract the content of the posts ...
0
votes
1answer
49 views

Csom code works if alert is implemented

This code works if i have a alert before , when i remove it, the isUserInList always shows false. Maybe i need to have a return value in CheckIfUserIsInList(); function ? var isUserInList = ...
1
vote
0answers
144 views

SharePoint Online CSOM create managed properties

I'm trying to find a way to deploy search managed properties via script to my Office 365 SharePoint tenant. Previously, for on-prem SharePoint I've achieved this using PowerShell - fairly straight ...
1
vote
1answer
106 views

Script to update Sharepoint Online content type

I have a content type "TestContentType" with three columns: Document Type Category Sub-category This content type is used on 18 document libraries, in 3 site collections. The Category column ...
3
votes
3answers
369 views

Query multiple lists in a provider hosted app

I'm currenlty working on a provider hosted app that is hosted in Azure. In this app I need information with multiple lists in multiple sites, which are all in the same sitecollection.I'm basically ...
0
votes
1answer
837 views

CSOM Item Level Security “Cannot add a role assignment with empty role definition binding collection.”

I am trying to create an app that will set item level security for certain items in a library. However, I am getting the error mentioned above after these lines: item.RoleAssignments.Add( grp, ...
1
vote
2answers
498 views

Send Email from CSOM

Is it possible to send an Email from an Autohosted Sharepoint 2013 app from CSOM code (C#) with an attachment? I have the following code: EmailProperties properties = new EmailProperties(); ...
0
votes
0answers
109 views

401 when authenticating against Sharepoint Online

Good morning. Being very new to SharePoint, I've been trying to write a very basic app to create a new site inside my Sharepoint Online tenancy, but I can't seem to get it authenticated. I'm using the ...
0
votes
3answers
319 views

executeQueryAsync in for loop

Lets say i have a function that has a for loop in it. I need to loop it becouse i have an array that i need to get items dynamically from: newsArray[i].Group. In the function Success , i will be ...
0
votes
2answers
580 views

How to insert record to sharepoint multi choice field via CSOM

I am trying to insert a Multichoice (checkbox) field to sharepoint via the SP namespace in javascript. Updatnig single choice is simple. For Multichoice I have tried: var itemCreateInfo = new ...
1
vote
0answers
154 views

Error Setting Ratings using SharePoint Client Object Model

We are attempting to use the example located on this: Site We are receiving the following error: "The assembly Microsoft.SharePoint.Portal.Proxy, Version=15.0.0.0, Culture=neutral, ...
3
votes
2answers
497 views

getting Regional settings in Javascript from CSOM

I am creating a custom data entry app in sharepoint using the CSOM. I need to update the default value of a datetime field, I can get the default value but the datetime is in UTC Format. I need to ...
2
votes
3answers
283 views

CSOM Change Field Name

I am trying to change the list column name. Here is my code, it isn't working. I added a content editor web part with this code: <script type="text/javascript"> //js ref </script> ...
1
vote
0answers
59 views

Manage files with no checked in version - CAML query

I am using Office 365. We have a document library containing more than 12000+ documents, with a number of folders and subfolders. I need to find a way to get all document which have no checked in ...
1
vote
0answers
25 views

How would you build an AutoSPConfigurator (to be used when farm is installed) [closed]

I would like to have a tool that is an equalent to AutoSPInstaller, but for configuring the most used out-of-the-box features. It would do the following: Create sites Upload term set and configure ...
0
votes
0answers
57 views

passing information from Sharepoint to Immersive Sharepoint App

I have created an custom add entry app to sharepoint. It all works however currently the list it works on is hard coded. I want a way to pass the list I want to add an entry to to the application. I ...
2
votes
2answers
56 views

return to sending page from an CSOM app

I am creating an App via the javascript + CSOM... After I have finished processing I need the app to send the user back to the original page he was on. How do you retrieve the page from sharepoint to ...
1
vote
1answer
93 views

Problem with Caml Query

I need to put this code: <View>"; <Query>"; <Where>"; <Eq>"; <FieldRef Name='PublicY' />"; ...
1
vote
2answers
138 views

Jquery and csom problem

Hi im having some code like this: var News = new Array(); jQuery(document).ready(function () { ExecuteOrDelayUntilScriptLoaded(initialize, "sp.js"); some code here... function setUpList(){ ...
2
votes
1answer
52 views

Retrieve items from content type

I have the following setup: Root Subsite1 Subsite2 list1 list2 content type: News content type: News How can I retrieve the ...
2
votes
3answers
2k views

using CSOM to retrieve fields in a list in a view

I am trying to use the CSOM to retrieve all the displayed fields in a particular view. I require to know the field type and field internal name. I can not do: var list = ...
0
votes
1answer
195 views

Caml Query Filter SharePoint 2013 Online

Hi I'm in need of some help with a caml query. I have 1 column in my list, that have 3 different choice. I want to query out items if the choice is equal to YES This is my code: var context = new ...
2
votes
2answers
325 views

SharePoint 2013 Organization Chart [closed]

im in need of help here. I have to render this code from a sharepoint list instead of this json string. How can i do that? Heres the link to the chart: http://librerias.logicas.org/lib_gg_orgchart. ...
6
votes
3answers
753 views

Get if user has permissions to access to a Cloud App for Sharepoint 2013 with JavaScript CSOM or Rest Api

I have developed a Cloud App for SharePoint 2013 on an office 365 server, and I figured out that to set the user permissions(who has access to it) for that app can be find over ...
1
vote
2answers
1k views

SharePoint 2013 Online JavaScript CSOM CEWP

I am in a need of some guidelines according developing in SharePoint 2013 Online. I want to learn developing on a sharepoint 2013 online site. Im using Content editor web parts and want to retrieve a ...
1
vote
1answer
326 views

Set request access email address through CSOM

In the server side object model it's possible to set the request access email address through the property SPWeb.RequestAccessEmail (MSDN). Since we are moving our SharePoint tenant to Office365 I'm ...
0
votes
1answer
154 views

Working on the User Profile and Mysite web

I just trying to get few information from a user (like if the mysite web exits) and working with that. The main problem is understand if the user has a mysite web and delete it if exists but to do ...