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
0
votes
1answer
11 views

How to CheckOut, Update and CheckIn a new version of an existing Sharepoint Document in C#

I'm using C# CSOM to add documents to a Sharepoint library. I'm using the code below which works. How do I modify this code so that if the Document already exists in Sharepoint it will CheckOut the ...
0
votes
1answer
12 views

Get all content and child content inside a folder using sharepoint PNP framework

I can get all contents inside a SharePoint list like this: List list = oWebsite.Lists.GetByTitle("Documents"); ListItemCollection Items = list.GetItems(CamlQuery.CreateAllItemsQuery()); ...
0
votes
1answer
18 views

Can we preserve the colour code when exporting a list into excel sheet

I have a custom list where I applied a color coding for some fields as follow inside modern UI: But if I export the list as excel, the color code for the fields will be lost. As follow: So is there ...
0
votes
0answers
4 views

OfficeDevPnP.Core.AuthenticationManager is returning this error “The remote server returned an error: (401) Unauthorized.”

I have a .Net console application and i am using this code to authenticate to the sharepoint online:- static void Main(string[] args) { //customer sites string siteUrl ...
0
votes
0answers
9 views

How to create a visual web part

I want to create a visual web part that display a set of docuoments from a choosen library for SP2013. I know there is an OOTB Web Part, that doesn't work for me because it inherite security staffs ...
1
vote
1answer
43 views

Apply the list validation to only certain content types

I have the following formula inside the list validation: =IF(Status="Invoiced",IF([Customer Invoiced Date]<>"",TRUE,FALSE),TRUE)=IF(Status="Commission Paid",IF([...
0
votes
0answers
14 views

SharePoint 2013 Farm Solution dev : Bind c# list into JavaScript array

Here is my scenario, I am developing a farm solution that consist of a web part which show a Grid table showing all the document in a given SharePoint site, The back-end side (if may i say) is : List&...
0
votes
1answer
24 views

How to develop a Simple data entry form with 3 to 4 questions in SharePoint 2013

I want to do below tasks and need your suggestions: 1.Create a simple data entry form with 3 to 4 questions with one attachment and save data into a custom list when user open the data entry form ...
0
votes
1answer
18 views

How to find all subfolders inside a SharePoint Folder using PNP Framework

I want to find all the subfolders of a SharePoint folder using PNP framework. My current code is like this using (var cxt = new AuthenticationManager().GetACSAppOnlyContext(siteUrl, ...
0
votes
1answer
48 views

Sharepoint API creating folder 403

I am new to the SharePoint API. I am trying to create folders in a customer SharePoint solution. Problem is i'm getting a 403 return. My request.: POST https://companyname.sharepoint.com/sites/Test/...
1
vote
0answers
27 views

Copying and applying retention labels in sharepoint using C# script

I've got to transfer retention labels from one structure to another (same structure of directories) in Sharepoint. I've done a lot of research but I'm unable to find any solution for C# script code, ...
0
votes
1answer
20 views

How i can secure ClientSecret for my app which i am using inside SharePoint asp.net console application

I have the following SharePoint asp.net console application, which runs each hour using windows tasks scheduler :- string clientId = "e***"; string clientSecret = "****"; string ...
0
votes
1answer
36 views

SharePoint Development

We are currently using SP 2019 in Classic view, with the intent to going to the modern views eventually. We're on premise and using SharePoint Designer and InfoPath for our development. Being these ...
2
votes
1answer
36 views

Sharepoint online API creating folder 500 error

I am brand new to the SharePoint API. I am trying to create folders in a customer SharePoint solution. When I'm posting I get the following 500 error (fiddler): <?xml version="1.0" ...
0
votes
0answers
10 views

Is there GetFieldDefaults for class Microsoft.SharePoint.ClientDocumentManagement.MetadataDefaults

I am trying to retrieve the value after first setting a default for a field at a location using the method SetFieldDefault(SPFolder, String, String). The reason for this is we are finding that some of ...
0
votes
0answers
26 views

Query sharepoint list data in sql server [duplicate]

I am trying to query sharepoint lists data with sql server,for performance reasons. Is there any tool to help me do this? I heard about spud and SPViews but i am searching for something open source or ...
1
vote
1answer
26 views

Custom Document Library Details Pane

We're on SP2019 and wondering how we might go about creating a custom "form" for a document library. If we were on SP Online then I know PowerApps would be the answer here, but is SPFx the ...
1
vote
1answer
20 views

How to fetch all the document libraries into a FolderCollection for SharePoint Online C#

I am trying to get the name of the document libraries of SharePoint online into a FolderCollection using the below code. But it looks like I am not getting the display name of "Documents" ...
0
votes
0answers
16 views

CSOM code to loop through all groups and users assigned inside an item and grant them Read permission

I have the following code to define a unique permission for a list item and iterate over all the groups and users assigned to the item, as follow:- ListItem listItem = context.Web.GetList(context.Web....
3
votes
0answers
68 views

I am no longer able to debug/run my SharePoint Remote Event Receiver locally using Ngrok

Last month the below steps were working well for me to debug and test a SharePoint online remote event receiver locally:- Open Ngrok.exe >> run the following command inside ngrok:- ngrok ...
0
votes
0answers
26 views

Make SetIsOriginAllowed Safe for SharePoint WebAPI?

I'm working on a test WebAPI for SharePoint that is secured with Azure AD via bearer tokens. At first, I manually specified every allowed origin with a statement like this inside ConfigureServices ...
0
votes
1answer
24 views

Inside CSOM why I can populate a “People or Group” field using User object while I can not populate a “Managed Metadata” field using Term object

Inside my CSOM code, I can populate a "People or Group" field using User object, as follow:- var technician = context.Site.RootWeb.EnsureUser(SQLitem.Technician); context.ExecuteQuery(); ...
0
votes
0answers
16 views

Context.ExecuteQuery() will raise this error:- “System.NullReferenceException: 'Object reference not set to an instance of an object.”

I have the following CSOM code inside my asp.net core console application:- TaxonomySession txSession = TaxonomySession.GetTaxonomySession(context); TermStore tc = txSession.TermStores.GetByName(...
0
votes
1answer
11 views

How to restore a SharePoint 2013 site to a Specific Content DB by SSOM C#?

I have a .bak file of a SharePoint site. I want to restore it back. I am doing this with below code: var targetSiteCollection = webApp.Sites; targetSiteCollection.Restore(this._siteUrl, backupFilename,...
0
votes
1answer
29 views

Can we use CSOM inside .NET 5.0

I have created a new .NET 5.0 core console application >> but i am not sure if currently CSOM is supported inside .NET 5.0 ?
0
votes
0answers
17 views

ContentType FieldRef Format=DateOnly not working

I have DateTime field like this Field xmlns="http://schemas.microsoft.com/sharepoint/" Type="DateTime" Format="DateTime" DisplayName="...
0
votes
2answers
34 views

Is visual studio 2019 enterprise supports SharePoint 2016 development

Is visual studio 2019 enterprise supports SharePoint 2016 development and if it is supports which version of office developer tools supports?
0
votes
1answer
25 views

Approaches to integrate our Service Desk system with SharePoint Lists

We have a Service Desk system and using its REST API and on other Scenarios using its Database we need to fetch data from the Service Desk system and populate SharePoint lists. so I am trying to find ...
1
vote
0answers
25 views

Using AweCsome Framework to override sharepoint user fields (Author)? [closed]

I need to create/update one item in SharePoint using AweCsome Framework (https://github.com/OleAlbers/aweCsome) changing author field. How can I do this? When I try to accomplish i define the entity ...
0
votes
2answers
19 views

How to Overwrite Modified Date after SaveBinaryDirect?

I can push a file to SharePoint, but the modified date is always equal to the exact time I uploaded it. How can I overwrite the modified date to be equal to the value of the file? The code below was ...
0
votes
1answer
25 views

Can we have multiple attachment sections inside a list item inside our SharePoint online site

I have a custom list inside our SharePoint online site, currently we can add attachments inside the list items under the Attachments section, but my question is if we can using SharePoint or power-app ...
0
votes
0answers
27 views

CAML Query to filter out document sets based on values of Content Type

I have a document library with document sets that have Content Type (Name of Content Type is "FruitCategories") columns as "FruitName" (single line of text), "FruitPrice" ...
1
vote
0answers
22 views

Inside our Remote Event Receiver the Current value and the After value for a Rich Text Editor field will be different

I have the following Rich Text Editor field inside my sharepoint online with internal name = "ApproverFeedbackandnotesPowerBi":- and inside my remove event receiver i am checking the ...
3
votes
1answer
96 views

Add Handling page creation events in your SPFx application customizer

I have the following inside my application customizer SPFX extension, the code is responsible to load custom CSS inside the home page https://***.sharepoint.com/sites/customeroperations/sitepages/...
0
votes
1answer
26 views

“gulp package-solution” will raise this warning “- [package-solution] This is not a production build (--ship or --production)..”

I am following the steps inside this link @ https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/serving-your-extension-from-sharepoint to deploy my SPFX extension of type ...
1
vote
1answer
52 views

SPFX Application customizer extension only run if i run it locally and will stop working when I deploy to the app catalog

I want to inject some CSS to my SharePoint page, so I follow those steps to create SPFX Application customizer extension:- md app-extension cd app-extension yo @microsoft/sharepoint What is your ...
0
votes
0answers
22 views

Why the SPFX Application customizer extension only run on modern pages, without running on modern list views

I have created a new SPFX, with these settings:- Which type of client-side component to create? Extension Which type of client-side extension to create? Application Customizer and i added the SPFX ...
0
votes
1answer
26 views

Unable to Configure Session Timeout in SharePoint 2013

As per the Information Security Requirement of my Organization, I am trying to configure Session timeout after 15 minutes in SharePoint 2016 On Premise Application but unable to achieve the same. I've ...
0
votes
1answer
17 views

Confusing results on who is define inside the modern team site's site admin

I created a new SharePoint modern team site using the admin username & I defined the test user as the group owner, as follow:- now when I checked who is defined as site collection admin from the ...
0
votes
0answers
19 views

Modify my SharePoint Framework Extension to only run on the home page of the site + add a custom JS file

I am working on a SharePoint online modern team site, and I am following these steps to inject custom CSS inside my pages @ https://tahoeninjas.blog/2018/05/08/inject-custom-css-on-sharepoint-modern-...
0
votes
1answer
45 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/...
0
votes
1answer
18 views

Empty version in List item version history

I have a custom list and Problem is even if I am not changing the data and click on save the new versions are adding in my version history with out any changes.. Is there solution/code that it should ...
1
vote
1answer
93 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
0answers
18 views

WCF services doesn't require auth

I have created a WCF service endpoint for SharePoint, deployed in ISAPI, anonymous access is enabled on the web application at site collection level and the "Require Use Remote interfaces ...
1
vote
1answer
44 views

Why ItemEventProperties.AfterProperties will not return strongly typed fields

Inside our remote event receivers we query the list item fields, using these 2 methods:- using the ItemEventProperties.AfterProperties Or querying the list using CAML query. now in the first ...
0
votes
1answer
38 views

What are the implications of enabling CDN for our Organization asset library

I run this command to configure an Organization Asset Library:- Add-SPOOrgAssetsLibrary -LibraryURL https://contoso.sharepoint.com/templates -OrgAssetType OfficeTemplateLibrary we did this for the ...
0
votes
1answer
36 views

Can external users benefit from our Organization Assets Library

I created a document library to be used as organization assets library for our organization as mentioned in this link @ https://docs.microsoft.com/en-us/sharepoint/organization-assets-library .. and i ...
1
vote
1answer
16 views

How i can change the color of a single line of text if a People or Group column is empty or has a value

I have the following list view :- now i am trying to change the color of the Breaks field to be Red in-case the Engineer field has value, while make it Green if the engineer field is empty.. can ...
0
votes
0answers
14 views

How we need to manage the App Secret expiry without having any downtime

I have have been working with remote event receivers for long time but i have never thought that they actually get expired, so based on this link @ https://docs.microsoft.com/en-us/sharepoint/dev/sp-...
0
votes
0answers
14 views

My SharePoint Add-in which implement a Remote Event Receiver is raising this error:- “This App's Credentials have expired”

I have a sharepoint add-in which implement a remote event receiver, and today i wanted to add it inside a new site, but when i try to add the sharepoint add-in the got this error:- now i have ...

1
2 3 4 5
88