Questions tagged [development]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
2k views

How to remove write permission for all users from a file / folder

What I want to do Im trying to write a software that is able to remove write permissions from all unsers for a file or folder so noone can modify/delete/overwrite the file. What I already did I ...
0 votes
2 answers
1k views

the type or namespace name 'runtime' does not exist in the namespace

I'm writing a deployment application to programmatically deploy site collections and apply templates and master pages. When I try to build the application I get a bunch of errors about a missing ...
0 votes
1 answer
1k views

Add TaxonomyFieldValue to a TaxonomyFieldValueCollection inside my CSOM code

I am creating a TaxonomyFieldValueCollection as follow:- TaxonomyField deptField = clientContext.Web.GetList("/sites/Filing/lists/" + "FilingSystem").Fields.GetByInternalNameOrTitle("Fund") as ...
1 vote
1 answer
1k views

Add a custom CSS/JavaScript to the site's home modern page in a supported way

I am working on a modern team site >> and for the home page ONLY, i want to:- Hide the Site navigation bar, left-hand side navigation, page title and modify the float to remove the white space ...
0 votes
1 answer
2k views

Get size of a ListItem

I've been recently working a lot of scripting with Powershell 2.0 towards SharePoint 2010, tasked with building various scripts that would for example print some information about 10,000 lists, as a ...
0 votes
1 answer
3k views

Download a specific file from SharePoint (CSOM) using C#

I'm developing a C# based application that requires to download, checkout, upload, check in on a specific file from/to Sharepoint with CSOM. So I have two questions here: Firstly, on download, is ...
0 votes
2 answers
2k views

SiteUsers.GetByEmail() returns user not found error

I have a custom webpart in which I get the SPUser object from email address, see the code below. It was working fine for like an year now , but since yesterday it gives a "User cannot be found" ...
1 vote
2 answers
1k views

Get names from people picker and send mail to them by C#

I want to send mail to selected user in people picker control and CC to the his manager. Able to send the email to user. But how to get his manager email Id in C# Web part? Basically How to distribute ...
5 votes
1 answer
5k views

Register a global.asax into a SharePoint Site

I'm trying add a .asax file into a SharePoint site. I've been following this tutorial. It's quite simple but I'm new to web programming, and I didn't understand where I must insert (and how) the ....
2 votes
1 answer
2k views

Uploading large files to SharePoint via C# and CSOM

Sharepoint Version: 2016 I have tried many solutions but still am failing. One site which had a possible solution was: http://www.stuartroberts.net/index.php/2014/05/09/sending-large-data-csom/ but ...
0 votes
1 answer
1k views

Show all fields inside a Power apps form in a Vertical layout of 1 column instead of 3 columns on small screen sizes (mobile screens),

I am trying to make my Power Apps standalone have a responsive design similar to Bootstrap effect. where if we have a form with 3 columns, as follow: Now if we view this form using Power Apps mobile ...
7 votes
5 answers
14k views

400 Bad request when loading sharepoint site from client

I have this annoying issue when trying to connect to SharePoint site using Microsoft.SharePoint.Client: var url = "https://company.sharepoint.com/sites/ADV-DEV/assigDev/bassie/SitePages/Home"; var ...
0 votes
1 answer
2k views

Hover images(Enlarge image on Mouse Hover) from SharePoint list 2013

We had SharePoint list with image column. Our request, when some one keep mouse on image column, picture need to enlarge(hover). Can someone suggest direct how to achieve with code. Thanks in advance ...
0 votes
0 answers
12 views

Get a SharePoint list item using custom field inside my PnP Core SDK console application

I have a PnP Core Sdk console application, and I have a SharePoint list titled as "System Setting and Configuration", and it has a field named "SettingReferecne" & "...
2 votes
1 answer
2k views

Update retention label and sensitivity label using CSOM

I'm trying to update the retention label and sensitivity label of a file in a SharePoint Online Document Library using CSOM. I can update the Retention Label using the SetComplianceTag method and it ...
0 votes
2 answers
1k views

Inside my CSOM code how to convert UTC date time into date time as per the regional settings for the site collection

I have the following code to get the Created date time for a list item:- ((DateTime)item.Created).ToString("dd MMMM yyyy HH:mm:ss") + " )" now the date time i will get will be in ...
0 votes
1 answer
1k views

