Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
2answers
43 views

Call a executeQueryAsync function inside success of a function

I am able to fetch single SharePoint List using JavaScript. But here I need to Query other list based on the value fetched from first list. I have also used angularjs for the page. Find the below ...
1
vote
1answer
29 views

How to use CSOM TermSet.GetTerms method? Receiving strange null error

I have a piece of code in which I want to check if a specific Term is available within a TermSet. The TermSet is quite large, so getting all Terms is no option here. My code looks like this: Getting ...
1
vote
1answer
20 views

How to bind SP.PermissionKind Enumeration to a dropdown list using jquery

I need help as I have a requirement to get all permissions (PermissionKind Enumeration)and bind it to a drop-down. Also, I need help to know what are the different ways to bind Enumerator value using ...
1
vote
1answer
18 views

SharePoint Client Object Model - Javascript or .Net?

We currently have a SharePoint 2010 environment and planning to migrate to SP 2016(Q2 2019). For SP 2010 we have developed a component to developers that want to consume SharePoint infrastructure. ...
0
votes
2answers
47 views

get items from a image library and bind using foreach loop with multiple HTML image ID using JSOM

I am trying to create an image slider using JQuery where I am facing difficulty to bind multiple images to HTML labels. As I have already used in while loop how to use this using for each loop to ...
0
votes
1answer
28 views

PropertyOrFieldNotInitializedException on SharePoint Online CSOM

I am trying to write a simple Console Application in .NET using the CSOM object model. I write the following code (omitted the client context declaration and the authentication parts from below): ...
0
votes
0answers
49 views

The C# program in Visual Studio was connected to the SharePoint 2010, since the migration into SharePoint 2016 I get this error msg

My program was connected to the SharePoint 2010, since the migration into SharePoint 2016 I get this error msg " System.Net.WebException: 'The underlying connection was closed: An unexpected ...
0
votes
1answer
23 views

Copy/Delete Sharpeoint Library items to another Sharpeoint Library between date using CSOM

