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
0 answers
5 views

Is there an API which mimic Share a file and define "People you chose" which can be new/existing external users?

Inside the SharePoint UI we can share a file with "People you chose" and we can define both internal users, new external users or existing external users, as follow: Now I have a Power ...
0 votes
0 answers
17 views

C#: How to access MFA enabled SharePoint 365 Excel file via unattended application

I am new to programming SharePoint access in C#. We have a SharePoint 365 site with MFA enabled. I want to read an Excel file from the site and process it in my C# program. I am using .NET Framework 4....
0 votes
1 answer
38 views

Get all Folders and Files recursively in SharePoint online with CSOM in C# and store it in one list where I can work with it

my current code get all the folders from a root site. After that it uses the itemId. From that itemId it gets the subfolders and files. I don't know how I can store the Id's persistent that I can loop ...
0 votes
0 answers
16 views

Random error: The request was aborted: Could not create SSL/TLS secure channel

I'm writing a C# Winform application with the help of CSOM library. I need to navigate a SharePoint site and, when I point a PDF file. I need to download it and show it. The basic routine (I found on ...
  • 101
0 votes
1 answer
36 views

.Replace() will return empty string inside my Powershell script

I have the following PnP PowerShell to get the URL of a file and remove the ".lock" string from the file name using Replace:- $url = $item.File.ServerRelativeUrl Write-Host "$(Get-Date) ...
0 votes
1 answer
20 views

Unable to get the file which have '.lock' extension inside PnP PowerShell script