Access SharePoint Online via CSOM with access Token from Username/Password in Azure Functions

I want to access a SharePoint site with a Token, which I get by Username and PW (AcquireTokenByUsernamePassword). I get the Token and I can access the site via Postman without any problems, but in my ...
8 votes
2 answers
47k views

The remote server returned an error: (403) Forbidden

I am developing a C# console application on my local computer running on Windows 8. My target SharePoint server is SharePoint Online on Office 365. I am trying to get the web site name using web.Title ...
0 votes
1 answer
3k views

Change the Button colors, Font Color & Font Family for our SharePoint online modern UI

We have the following modern UI: Where we are trying to get the below UI, which have the following changes: Button color is different, Font Family is different & Font size/color is different , as ...
0 votes
0 answers
22 views

Connecting my on-premsies asp.net core console application with SharePoint online using ClientID, ClientSecret & Certificate. is this secure

I have developed an asp.net core 6 console application that is hosted inside an on-premises windows VM. and i am connecting to SharePoint uisng a clientID, ClientSecret & Certifficate, as follow:- ...
1 vote
2 answers
1k views

Apply-PnPProvisioningTemplate : The specified user c:0t.c|tenant|5*****c could not be found

I want to copy a site collection from one tenant to another. insdie the source i run this command:- Get-PnPProvisioningTemplate -Out c:\template20.pnp -IncludeSiteCollectionTermGroup inside the ...
0 votes
1 answer
1k views

Force browser to clear cache when changes has been added or updated in Visual web-part control file

I am working on visual web-part (SP 2016 on-prem) and it's control (ascx) file has HTML, CSS and jQuery code. When I made any changes inside it, then changes are not reflecting at end user's or client ...
1 vote
2 answers
3k views

Redirect to Login Page After Session Expired - SharePoint Custom Login Page

I have SharePoint web application. Need to redirect to custom login page after session timeout. Where is the exact location in web.config file to do this redirection or any code behind file or login....
1 vote
2 answers
3k views

Configure SharePoint Product Configuration Wizard Issue

I have installed Sharepoint 2013 in one Windows Server and SQL Server installed in another windows server. My Problem is when I configure Specify configuration Database settings in Sharepoint product ...
1 vote
1 answer
1k views

The workflow could not update the item, possibly because one or more columns for the item require a different type of information

I am working on an EnterpriseWiki Site collection, and i define the following workflow which fires when modifying the wiki page,, where its first step is to check if the Wiki page name & title is ...
0 votes
1 answer
13 views

GetSiteDesign Does not retrieve Document Sets Content Type

I am using CSOM, trying to create a template where the site already has document sets enabled. However, when I get the site script from the template site and I apply it to a different site, applying ...
0 votes
1 answer
3k views

CSOM code is raising this error "Version conflict." when trying to update ListItems inside foreach

