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

C#, PowerShell to copy files from File share folder to SharePoint on prem doc library

I am looking for some help to either have powershell code or c# console app to automate copying/moving of files from file share to SharePoint on prem 2019 doc library. If the file already exists in ...
0
votes
2answers
35 views

Fast site creation with CSOM

I am working on a small api that creates site collections in SharePoint 2019. Since SharePoint 2016, fast site creation feature is available with "New-SPSite" command in PowerShell (-...
0
votes
1answer
25 views

Sharepoint 2013 - Pop-up window before sharing to everyone

I'd like to warn users before sharing a file or a site to "Everyone" by showing a pop up. Is there a way to do this ? Otherwise, is there a way to block sharing to everyone ? Thank you for ...
0
votes
2answers
37 views

Rename “Version comments” inside the document library's Upload.aspx page

When i open the Upload.aspx page for an online document library inside a new tab , i will get these fields:- My question is if i can rename the "Version Comments" field? i access the ...
0
votes
2answers
34 views

Is there a way to hide the “Share” button from all the sharepoint online pages

Is there a way to hide the Share button from all the SharePoint online pages:- thanks
0
votes
1answer
9 views

Why is SearchExecutor returning results in inconsistent formats and what can I do about it?

I use the following method to find List<File> on our SharePoint site: private async Task<List<File>> FindAsync(ClientContext clientContext, KeywordQuery keywordQuery) { ...
0
votes
1answer
29 views

Unable to get a github repository either by downloading the Zip file or cloning

I want to install the Script Editor Webpart from this url @ https://github.com/pnp/sp-dev-fx-webparts.. but if i try to download the zip file it will break in the middle + i tried to use the GitHub ...
0
votes
1answer
36 views

Unable to add Modern Script editor inside our modern communication site

I am trying to add the follow Modern Script editor web part @ https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/react-script-editor inside our communication site. Where i followed the ...
0
votes
3answers
50 views

must I need to use C# and CSOM to conect to the Sharepoint rest web api?

I recently had a question and how to connect to the REST web api using c# and it gave a hard time trying to connect, documentation does not give any clue how to use the rest web api(code) but ...
0
votes
0answers
13 views

ApplyWebConfigModifications add an old entries

I need to add a new entry in the web.Config, the script add and remove the entry, but with an old and unwanted entry: function addWebConfigModifications($WebApplication){ $sharePointDLL = $ENV:...
0
votes
1answer
25 views

How to make request to webapi in to Sharepoint Online(SPO) c#?

there is not solid documentation about how to make calls to sharepoint online web api, in MSN documentation it infers that you are developing an add-in for sharepoint, I'm just making a test in c#. I'...
0
votes
1answer
24 views

In C# with CSOM, How can I copy a file from a known location to a known Folder?

I have one function which uses SearchExecutor finds to find the path of a specified file, which returns a string like. https://example.sharepoint.com/sites/DevelopementTestingSite/Shared Documents/...
1
vote
1answer
30 views

Approve/Reject MS Flow from Power Apps

I want to add the MS Flow Approval Page inside a SharePoint modern page (i wrote another question regarding this @ Embed MS Flow Approvals page inside a modern sharepoint page using iframe ), and ...
0
votes
1answer
22 views

why i am been automatically login when running this command “Connect-PnPOnline -Url ”https://***.sharepoint.com/sites/ApprovalProcess/“ -UseWebLogin”

I run the following PnP command:- Connect-PnPOnline -Url "https://***.sharepoint.com/sites/ApprovalProcess/" -UseWebLogin now a dialog will open and login me automatically, and when i try ...
1
vote
1answer
12 views

Help with nested If statements that format a phone number based on country

I am trying to create a calculated column with nested if statements. Due to my users not wanting to format the phone number correctly I am creating this new column to take the phone number in the ...
0
votes
3answers
74 views

Can i map the word document properties inside SharePoint document library

Inside MS word document we have the following properties:- and my question is if we can map these properties inside SharePoint document library? so for example i can populate the above properties ...
0
votes
1answer
24 views

RegionalSettings.TimeZone.UTCToLocalTime will always return 01/01/0001 00:00:00

I have the following CSOM code inside my C# console application:- var regionalSettings = context.Web.RegionalSettings; var localDueDate = regionalSettings.TimeZone.UTCToLocalTime(itemversion.Created)....
0
votes
1answer
28 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
0answers
22 views

Azure Function Updating user profile using SharePoint Online and CSOM .NET Standard gives access denied

I have Azure Function v3 and I want to update Sharepoint user profile properties with CSOM and .NET standard 2.0 by using global admin account credentials. Reading is working. I can change other users'...
0
votes
1answer
25 views

Why on some lists i can do item-level edit while on others i can not

I am working on custom lists inside 2 site collections on the same tenant. On the first site >> when i click on a list item >> a popup will open >>where i can do an item level edit ...
0
votes
1answer
26 views

Do i need to Issue ListItem.Update(), when i am executing these commands ( ListItem.ResetRoleInheritance() + ListItem.RoleAssignments.Add() )

I am working on a remote event receiver inside SharePoint online custom list. now inside the RER i am getting the item been updated, then reset its role inheritance + add users to the item permission, ...
0
votes
1answer
29 views

How we can prevent a List which has its Create,Edit,Display forms customized using PowerApp from been rendered using classic UI forms

I have the following:- custom list inside a classic team sub site the custom list has its create,edit & display form customized using power app. the custom list has the following setting to also ...
1
vote
1answer
45 views

Field level edit is now available even if we have customized our edit form using “Script Editor”

I have the following:- Custom list inside a classic Team Site. i have customized the Edit form using Script editor classic web part. this result that the edit form will render using classic UI which ...
0
votes
1answer
22 views

I am able to access a property even if i am not loading it inside my CSOM code

I have the following code, to get a list item based on the ID and load specific properties only, as follow:- CamlQuery camlQuery = new CamlQuery(); camlQuery.ViewXml = string....
0
votes
1answer
31 views

Unable to hide a list field inside the create forum

I have a field which was created at the list level inside my online SharePoint site, and i want to hide it from the create form, so i run the following PnP code:- PS C:\WINDOWS\system32> Connect-...
0
votes
1answer
51 views

Create a new lit item will riase this error “Operation is not valid due to the current state of the object”

I have the following code to copy a list item to another list:- List oList = context.Web.Lists.GetByTitle("Supplier Contracts"); List oList2 = context.Web.Lists....
0
votes
1answer
25 views

ItemAdded remote event receiver will fire twice if i create a new list item + attach file to it

I have a custom list inside a SharePoint online communication site. and i have attached an ItemAdded remote event receiver to the custom list. now if i create a new list item and i do not attach any ...
0
votes
1answer
30 views

How i can get all the users' responses before updating the list item inside my MS Flow

I have the following MS Flow:- and i have a SharePoint list with an Approvers field as follow:- Currently i got this scenario:- let say i create a new item >> set the Approvers fields to ...
0
votes
1answer
21 views

Why i am able to add a new item even if i have a Required field which is hidden inside the New form,

Inside the content type I set a field as required inside my SharePoint online site as follow:- and using PnP i set the field to be hidden in new form, as follow:- PS C:\WINDOWS\system32> $ctx = ...
1
vote
1answer
13 views

Is it possible to extend SPFieldUrl to have more properties like url or description, to create a custom field type?

Url field type has more than one property : something like url, description. I want to know that how can I extend url field type(or some other field type that have more than one property) to create a ...
0
votes
1answer
49 views

Authenticate the SmtpClient using AppID and APPSecret instead of passing the username and password

I have the following SharePoint CSOM code inside my c# console application to send an email using the office 365 admin username and password using the client.Credentials = new ...
0
votes
1answer
52 views

'AuthenticationManager' does not contain a constructor that takes 0 arguments

I have the following code to connect to SharePoint using clientID and ClientSecret: string siteUrl = "https://****l.sharepoint.com/sites/DocumentApprovalProcess/"; string clientId = "***...
0
votes
2answers
57 views

SharePointOnlineCredentials is raising this error “The sign-in name or password does not match one in the Microsoft account system.”

I have the following code to connect to a site collection:- string s = "******8"; SecureString passWord = new SecureString(); foreach (var cc in s) ...
1
vote
1answer
30 views

CAML query to get all items which are 2 days from today

I have a site column of type Date and Time as follow:- Now i want to query and get all items which have their Approve By exactly 2 days before Today. so let say today is 24 Sept 2020 then the query ...
0
votes
0answers
21 views

Getting a DateTime value inside a remote event reciever will be different than the one the user enters

I am working on an online SharePoint site collection, which have the following regional settings:- and I hosted a remote event receiver inside azure web app,where the remote event receiver will get ...
0
votes
0answers
14 views

Send Email to external users inside my console application

I have the following method to send email using the exchange online smtp server:- static private void sendemail(ClientContext context, string subject, string body, FieldUserValue[] to,string username, ...
0
votes
1answer
26 views

Error when Get files from specific URL SharePoint C#

I have problem with sharepoint when I try to get all file in a specific url. I've try get files in url https://mycompany.sharepoint.com/ It's work, but when want to get files in url https://...
0
votes
1answer
32 views

how to get select value for dropdown list inside listview items template?

I am trying to get the select value in dropdown list which exist inside listview ItemTemplate ad below : <asp:ListView ID="AssignedRequestsListView" runat="server" DataKeyNames=&...
0
votes
1answer
34 views

How to hide suite bar ribbon and header [duplicate]

I want to remove / hide "sharepoint suite bar ribbon and header" ? It is the yellow part in my hardcopy. Is there a way to do it ? Best Regards, Pierre
1
vote
1answer
42 views

How to get SharePoint 2013 on-premises appregnew.aspx to register my service principal in Azure AD automatically?

I have already run the PowerShell command Connect-SPFarmToAAD on the on-premises farm. (Connect-SPFarmToAAD is document here in detail: https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-...
0
votes
1answer
45 views

Is there a way to add a picture on top of our list view using the modern UI

Inside classic layout i can edit the list view page and add a web part to show an image on top of the list fields as follow:- but if i switch to modern UI i will lose the ability to edit the list ...
1
vote
1answer
31 views

ReadOnlyField Vs ReadOnlyEnforced when creating Site Columns

When creating a new site column inside Sharepoint Online, we have 2 options to set: ReadOnlyField and ReadOnlyEnforced. So, what are the differences between these 2 settings? As far as, I know ...
0
votes
1answer
49 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
1answer
46 views

I am able to update a ReadOnly field inside my CSOM code

I have set a field as read-only using this PnP script, the field is of type "image or hyperlink":- $fieldTitle = "LinkToRiskValue" $customfield = $Context.Site.RootWeb.Fields....
0
votes
1answer
85 views

copy or move replace file and update version sharepoint CSOM

hi im using method for copy or move file on sharepoint. but i want to ask how to implement when it's duplicated it automatically replace and update version? i've been try with this function but it's ...
0
votes
0answers
10 views

ItemAdding event on file drag and drop not working SharePoint 2013

I am trying to put my custom error message.when someone uploads a file with extension like .exe or a file with special characters. when I upload a new document by clicking on 'New Document', the event ...
0
votes
1answer
56 views

SharePoint Client Context: Load Query RoleAssignment returned “Not well formatted JSON Stream”

We are experiencing this issue that when we are querying data from Role Assignment of a SharePoint Site it throws an exception "Not Well Formatted JSON Stream". In this line i => i....
0
votes
1answer
72 views

Error Method “OpenBinaryStream” does not exist SharePoint file download using CSOM C#

we are using the below code to download a file from the SharePoint 2010 on-premise and from SharePoint online site. The code is working fine SharePoint online file and getting the error Method "...
0
votes
1answer
21 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
2answers
19 views

Unable to update a field internal name. Erro “Property or indexer 'Field.InternalName' cannot be assigned to — it is read only”

I have the following CSOM code to update a field internal name:- using (ClientContext context = new ClientContext("https://*****.sharepoint.com/sites/Intranet/")) { ...

1
2 3 4 5
86