Skip to main content

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
1 answer
41 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 ...
jpollar's user avatar
  • 1,107
0 votes
1 answer
333 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, ...
John John's user avatar
0 votes
2 answers
160 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/&...
John John's user avatar
0 votes
1 answer
101 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 ...
John John's user avatar
0 votes
1 answer
491 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":...
John John's user avatar
0 votes
1 answer
120 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 ...
Ahmad Adel's user avatar
0 votes
1 answer
72 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 ...
John John's user avatar
0 votes
1 answer
72 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 <...
John John's user avatar
1 vote
0 answers
129 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 ...
ckas's user avatar
  • 11
1 vote
1 answer
352 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 ...
John John's user avatar
1 vote
1 answer
80 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 ...
John John's user avatar
0 votes
1 answer
95 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 ...
chariot's user avatar
0 votes
2 answers
58 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 ...
Dan-Robert Samoila's user avatar
0 votes
0 answers
36 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(...
jimas13's user avatar
  • 318
0 votes
1 answer
55 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 ...
John John's user avatar
0 votes
2 answers
46 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 “...
John John's user avatar
1 vote
0 answers
41 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 ...
John John's user avatar
-1 votes
1 answer
521 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 ...
John John's user avatar
0 votes
1 answer
329 views

How i can get the Author of list item using New-Object Microsoft.SharePoint.Client.FieldUserValue

I have this script inside my PNP script to get the Author of the list items:- $ApprovalListItems = Get-PnPListItem -List "tickets" -PageSize 1 -ScriptBlock { Param($items) $items.Context....
John John's user avatar
0 votes
1 answer
574 views

ASP.NET core MVC web application which integrate with SharePoint

We have a SharePoint online site collection. and we want to develop an ASP.NET Core MVC web application which integrate with SharePoint online lists and libraries. The asp.net core MVC web application ...
John John's user avatar
0 votes
1 answer
38 views

PowerApp/SharePoint Vs .NET/SharePoint Vs .NET/SQL

We want to start a new project for managing ISO process documents with approvals and custom permissions. the system need to have the following main characteristics :- Secure the back-end Server-side ...
John John's user avatar
0 votes
1 answer
256 views

Create Azure AD App Only to authenticate our asp.net core console application

I want to create an Azure AD App Only to authenticate our console application which run on schedule bases and update some SharePoint online sites' lists and libraries. now i am following those steps @ ...
John John's user avatar
1 vote
1 answer
424 views

Can we build a web part similar to the Quick Links web part which check if the user have permission on the related links (internal and external links)

I am working on a project to build a portal inside SharePoint online. Now i got this requirement:- To build a quick links web part (similar to the built-in modern Quick Links) But this quick links ...
John John's user avatar
0 votes
1 answer
420 views

SPFX extension does not load on Site Contents page

I've developed a CSS injector application customizers that loads the.css file from the style library and applies it to the website. However, I discovered that the extension is not loaded when users ...
xasaszasxwqksdkqosasadmsq's user avatar
1 vote
1 answer
1k views

Upload file to Sharepoint online aspx page using .NET Framewotk 4.7 console app

I'm new to Sharepoint. Is it possible to upload files to an aspx page using c# and .NET Framework 4.7? The site I'm trying to upload to is "https://myorg.sharepoint.com/sites/SPODemo/Test%...
Ciarán Bruen's user avatar
1 vote
0 answers
96 views

How to update page description with API?

I am using the rest API for updating the content of a page on a Modern Site. I am POSTing this { "__metadata": { "type": "SP.Data.SitePagesItem" }, &...
privm's user avatar
  • 23
0 votes
2 answers
114 views

Remote event receivers Vs Power automate cloud flows [closed]

I am a big fan of remote event receivers as it is a very solid approach to implement business logic for SharePoint online lists/libraries. But recently, each time i start a new project >> ...
John John's user avatar
1 vote
0 answers
375 views

PNP app only authentication with certificate : The remote server returned an error: (401) Unauthorized.' category="invalid_client

I've been trying for age to use azure authentication with a certificate to retrieve a usable clientcontext to do some csom operation but not matter the method I try I always get the same error message ...
Hadri's user avatar
  • 11
0 votes
1 answer
21 views

SPWeb.WorkflowTemplates.GetTemplateByName is empty, but WorkflowTemplate is assignable in UI

Here are the Steps I've taken: Create a Workflow (Reusable 2010, Content-Type linked) on any Web, Export it as a .WSP and Deploy it to the Site Collection in question (the Feature is Web Scoped). Due ...
Saik's user avatar
  • 13
0 votes
1 answer
271 views

Users with contribute permission can call REST API to Break Role Inheritance , but can not make a REST API call to get all role assignments

I have a power automate flow which runs under a user who have Contribute permission on a list item, the flow consists of 2 actions:- First action is to break role inheritance, while the second flow ...
John John's user avatar
0 votes
1 answer
1k views

Getting a file by serverrealtive url is raising this error "Server relative urls must start with SPWeb.ServerRelativeUrl"

We have a SharePoint onpremsies 2019, and inside it we have a site collection as follow:- https://ourcompany.com/sites/ABC so we are trying to get the details of attachment inside a list named ...
John John's user avatar
0 votes
1 answer
417 views

Capture the users clicks inside our SharePoint modern home page (how click on quick link modern news, etc..)

We have a SharePoint online modern page which contains, those main Web Parts:- Quick links News web part now we want to capture the users clicks and store them inside a SharePoint online list to ...
John John's user avatar
0 votes
0 answers
35 views

Document Library with required fields and attached EventReceiver doesn't update item in time for the popup to reflect changes for the user

I have a document library which has some custom values, some of which are required to fill out. When a user uploads a Document sharepoint asks him to fill out those values and refuses to check the ...
Saik's user avatar
  • 13
1 vote
1 answer
366 views

Decrypting SharePoint shared URL using C#

Is it possible to decrypt the SharePoint shared URL like this one using c#: https://xxx.sharepoint.com/:v:/s/xxxxx/Exxxxxxxxxxxxx-xxxx123456sdf?e=Abcdex I have to get the original URL and append ...
chacha's user avatar
  • 11
1 vote
1 answer
485 views

Power Shell script which runs on all the root folders of a document library and set unique permsion to all users to have read-only

We have an online document library which contains around 1000 root folders, and we want to run a Power Shell script which runs on the 1000 root folders ONLY (without the sub-folders) >> then set ...
John John's user avatar
1 vote
0 answers
321 views

The type 'Microsoft.Reporting.WebForms.ReportViewer' exists in both

I have one SSRS Report using SOAP in sharepoint.In my viaual studio code it is showing one error. Compilation Error:The type.Microsoft.Reporting.WebForms.IReportServerCredentials.exists.in both c:\...
BHARATHI PAULRAJ's user avatar
0 votes
1 answer
1k views

Build a quiz/survey using SharePoint & Power Apps, which allow none-IT people to create questions and user to submit

I want to build a Quiz/Survey app using Power apps and SharePoint, as follow:- We want admin users (none technical people) to be able to create questions and answers. users will be answering the ...
John John's user avatar
0 votes
0 answers
502 views

Building public facing web site using SharePoint Onpremises 2019

We have a SharePoint On-premises 2019 and we want to build a public facing web site for the company. So users can access the web site without having to authenticate? Is this possible? If this is ...
John John's user avatar
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,'...
Jay's user avatar
  • 1
0 votes
1 answer
109 views

Two way Sync between SharePoint online and SharePoint 2019 document libraries

We have 2 SharePoint environments; SharePoint online and SharePoint on-prem 2019. Each environment contain 40 libraries. and we want to sync the 2 environments, so if a files got added,edited or ...
John John's user avatar
1 vote
1 answer
270 views

Update Site Name which is connected to Office 365 Group using CSOM

I want to update Site Name using CSOM for SharePoint Site which is connected to Office 365 Group so at the end I want to update SharePoint Site Title and Office 365 Group Name both. I have tried CSOM ...
Kalpesh Vaghela's user avatar
0 votes
1 answer
392 views

Null exception in Web.EnsureUser CSOM C#

How can handle null exception while copying item from source to destination list as MGR and Account may have users which are not available in organization var employee = contextDestination.Web....
Ashok 's user avatar
  • 59
0 votes
1 answer
768 views

How to update in SharePoint list using CSOM?

I have written below line which create item in destination list but would like to check if item exist update the column else create new item my Title field is primary key for source & destination ...
Ashok 's user avatar
  • 59
0 votes
1 answer
851 views

How to upload file from SharePoint online library to S3 bucket using c#

I tried below code and able to upload file in S3 bucket but whenever i open file its show message that its corrupted and file format is not correct but file is getting uploaded static void Main(...
Ashok 's user avatar
  • 59
0 votes
1 answer
352 views

trying to bundle https://github.com/FaganSC/spfxModernCalendar will raise this error "Error: Cannot find module 'webpack/lib/ParserHelpers'"

I want to run the following command gulp bundle --ship on this SPFX @ https://github.com/FaganSC/spfxModernCalendar. But i got those error Error: Cannot find module 'webpack/lib/ParserHelpers':- D:\...
John John's user avatar
0 votes
0 answers
249 views

I am using the js-modern-calendar but is there a way to add eventsdirectly from the calendar view

I am working on this SPFx web part @ https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/js-modern-calendar .. but can we add the ability to go to specific day and add events? Thanks
John John's user avatar
0 votes
2 answers
47 views

Any other performance efficient way to check if SPWeb.Exists

I want to check if a SPWeb exists in a farm. But using the below code will be very costly because every web is opened and checked. Is there any other better way to check if a web exists in a farm? ...
Gurudevo's user avatar
0 votes
1 answer
37 views

Creating a Group for a Subsite creates that group for the Parent Site as well

What I'm doing (abstract): A SharePoint List has an EventReceiever at which I'm accessing "ItemAdded" to create a new SPWeb for that new List Item. That subsite needs it's own set of ...
Andy Troschke's user avatar
1 vote
0 answers
150 views

Customizing Document ID in SharePoint Online using a background process

I'm looking to use a custom formula for generating a document ID in SharePoint online. Each document will have: A three letter project code, defined by the "Begin IDs with the following ...
Mike's user avatar
  • 111
0 votes
2 answers
1k views

Changing Date Format in Sharepoint DateTimeControl Visual Studio

I'm currently developing a SP Project using Visual Studio. Apparently the default date format for Sharepoint:DateTimeControl is 'yyyy/mm/dd', by using LocaleId="2057", I can change it to 'dd/...
SPBoy's user avatar
  • 55

1 2
3
4 5
92