I have the following CSOM code:- using (ClientContext context2 = Helpers.GetAppOnlyContext(properties.ItemEventProperties.WebUrl)) { try { ...
0 votes
2 answers
1k views

Acces Active directory users custom attribute from sharepoint

We have a custom attribute in Active directory for all users, say 'HCODE' and I have to access 'HCODE' based on logged in user and to pass that value to the SSRS reports. So far I have done this ...
0 votes
1 answer
1k views

Horizontal layout of list items

I have added a contact list to my team site (and I am showing only 2 fields; Name & Tele). Now I can control the Number of items to display inside the view, without any problem. My question is ...
0 votes
1 answer
5k views

Can we Embed Linkedin Page inside SharePoint

Inside our SharePoint online modern home page >> we have embedded our Twitter page and Facebook page. but we did not find any option to embed our LinkedIn page.. can anyone advice if this is ...
0 votes
1 answer
1k 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 ...
1 vote
2 answers
2k views

SharePoint 2013 Transparent Background Image

I am trying to insert a background image I have saved in my "Images" files in SP 2013. I have not done this in a very long time. I entered the following code snippet, but I'm pretty sure I need to ...
0 votes
1 answer
2k views

modifying a Sharepoint Online Excel file in C#

This is the follow up on this question I can't figure out how to write a data table (called datatble1) in C# to a Sharepoint Online Excel file called ExcelFile.xlsx. datatable1= dt1; using (var ...
0 votes
0 answers
24 views

400 Bad request upload file SharePoint online

When I am trying to upload a file using FileCreationInformation, I am getting a http 400 bad request error at the context.executequery() call. I can upload the file successfully using SaveBinaryDirect ...
0 votes
1 answer
1k views

Copying list items's attachments

I have to modify a .Net console application written in C#. The application references the following assemblies : Microsoft.SharePoint Microsoft.SharePoint.Client Microsoft.SharePoint.Client.Runtime ...
6 votes
1 answer
2k views

Setting an audience from declarative WebPart?

I have a module that deploys some page. I'm adding webparts to these page, using a <AllUsersWebPart> node within a <View>: <View WebPartZoneID="Body" WebPartOrder="5" ...
0 votes
0 answers
17 views

Trying to create a new property via REST API

My SharePoint buddy has created a new property in a SharePoint Online site for me called IsArchived. I can query that property using this REST API call: GET https://mycompany.sharepoint.com/sites/...
1 vote
1 answer
4k views

Encrypt sharepoint online list columns

I'm somewhat proficient in development but have basic knowledge about SharePoint and Sharepoint Online. I would like to add an encryption thing to my Sharepoint Online list columns make it possible ...
1 vote
1 answer
2k views

Moving a sharepoint folder from one site to another site using C#

I am new to SharePoint. I have given the flow below. • I have a button in visual web part called Archive. • On Click of the button I like to move the folder inside the site(A) to another site(...
0 votes
2 answers
1k views

Hide left navigation items in SharePoint 2013 programmatically

Currently I am displaying items on Quick Launch (Left navigation). These items come from Navigation Setting My requirement is to hide some items in the left navigation bar programmatically, how can ...
0 votes
1 answer
1k views

Sharepoint 2013 - Create custom page with code behind

I have many event receivers and, on error, I want to redirect to a custom page that will manage those errors. I know that I can create a custom page per Event Receiver with the creation of Mapped ...
1 vote
1 answer
2k views

Looking to retrieve user's groups in SharePoint

I am running SharePoint Foundation 2010. I have a claims based site setup to use a trusted token provider. I am passing it a set of claims that determine the user's group. They look similar to this: ...
3 votes
1 answer
3k views

How to make pagination through a SharePoint 2013 list view with GetItems and GetItemsInFolder?

I am developing a WCF service that retrieve items from SharePoint 2013 (Server Side Model), through views: var list = web.Lists[someLibGuid];//Document Library List var view = list.Views[0]; var ...
0 votes
1 answer
3k views

Unable to run "yo @microsoft/sharepoint"

I am trying to run my first SPFX as mentioned on this link @ https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/build-a-hello-world-extension .. but when i run yo @microsoft/...
2 votes
2 answers
1k views

List files and folders in Office 365 Sharepoint site

I'm hoping I can list and add folders and files to a specific Office 365 SharePoint site using Office 365 client API. (NOTE - I originally posted this Q to StackOverflow and was recommended to ask ...
1 vote
1 answer
2k 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 ...
5 votes
2 answers
3k views

How to create SPQuery by filtering date interval

I have a custom aspx form where I retrieve list items by filtering two values EventDate and EndDate. I have a realization but it returns nothing: DateTime eventDate = Convert.ToDateTime(properties....
2 votes
2 answers
2k views

Use CSOM To Pull Date Value From Date And Time Field

Using C# CSOM and this is SharePoint 2010 - I am attempting to pull the vale of a Date And a time field to my Winform. If I type in the immediate window listItem[“datetimefield”]; It will ...
0 votes
1 answer
2k views

Getting Custom Web Part Property Value Using C#

I am creating a method that will iterate through all of the web parts on a page in my SharePoint site. What I need to do is update a custom web part's, created by another company, property. I have ...
0 votes
1 answer
2k views

How to filter query with multiple condition in URL - OData

I want to filter the data with Type 'Com and State 'Disconnected'. With below code i am getting the exception. How do I fix this? Please help! $filter=(contains(Type,'Com') and contains(State,'...

1
2 3 4 5
92