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
1answer
20 views

How to return user email from a custom column “Owner” to an XML from sharepoint online list using CSOM?

How to return user email from a custom column "Owner" to an XML from SharePoint online list using CSOM? This works but bug exists as it sends Microsoft.SharePoint.Client.FieldUserValue[] ...
0
votes
1answer
20 views

Getting Links from an internal web page

I have an internal company's web page and I need to extract a link from that page what I tried is using (var client = new System.Net.WebClient()) { ...
1
vote
1answer
25 views

CSOM SharePoint Search API filter files only

Using CSOM Search API is there a way to filter for only files? Something similar to the following ListItem filter would be ideal: ListItem.FileSystemObjectType.Equals(FileSystemObjectType.File) Ex ...
0
votes
1answer
23 views

How to get ListItemCollection.Files paginated results

I have the following method in place and trying figure out how to update for paginated results using int pageSize & int page parameters. Currently I have pageSize working using CamlQuery RowLimit, ...
0
votes
1answer
28 views

CSOM ListCollectionItems count based on folder path performance issues

I have a design requirement to get total count for ListItemCollection based on Files specified by Folder Path. I currently have the following code in place: using (ClientContext spClientContext = ...
0
votes
0answers
14 views

integrate Azure form Recognizer with SharePoint online document library

I want to extract info from uploaded documents inside SharePoint.. the documents have standard info such as first name , last name, but have more complicated elements such as Check-boxes & ...
0
votes
0answers
17 views

SharePoint 2019 remote event receiver is not firing when receiver service is https enabled

From c# application using CSOM, I have registered events on a particular document repository. Also hosted a RemoteEventService a WCF service which implements IRemoteEventService and implemented ...
0
votes
2answers
18 views

Tag Multiple Files

My scenario : I have over 10k files in different sites. They all have the same content type (same amount of columns) and are found in folders/ subfolders. I need an effective and quick way to add the ...
0
votes
0answers
9 views

SharePoint 2016 on prem - Get managed property UIVersionStringOWSTEXT

I would like to get the latest version of a specific document in our SharePoint environment using document-id and search (within my c# code). There's a managed property called UIVersionStringOWSTEXT ...
0
votes
1answer
15 views

File object created and modified property values vary from ListItemCollection and FileCollection

I noticed some differences in values when calling File obj Created and Modified properties from ListItemCollection and FileCollection. Details below: Below is some old code that fetched files from ...
0
votes
1answer
24 views

CSOM File object ID property

What is the correct way to initialize or call File obj ID property? I don't see it as a default object property. I also tried calling via: File.ListItemAllFields["ID"] That failed. I did ...
0
votes
2answers
20 views

Can we create a custom permission level on our custom list which allow users to create items without been able to view/edit them

We have a custom list inside our SharePoint online >> and we want to create a custom permission level to allow users to create new items, but without been able to edit or even view them. Is this ...
0
votes
0answers
14 views

Unable to hide a column from the New form using PowerShell. Error “”The node to be inserted is from a different document context.“”

i have a field of type drop-down with internal name = TicketingType, so i tried the following power shell:- PS C:\WINDOWS\system32> Connect-PnPOnline -Url "https://0**.sharepoint.com/" -...
0
votes
1answer
11 views

Retrieving files from sharepoint returns empty value array

I am able to retrieve list and list items just fine: var client2 = new RestClient("https://preactdk.sharepoint.com/sites/mysite/_api/web/lists/getbytitle('mylist')/items"); client2.Timeout = ...
0
votes
0answers
45 views

Gulp serve “Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.”

I want to build a SharePoint web-part, so i run these commands:- yo @microsoft/sharepoint Gulp serve but when the browser opens i will get an empty screen instead of getting a SharePoint web part + ...
1
vote
1answer
57 views

SharePoint how to ensure user in spfx

I have a question regarding SharePoint development. I'm working on a SPFX webpart for SP2019, the webpart is going to retrieve data from external source and the data will contain AD users. In my ...
0
votes
0answers
24 views

CSOM-Sharepoint online console app c# 'ServerVersion' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'

I am developing a simple code to retrieve item from Sharepoint online List. But on debug, I found an exception is thrown saying ServerVersion 'ServerVersion' threw an exception of type 'Microsoft....
0
votes
1answer
34 views

URL to provision Microsoft New Employee Onboarding sites [closed]

I am reading this article @ provision-neo-hub on how to provision NEO hub sites, but when i click on this link :- I will be redirected to a page to provision the "MICROSOFT 365 LEARNING PATHWAYS&...
0
votes
0answers
29 views

ServerRedirectedURL has no value

Do you have any idea on what maybe the reason why I am getting empty string when using GetWOPIFrameUrl, also having null values on ServerRedirectedURL, ServerRedirectedEmbedURL, and ...
0
votes
0answers
20 views

Executing a CAML query will return this error: “Specified argument was out of the range of valid values. Parameter name: index”

I have the following code inside our console application, to loop through a list of number and query the SharePoint list which is inside a modern communication site: foreach (var r in allrequests....
1
vote
0answers
103 views

I am no longer able to use OfficeDevPnP.Core.AuthenticationManager OR PnP.Framework.AuthenticationManager().GetACSAppOnlyContext

I usually run those command inside my CSOM code to authenticate to Office 365 using ClientId + ClientSecret:- using (ClientContext context2 = new PnP.Framework.AuthenticationManager()....
0
votes
0answers
17 views

Microsoft.IdentityModel.SecurityTokenService.RequestFailedException: Token request failed

I have a .net console application which have this CSOM code:- using (ClientContext context = new PnP.Framework.AuthenticationManager().GetACSAppOnlyContext(RisksiteUrl, clientId, clientSecret, ...
0
votes
1answer
14 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
22 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
27 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
19 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
13 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
51 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
26 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
31 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
69 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
29 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
27 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
43 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
45 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
15 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
70 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
23 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
17 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
82 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
66 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
23 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
37 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
18 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
54 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
28 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
2 3 4 5
88