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

Questions tagged [development]

The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.

1
vote
0answers
10 views

Programattically Imposing Size and Type Restriction on a List Attachment

I'm using the code below to allow users to upload files as attachments to items in a SharePoint (2010) List. How can I add type and size restrictions to the attachment, for example, if I wanted the ...
1
vote
1answer
12 views

Managing the metadata of Document Sets using C# and CSOM

How to manage the metadata of document sets using C#+CSOM. Any sample code is appreciated. below is the code i tried for creating the document set. .... ..... ContentType ...
3
votes
1answer
26 views

Can i add a JS Link to a list view in modern interface

I have the following JS link , which i have added to classic interface inside our sharepoint on-premises 2013:- (function () { function registerRenderer() { var ctxForm = {}; ...
1
vote
0answers
30 views

Remove User from SP Group without being a Full Control User Programmatically C#

I have a situation where I am creating a "Secondary Admin" role within a custom project I am building. I need the second admin to be able to remove a user from a group without giving the permissions ...
0
votes
0answers
8 views

wpf datagrid how to delete first row and add first rows again and get focus on first cell [on hold]

Code ViewModel SalesMasterDetailInfoModel salesMasterDetailInfo = new SalesMasterDetailInfoModel(); SalesEntryCollection.Clear(); SalesEntryCollection.Add(...
0
votes
1answer
28 views

Capabilities we can have inside remote event receivers

I have an on-premises SharePoint 2013 site, and the site has a custom list, and this list has an event receiver linked to it, where the event receiver do the following steps, when a list item is ...
0
votes
1answer
31 views

SharePoint Online/365 invite external user CSOM PowerShell vs C#

I have a PowerShell script that sends a user an invitation email. Which works. The user I'm testing with gets an email invitation to access the SharePoint site each time I run it. I got the script ...
1
vote
1answer
50 views

How to get ClientContext in Sharepoint Online with JSOM

var context = SP.ClientContext.get_current(); throws this error, Uncaught ReferenceError: SP is not defined the snippet works fine in SharePoint 2013, Are there .js that I need to load? if yes, ...
1
vote
0answers
20 views

Issue with saving attachment to a new list item

I'm having an issue with adding attachements to a newly created SPList Item, the list item is created via a custom submission form built with ASP.NET and C#, I'm using the asp:fileupload control as ...
2
votes
1answer
23 views

How to get custom reusable workflow feature in CSOM?

I have created a custom reusable workflow in SharePoint Designer. I am facing an issue after deployment of workflow. I have to activate the workflow feature with CSOM but I am not able to get that ...
1
vote
0answers
14 views

Insert Look up Fields in list dynamically

I have a scenario in which the user will upload Excel files in a document library created in the Root Web in a predefined format. There are two properties in the document library for SiteName and ...
1
vote
0answers
33 views

How to remove list from site when spfx web part removed?

Modern SPFx web part creates a new list 'abc' using code when it is added to site contents. Now I want to remove list 'abc' automatically when web part is removed from site contents(using code not ...
1
vote
0answers
18 views

How to Generate Audit log Excel Report programmatically in SharePoint Online?

I am using below code to enable Audit report. Microsoft.SharePoint.Client.Site site = targetCtx.Site; Audit audit = site.Audit; targetCtx.Load(site); targetCtx.Load(site.RootWeb); ...
1
vote
1answer
33 views

How to add a GridView to a Visual Web Part?

I'm new to SharePoint and am developing a simple World Clock Visual Web Part, following this blogpost from SharePoint Hero. In the blogpost the instructor describes adding a GridView to the Web Part, ...
0
votes
1answer
37 views

Getting data from another website using C# and displaying in a web part

I'm trying to read information sitting in another wesbsite using C# and displaying the result in sharepoint 2010 web part. I read about httprequest but I'm failing to implement it. Please anyone help ...
1
vote
1answer
31 views

C# - How to add document with REST API in SharePoint 2016 On-Premise

I want to GET documents With SSOM in SP2007 and upload with REST to SP2016 This SSOM code for create doc library: (Working): private void CreateList() { var digest = GetFormDigest(); var ...
1
vote
1answer
45 views

Best JS framework(Angular/React/Vue) to use in SharePoint 2013 [closed]

We have tools (Basically CRUD operations in multiple lists across sites/site collections. Handles large amount of data and has lots of business functionalities/logic) that were built using jQuery and ...
1
vote
2answers
25 views

Display account info in SharePoint web part

can we get the user profile details in web part using JSOM I am looking for a profile web part to show this info user profile image user email user job title user extension any help would be ...
1
vote
0answers
22 views

Using Azure CDN for Sharepoint assets

I would like to use Azure CDN for my static files located in Images library for example, is this possible, I couldn't find anything how to do this? This is not for the web parts, but just for assets, ...
0
votes
1answer
36 views

Workflow is not triggering when the sharepoint list item is updated programmatically

I am using the following code to update the list item and trigger the workflow. But the workflow is not triggering when the item is updated. Any thoughts on this. using (SPSite site = new SPSite("...
0
votes
1answer
22 views

Export a complete list of sharing created into SharePoint online

I need to export from SharePoint Online (365) a complete list of all links of sharing created in the past. I need it to verify if external users can access to some files on SharePoint. I already ...
0
votes
2answers
33 views

Stoplight Indicators Pulling From Multiple Columns

I have a requirement asking for some crazy If/Then statements for stoplights. Fields I have: Need Date Column = Date/Time field Open Date Column = Date/Time field Modified Date = Date/Time Field ...
1
vote
1answer
39 views

JQuery / CAML Undefined Error

I found some code on line, see below, and changed it to meet my needs but when I run it I get: Due Date undefined This is the only value in the list, but it should look like: Due Date 01/31/2019 ...
1
vote
1answer
37 views

How to get access token to create a list

I'm trying to create a list with javascript. From the Sharepoint API Documentation: url: http://site url/_api/web/lists method: "POST", body: { '__metadata': { 'type': 'SP.List' }, '...
0
votes
2answers
140 views

Error when using MSGraphClient

Today I tested some of my apps created with SharePoint framework and they started to show a errors in the webparts and extensions that use MSGraphClient. Before it was working normally. I am ...
0
votes
0answers
15 views

Set Item list Permission on a custom list sharePoint using c#

I have two custom lists on sharePoint 2013. One of them is the list of employees and another one is the list of employee numbers with their managers. I would like to find the manager of the employee ...
0
votes
1answer
23 views

Visual Web Part cannot be found or is not registered as safe, and isn't being added to web.config

I'm new to SharePoint development, and I'm making a basic Visual Web Part with Visual Studio 2015, which currently only displays a header. It successfully builds and deploys, however the SharePoint ...
0
votes
2answers
56 views

SharePoint REST API returns 404 for document library but is working for lists

I am using C# HttpClient to query odata from Sharepoint. This works wonderfully if I am accessing a list. I generate the SharePointOnlineCredentials to get authentication cookie and then I pass the ...
1
vote
1answer
34 views

Can the latest versions of SharePoint support code snippets?

I want to create a dashboard at work. Due to company restrictions, our best bet is to create one in SharePoint. This means we have to extract the data from an Oracle DB and use the data to create the ...
0
votes
1answer
40 views

Using Azure AD app as connection to SPO for app

Im developing a SharePoint provider hosted add-in and i thought about using NET Core2. That would mean "de-linking" from the Sharepoint Provider add-in (auto created in visual studio) and adding ...
0
votes
2answers
42 views

How to create a list item using javascript

I found some code to put a stopwatch on a site page. I want the user to enter their name and the task they are performing and start the timer. When they stop the timer I want the Name, Task and Time ...
0
votes
0answers
24 views

Display selected pdf in iframe dynamically

I'm looking for the answer or some sample code to help with the following question. I have a library with PDF documents in it and a content editor web part underneath. When I select a PDF item I would ...
0
votes
1answer
25 views

Code customizing

I have a document library with a deadline column and a status column. If the deadline expires, the date will be red (see code). Now, additionally, when the task status is closed, the date should turn ...
0
votes
1answer
25 views

wrong datetime returned in caml query in c#

I have custom list in sharepoint 2016 on-premises. There are several columns in DateTime type. I need to query this list in C#, but when I run my query I get wrong dates - I get always the day before ...
1
vote
1answer
35 views

CSOM - Trying to access “Client_Title” from a page in a list - “The property/Field has not been initialized … ”

I'm trying to access the "Client_Title/Page Title" from a page in Site Pages using Client Context and "listItemId". It seems that I'm not requesting or loading it the correct way. When debugging I ...
0
votes
1answer
60 views

How to get all Folders tree of a specific user with all the folders( or files ) permissions?

I am new to the SharePoint development. I want to write a C# code that will scan the sharepoint site and return the tree structure of all folders for specific user. It should also show the ...
0
votes
0answers
7 views

Securing SPO Provider Hosted Add-in

Before i start implementing my own custom security i thought i'd ask around perhaps you guys have any tested approach. I have a SPO Provider hosted add-in (hosted in azure) and i need to secure it. ...
0
votes
1answer
28 views

Creating an entry as item list from another document library

I have two document libraries. Whatever is in document library A, I would like to get an entry in library B as item list with the following properties (Name and itemCode).
0
votes
0answers
11 views

Creating entries of document library document items and its properties to another document library

I am trying to create an entry for each item in Dl_1 to Dl_2 document library with it properties. document libraries have similar columns. using(SPSite site = new SPSite("sharePointSite")) { ...
0
votes
1answer
31 views

Is there a way to force the sharepoint RSS viewer web part to get the latest 5 RSS feed items

I added an RSS viewer web part to our sharepoint online site page, and i define this RSS feed url http://feeds.bbci.co.uk/news/world/rss.xml + i define to get 5 items as follow:- now i thought that i ...
0
votes
1answer
20 views

Getting the list of files in a SharePoint document library and create entries of file names in a list using c#

I have a document library containing folders and files. I would like to get the name of files and folders to store in a SharePoint list.
0
votes
1answer
29 views

Finding a folder in a SharePoint document library by using C#

I have a list that stores the name of folders, I need to write a piece of code to find the folder in my document library and set the permission to contribute. if the folder does not exist in my ...
0
votes
1answer
27 views

CAML Query : Where clause not working with View tag & RowLimit

I've reached the maximum view threshold limit on a SharePoint List, with a little more than 5000 item in it. When I raise the limit in the webapp's settings, everything is working fine, but I would ...
1
vote
1answer
44 views

Can i force my Calender's events to open in a new tab

I am working on a sharepoint online classic team site. and i have added a Calendar list named Events. but inside the calendar view, when i click on an event, the event's display form will open inside ...
0
votes
2answers
30 views

How to add data to site programmatically

Let me start by saying that I do not have too much experience with Sharepoint. We have an in house Sharepoint site that users can go and enter data (less than 10 fields) and run some reports on that ...
0
votes
1answer
48 views

How to create formula based on column value

I have a column in my SharePoint list named "Container Content." When adding a record in SharePoint you can choose one of three items in this column, it is a choice column. The three items you are ...
0
votes
2answers
22 views

How would I hide 2 columns in SP13 if column A if the answer is No in SP13?

I'm haggling over how to "hide" 2 columns when a specific column drop down answer is "No". Assuming I use JS, would I save the script in Site Assets and refer the link on CEWP? Here's the script I ...
0
votes
0answers
13 views

How To Get Sharepoint Online Migration API Logs (using c#)

Note: I asked this question earlier on stackoverflow, not realising that it might fit better here. It is specifically about programming tools though, so what is the policy for questions that could be ...
0
votes
3answers
50 views

edit list without permission in C#

i need help wit this I want user to edit list items (insert) without having a permission of edit for that list in c# how can i do that?
0
votes
2answers
49 views

How to redirect users to a different page/URL on a SharePoint save button click in New item form?

I am having an issue about redirecting users to a different URL on Save or Cancel button. First of all I have used below code to change SharePoint list new item form's Save button to Submit. <...