I have this PnP PowerSell script to get all files which have .lock extension:- $AllItems = Get-PnPListItem -List $Library -PageSize $BatchSize -Fields ID -ScriptBlock { Param($items) $global:counter +=...
0 votes
0 answers
19 views

Getting list of all users that are currently co-editing document

I have some enquires on getting all the users that currently co-editing the document, I am aware of a column in documents page called "Modified By", which I can get it by using SPList. ...
  • 3
0 votes
0 answers
14 views

SharePointOnlineCredentials does not contain GetAuthenticationCookie

I've accepted some work using SharePoint. I need to discover the APIs and call them. I've looked for examples and followed one that looks like this: var siteUrl = "https://contoso.sharepoint.com&...
  • 101
0 votes
1 answer
29 views

Create a tree view in c# on SharePoint Online Document Library Basis with CSOM

I want to create a Treeview in C#. My basic data is stored in a SharePoint Online DocumentLibrary. I authenticate with a user and I want to show the folders and files as a tree view in Azure function ...
0 votes
0 answers
16 views

Bing Map integration Vs Built-in premium Maps control inside Power Apps

We have the following requirements :- we have a sharepoint list named "Locations" which store; Location-Title, location-Address, Number-Of-Users, Description we need to show all the ...
0 votes
0 answers
36 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 ...
0 votes
0 answers
18 views

Sharepoint C# Data Transfer Date Issue

I transfer data from one tenant list to another tenant list with c#. I'm passing the date columns into a string value. Received data; 3/1/2023 18:00 String value; 3/1/2023 18:00 Value written to the ...
0 votes
0 answers
10 views

Copy file and version history is not working properly using C# in SP 2019

In the code below, I am copying a file from root web library to a sub-web's library. The issue is that Modified by, Created by, and Modified are not being copied/set properly. Perhaps there are other ...
0 votes
1 answer
35 views

How i can deploy an Azure Function needed for an SPFx web part

I want to install the react-chatgpt-app SPFx from https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-chatgpt-app . and as part of the prerequisites is that we need to install an azure ...
0 votes
1 answer
75 views

It is fine if we store the Chat GPT api key inside the SPFx web part properties

I want to embed a chat GPT inside our SharePoint and i found this web part @ https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-chat-gpt .but the issue is that it stores the Chat GPT ...
0 votes
1 answer
55 views

Get all Files and Folders and subfolders from a Root Site in a tree view with C# in a PNP Core Framework

I'm currently using PNP Core Framework with a "normal" console application. I want to get all Files and Folders from a specific Document Library. How can I do this in a simple way? I tried ...
0 votes
0 answers
17 views

Can i loop thorgh all the permissions inside a list item and grant them read permission using PnP Core SDK

I have the following list item which i am breaking its permission inheritance using PnP core SDK, but how i can loop through the current permissions (SharePoint groups, office 365 groups, single users)...
0 votes
0 answers
12 views

FieldUserValue and FieldLookupValue get data

foreach (ListItem item2 in items2) { /*var myitem = item2["Author"] as FieldUserValue[]; foreach (var x in myitem) { ...
0 votes
0 answers
29 views

Unable to set the Default Values for our folder using PnP Core SDK

I have a managed metadata field named Customer as follow:- and using PnP Core SDK inside Azure Function >> i am trying to set a default value for it inside the folder:- here is the code, where ...
0 votes
0 answers
27 views

PnP core SDK code.. Error "Property PermissionRead does not exist in this entity"

I have the following PnP core SDK code to get a field named "PermissionRead" which is of type People or Group :- try { using (var context = await ...
0 votes
0 answers
18 views

Get the SharePoint "People or Group" field values and add them inside a folder's security/permission

I am working on building a Azure function which contain PnP Core SDK. the azure function need to do the following:- loop through all list items with status = New >> for each list item >> ...
0 votes
1 answer
35 views

Can we add users, sharepoint groups, Office 365 groups & Security groups using ListItemAllFields.AddRoleDefinitionAsync()

I have this code from this reply @ Stop Permission Inheritance >> set unique permission .. is this possible using PnP Core SDK .. to add a user to a folder permission:- using (var scope = host....
0 votes
1 answer
25 views

Stop Permission Inheritance >> set unique permission .. is this possible using PnP Core SDK

Can we perform the following actions using PnP Core SDK @ https://pnp.github.io/pnpcore/? Access the permission of a folder Stop Permission inheritance Set unique permission please i do not want ...
0 votes
0 answers
20 views

Set the "Column default value settings" using PnP Core SDK

We have a document library which have 2 managed metadata columns as follow:- so can we set the default values for the folders using PnP Core SDK @ https://pnp.github.io/pnpcore/? currently we do so ...
0 votes
0 answers
23 views

Argument of type '[]' is not assignable to parameter of type 'IDropdownOption'

I have the same Problem, as here: Argument of type 'string' is not assignable to parameter of type 'IDropdownOption[]' But the error is a little bit other: Argument of type '[]' is ...
0 votes
1 answer
27 views

Using https://github.com/pnp/pnpcore for a new project, is it s right appraoch, and what are the Microsoft alternatives for it

We want to start a new project now we are planning to develop it using those technologies:- Azure Functions This library https://github.com/pnp/pnpcore so is this a right approach to use this open ...
0 votes
0 answers
15 views

Can i use AadHttpClient to call SharePoint online enpoint, similar to using SPHttpclient

Can i use AadHttpClient to call SharePoint online endpoints, similar to using SPHttpclient? If the answer is Yes, then when we should use AadHttpClient and when we should use SPHttpClient ?
0 votes
1 answer
10 views

How Would You Attach the Same Uploaded File to Several SP2019 List Items Using C#

I have a form on a .Net application page that allows a user to apply to multiple open positions at once with an attached resume. I need to be able to attach the resume to each SP list item that is ...
  • 1,129
0 votes
1 answer
32 views

SPFx to add watermark to PDF before downloading it

We need to develop SPFx web part, which show pdfs from our document library inside SharePoint online site collection. and we need the SPFx to add bookmarks to the pdf on runtime before downloading it, ...
0 votes
0 answers
19 views

sharepoint 2016 where to find span tag in aspx

I am a newbie on sharepoint need some help here. I am working backwards here. I am using Chrome browser to inspect an aspx page, and found a tag that I want to make changes. But checking the .aspx ...
0 votes
2 answers
46 views

Parameter 'Web' is obsolete. The -Web parameter will be removed in a future release. Use Connect-PnPOnline -Url [subweburl] instead to connect

I have this PnP Power-shell to loop through all sites >> then all libraries >> then list all the main folders inside the libraries. $AdminUrl = "https://****-admin.sharepoint.com/&...
0 votes
0 answers
46 views

Why i can not add "-PageSize" to "Get-PnPFolderItem" so we can get all the folders even if we have more than 5000 folders?

I have this PnP Power-shell to loop through all sites >> then all loop through libraries >> then list all the main folders inside the libraries. $AdminUrl = "https://****-admin....
0 votes
1 answer
21 views

Unable to get "schemaXml" for a field using Rest API

I want to get "schemaXml" for a field, using this Rest API: https://***.sharepoint.com/_api/web/lists/getbytitle('Documents')/fields?$filter=Name eq '_EndDate'$select=schemaXml But I got ...
0 votes
1 answer
51 views

Export our PnP variables and outcomes to CSV file

I have this script to loop through all site collections >> and all document libraries >> then list the folders in this format "Site Name >> List Name >> Folder Name":...
0 votes
1 answer
43 views

Right User Permissions to use ListItem.GetUserEffectivePermissions method

I'm currently using a SharePoint account as a Service account to get files and share them in an application I'm working on using CSOM. I filter the files according to the logged-in user to check if ...
0 votes
1 answer
25 views

Different technologies to interact with SharePoint and External systems inside our SPFx web part

I am developing 2 SPFx web parts. one which shows items from a SharePoint list and the other shows items assigned for the login user from SLACK. now for the technologies, to connect to the SharePoint ...
0 votes
0 answers
18 views

Get the field schema inside our sharepoint online site

I have the following 2 powershell commnds, to cohhect to a site:- PS C:\WINDOWS\system32> $ctx = Connect-SPOService -Url https://****-admin.sharepoint.com PS C:\WINDOWS\system32> $s = Get-...
0 votes
1 answer
25 views

Get-PnPField on the web/site level and not on the list level. is this possible

I have this PnP Powershell script to get a field on the list level and hide it from the New form:- Connect-PnPOnline <tenant-site-url> $ctx = Get-PnPContext $field = Get-PnPField -Identity <...
1 vote
0 answers
35 views

CSOM Updating List Item in Large List throws Threshold Error

Background: Have a large document library (25K+ Documents) in a SharePoint Online Website. We migrated this Document Library from SharePoint 2013. This library has a few MetaData Lookup columns ...
  • 11
1 vote
1 answer
93 views

CSOM vs PnP Core inside our Azure Functions

I want to write an Azure Function deployed inside Azure and which run on timer schedule. but i am not sure which library i should user, either:- CSOM PnP Core what are the main differences and when ...
1 vote
1 answer
58 views

Are Remote Events Receivers still an Up To Date approach to follow

I want to run some logic after creating SharePoint online list items, the logic will be very complicated/lengthy to write inside Power Automate. so is creating a remote event receiver a valid ...
0 votes
0 answers
13 views

Set the Column Default Values for newly created folders inside SharePoint using Power Automate

I have the following term sets:- and i have a list which contain the Main folder names:- and I have a list which contain the SubFolder names, each item will be linked to the above 4 term sets:- now ...
0 votes
1 answer
21 views

How to create customize CreatePage.aspx in sharepoint 2016

I am new to Sharepoint, need some help here When create a new page in the CreatePage.aspx we need to enter the url name, it will forbid the special characters(shown as pictures), but my problem is the ...
0 votes
2 answers
32 views

Hide all Content types from "New button"

I am trying to delete the remaining content type from the new button in my library. I am getting this error constantly which is weird since I am able to make the changes through the UI. Any help would ...
0 votes
0 answers
22 views

Managed metadata passing as a hashtable

Currently I am using the below code in order to create a new file with some metadata columns or update an existing one based on the TargetLocationURL variable. using (Stream fs = File.OpenBinaryStream(...
  • 319
0 votes
1 answer
27 views

Can we have a translation for the list views similar to how we alternate News Pages

I have a private team site >> and i enabled 2 languages "English" + "Arabic", as follow:- where we are able to create new pages and translate them. but can we do the same ...
0 votes
0 answers
16 views

Multi-Language is not working for Private Team site's Site Navigation + Site Name

I have a private team site >> and i enabled 2 languages "English" + "Arabic", as follow:- but i am unable to translate the site name, where there is not any option to do so:-...
0 votes
2 answers
28 views

Automate the execution of a Power Shell script which connect to `Connect-ExchangeOnline`

We have the following Power Shell script, to get the logs for SharePoint sites:- Connect-ExchangeOnline $OutputFile = ".\UnifiedAuditLog_FULL.csv" $Today = Get-Date -Date (Get-Date -Format “...
1 vote
0 answers
25 views

What are the technologies i need to know to be a Microsoft Project server developer [closed]

I am a SharePoint (online & On-premsies) developer with these skills:- SPFx Remote event receivers & server side Event receiver Power Platform; Power Apps 7 Power automate. Now i want to ...
-1 votes
1 answer
66 views

Get-PnPFile which allow to create the folder path if the folder path does not exists

I have this command to get a sharepoint file and save it to local folder;- $file = Get-PnPFile -Url $Attachment.ServerRelativeUrl -FileName $AttachmentFileName -Path $Attachmentpath -AsFile -Force ...

1
2 3 4 5
91