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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [development]

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

0
votes
2answers
27 views

Can i using PnP script Update our custom list items “Status” field without affecting the ModifiedBy and Modifed fields

we have a sharepoint online classic team site. and inside the classic team site, we have a custom list titled "Project Management" which have a custom drop down field named "ProjectStatus", which have ...
1
vote
1answer
15 views

Powershell script to check if the migrated document libraires contain all the on-premises verisons

we want to migrate our sharepoint on-premises 2013 sit e to SharePoint online. and some document libraries contain very important documents to us. where these docuemnt libraries have minor and major ...
0
votes
0answers
9 views

Clipboard.getText() not working on sharepoint 2010

I have a gridview that has elements on each cell. I also have a link button to copy a cell in a particular row. I want to copy the cell to a clipboard instead of maybe taking it to a label or textbox. ...
0
votes
1answer
18 views

Access denied while changing ContentTypeId

I got an error when I have Contribute permission for site: Access denied. You do not have permission to perform this action or access this resource. my code is uploading the file and then trying ...
2
votes
1answer
18 views

How can we get the list items from multiple lists using Batch REST API?

I need to load all master data from multiple lists and bind it to from in form dropdown. For that I need to call every list separately. Is there any option to call all the list in one query using ...
0
votes
1answer
30 views

Unable to send email via SPUtility

I am trying to send email via SPUtility by trying the following code: bool blnIsEmailServerSet = SPUtility.IsEmailServerSet(web); bool IsSent; SPSecurity.RunWithElevatedPrivileges(delegate () { ...
0
votes
0answers
12 views

SPHierarchyDataSourceControl doesn't show all hierarchy when user has permission only to Document Library

I am working with SP2013 using SPHierarchyDataSourceControl to show the user a tree with all sites, document Libraries and folders in SiteCollection. I found a bug now: When User has permissions ...
0
votes
1answer
17 views

Can i restrict a App (which is deployed to our app catalog) from being added inside certain site collections

I have developed a client-side web-part by following steps simialr to those mentioned on this link Deploy your client-side web part to a SharePoint page (Hello World part 3) then i deploy the web ...
1
vote
0answers
16 views

How to display signature in SharePoint 2013 mobile version

I am using the following solution to display the a form of a digital signature in SharePoint NewForm of a list. This is the YouTube video for this solution and this is its blog post. But the problem ...
0
votes
1answer
35 views

Programatically add a user to people web part

I'm trying to programatically(c#) add a user to a sharepoint People web part on a modern page but with no success. I try to set the "persons"-property the same way it looks after adding a person ...
0
votes
1answer
37 views

What are the available options that we have to better optimize the horizontal space inside our modern pages

We have a classic online team site where we added a new modern page to it, and we set the modern page as the home page of the site. something as follow- But currently we have, 2 wasted horizontal ...
1
vote
1answer
27 views

How can I create webpack package of SharePoint online for react App?

I can create package of react app for SharePoint online by using "gulp serve" and "gulp package-solution" commands. However, I want to create package by using Webpack. How can I achieve this?
1
vote
1answer
24 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
38 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 ...
4
votes
1answer
58 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
1answer
47 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
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
54 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
78 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
23 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
26 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
15 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
36 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
51 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
46 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
38 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
74 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
88 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 ...
2
votes
2answers
28 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
23 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
64 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
23 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
36 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
40 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
48 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
156 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
1answer
26 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
116 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
36 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
61 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
56 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
1answer
26 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
47 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
40 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
68 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).
-1
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
36 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
21 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.