I hope you can help with this topic, please explain the scenario. I have a site in Sharepoint online. -I have an origin (Sharepoint library) that contains photos. My doubt is how to copy the items (...
2
votes
0answers
16 views

Save file in same document set it is opened from

I have a request from a customer I am struggling with. Given is the following scenario: SharePoint Server 2016 Whenever a new document set is created a specific Excel file is added to the document ...
1
vote
2answers
39 views

Update list column data via HTML form web part

I'm trying to update list data on Sharepoint via HTML web part. This is my update function: function UpdateListItems( ids ) { var response = getNode( '<?xml version="1.0" encoding=...
0
votes
1answer
171 views

Property bag - Index using CSOM

How can we check if the property bag is indexed and searchable? And also how is the index value for 'vti_indexedpropertykeys' encoded? I am trying to update the property bag's index using CSOM C# ...
0
votes
1answer
23 views

When adding item to List, I get error Invalid data has been used to update the list item. The field you are trying to update may be read only

I'm using Client Object Model to update a list on SharePoint. The list is very simple, it only has 3 columns ([Title], [Author], [Year Published]) [Title] is the standard column added by default, [...
0
votes
1answer
50 views

Thumbnail of share point files

I want to display the thumbnail of SharePoint image or pdf file. In Google Drive case from Thumbnaillink we are getting thumbnail URL. Like that is there any property or api is available in SharePoint?...
0
votes
1answer
51 views

Retrieve email from People or Group Field

I have People or Group Field Normally I retrieve value of fields as: var fieldUsuario = ctx.CurrentItem.Notificar_x0020_a But now I dont want text value, I debbug it and it have email in span as: &...
0
votes
0answers
33 views

How to create task list using existing template in sharepoint using csom/RestApi code

Is it possible to create task list dynamically using template through code I have searched for the answer, i tried with code its not creating list but iam getting saved template through code. I ...
0
votes
0answers
46 views

Current Item URL SPLIST

I am trying to add a current item url link to each list item when clicking on glyphicon glyphicon-eye-open I created with angular js that is linked to a SPList. I did research and tried finding how to ...
1
vote
2answers
148 views

Error of can not invoke method or retrieve property from a null object

I am using C# Winforms and CSOM - am attempting to return the version history with this method. I have verified that all variables being passed in hold an appropriate and correct value. But once the ...
0
votes
1answer
42 views

Clear radiobutton list selection using jquery

I would like to clear Radiobutton list selection once user click the button. I have tried the following code but clears the selection in browser. When I access from backend(C#) selection is there. It ...
0
votes
1answer
344 views

How to get site Owners information from sharepoint site using CSOM?

I have root site and it has many subsites. I have to get Site owners of each subsite using CMOS. I have writtern below code but its not giving owner's detials instead its giving all site group ...
0
votes
1answer
42 views

Rest API filter syntax error

i am getting invalid error on the below error. I couldnt make out what the error was. url: _spPageContextInfo.webAbsoluteUrl + "/_api/Web/Lists/GetByTitle('Mega Menu')/items?$select=...
0
votes
0answers
40 views

Issue while processing multiple SP.ClientContext.get_current().executeQueryAsync in loop

I have to get all the subsites from root site and names of site owner, using Client Object model in SharePoint. I near to achieve the requirement but now getting issue of due to SP.ClientContext....
0
votes
0answers
30 views

ClientContext authentication cookie

how can I use the clientcontext of SharePoint 2013 foundation if my SP is in a F5 Server with windows authentication and token ? with a cookie or something else ? Regards, Greg
1
vote
2answers
61 views

How to assign personal view to specific user?

Usually I create view using ViewCreationInformation class: public static void Create(this ViewCollection viewCollection, IListView view, string desiredTitle, ContentTypeId contentTypeId) { //...
2
votes
0answers
38 views

Java Script How can I get the Site Owners information and the Group Name for all my sites

I have zero experience coding in SharePoint and have been given the task of showing the current Site owners within an HTML control on EVERY page for our site. I found this code at this link which ...
0
votes
2answers
376 views

Office 365 document Get a link View Edit URL using C# client object model

I was trying to get the URL of a document (inside document library) link same as Get a Link option with View (account required).I am using following code with sharing options. SharingInfo object does ...
0
votes
0answers
13 views

How to use Custom Schema XML in SharePoint in Client Side Object Model

CustomScehmaXML property of SharePoint list object. but every time when I assign an schema it is getting an error. any solution for this. I am using this property to create a list in a destination ...
1
vote
1answer
31 views

How to get group by group name in JSOM SP2010?

How to get group object from group name something like this. var groupCollection = clientContext.get_web().get_siteGroups(); group = groupCollection.getByName("Group Name"); Above code will work in ...
1
vote
2answers
316 views

How to set up CSOM in Visual Studio?

Our Sharepoint site is on our company servers. I need to create a web app that can retrieve and post data from and to that site. I use VS 2017, I tried to install Microsoft.Sharepoint.Client using ...
2
votes
0answers
138 views

Authenticate user in embedded iframe using session of current SharePoint user

I have an iframe with my web application embedded to a SharePoint page. I need to somehow authenticate him/her in this web app using Microsoft Azure AD without forcing him/her to enter login and ...
0
votes
1answer
191 views

Page Layout and Site Template Settings - Properties using PowerShell

I have a requirement where I need to access the Site Templates and Page Layouts and the Default Page layout. I'm able to access all the properties using $web.AllProperties["__WebTemplates"] $web....
0
votes
0answers
26 views

How to create Recurrence view?

I'm able to create a view using ViewCreationInformation class. And property ViewTypeKind is one of specified properties which I can choose. Lets see possible values namespace Microsoft.SharePoint....
0
votes
1answer
23 views

SP 2010: Create list item in a different site which is in a different web app

Is it possible to create list items in a site which is in a different web application using JSOM?
0
votes
2answers
309 views

Conditionally hide a metadata field based on user's permission

I am working on an office 365 online SharePoint site collection. I have added a custom list inside my site collection. The site collection has the built-in group named "Owner", so is there a way ...
1
vote
0answers
63 views

Error when dowloading/reading the files from share point document libraries [closed]

The remote server returned an error: (400) Bad Request. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint....
0
votes
1answer
49 views

Null value handle for sharepoint

I need to do null value handling for setting sharepoint list column. So, I am using ternary operator for same. I am using client object model(jQuery/sp.js) myVar == null ? "" : myVar In browser ...
0
votes
0answers
123 views

Read the site pages using CSOM

I want to read the contents of the sitepages(.aspx) present in the site. How can I achieve it? Here is my pseudo code _context.Load(pageItem, tmp => tmp.DisplayName, tmp => tmp.ContentType, ...
3
votes
1answer
58 views

Where we should host remote event recievers? can they be hosted on any server exposed to the internet over it should be inside Azure?

I am in the process of migrating our SharePoint 2013 on-premises to Office 365. Now inside our SharePoint on-premises 2013 I have 7 event receivers which get fired when items are (created, creating, ...
1
vote
2answers
98 views

Using Object Model to Find Groups' Members Produces Frankentable

I modified the code here: How to get all users From Owners Group in SharePoint 2013 for a subsite to search for groups named "xxx Members" and their members. To the code, I added: function ...
4
votes
1answer
117 views

Is there a way to create a new list item with other user using Microsoft.SharePoint.Client namespace

We have a SharePoint list in which each user has permission to view only records created by him. I have a task to write a service that generates list items, list item must be created by another user ...
2
votes
1answer
180 views

Retrieve Followed sites of Office365 group team sites

i have below code to fetch the followed sites of my online and its working fine ..but when i am trying to retrieve the office365 group sites... this code doesn't return me those sites.. Any ...
0
votes
1answer
20 views

FieldLookupValue[] next assignment always replacing all previous positions - SharePoint Online

I have a ; separated string BusinessCategories. These values should be found as List Items in a custom list BusinessCategoryList, and I want to create a link to them in a multi value lookup field and ...
0
votes
0answers
42 views

Issue in adding multiple Managed Matadata fields

I am adding multiple managed matadata fields using CSOM. public static void createItem(){ // This is not working ListItem newListItem = existingList.AddItem(newItemInfo); string termguid1 ...
0
votes
2answers
105 views

executeQueryAsync not working in for loop

I have a function to start a workflow on multiple checked list items. It successfully identifies which items are selected and successfully starts the workflow, however it is only doing it on the last ...
1
vote
0answers
65 views

Custom Outlook form that saves data to SharePoint list

My requirement: A form with check-boxes, labels and buttons inside a outlook email that can take input from the recipient of the email and when submit button is hit should save data to SharePoint ...
0
votes
2answers
55 views

Can one install a C# program that uses `Microsoft.SharePoint.Client` into Sharepoint?

I wrote a C# Console Application that uses the Sharepoint ClientContext to access SharePoint. See https://gist.github.com/nddipiazza/d11423323e5febf8175a1c19e892ac9a for the example. I would like to ...
1
vote
1answer
40 views

Retrieve PDF file from Sharepoint 2010 using Context

Am struggling to get a pdf file from a Sharepoint 2010 site, I have managed to get a list of entries and found the file details. How do I now download the file? I got a root folder file downloaded ...
0
votes
0answers
48 views

Delete item in one library deletes same file from another site collection library

We have on premise environment and we do not have farm solution option as our farm administrators do not allow full trust app to deploy. The question is: I have a document 1 in a library in "A" site ...
0
votes
0answers
27 views

How to delete aggregations from a view of the sharepoint list?

Aggregations property is written quite clearly. I've learnt how to create Aggregations and set On/Off. But how to delete aggregations ? public enum AggregationsStatus { On, Off } public ...
1
vote
1answer
63 views

How to determine if object is loaded or not?

It's very easy. Just share some pieces of advice with me. Example - I need to load a view of a list: var view = _list.Views.GetByTitle("title"); //but returned view always is not null if(view != ...
1
vote
1answer
44 views

How to change a url of the list's view via client model?

I know how to create a view via ViewCreationInformation class using client SP model. But how I can specify a url for this view ? Is it possible ? In other words: var test = _list.Views.GetByTitle("...