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
13 views

How to hide suite bar ribbon and header

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
11 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
35 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
21 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
37 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
31 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
45 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
39 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
37 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
0answers
13 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/")) { ...
0
votes
1answer
29 views

'ListItem' does not contain a definition for 'SystemUpdate' and no accessible extension method 'SystemUpdate'

I have the following CSOM code inside a console application:- ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation(); ListItem listItem2 = riskValue.AddItem(itemCreateInfo); ...
1
vote
0answers
16 views

Unable to connect remote server error appears randomly after CSOM request

I'm currently working on a C# CSOM script for a SharePoint Online Instance that will return to me all the items in a particular list that have no attachments. Everything seems to be working well but ...
0
votes
1answer
38 views

Attach a file to a list item using CSOM will raise the following error “The file format or file extension is not valid”

I have the following code to attach a file to a list item:- context.Load(context.Site); context.ExecuteQuery(); Microsoft.SharePoint.Client.File fs = context.Site.RootWeb....
0
votes
0answers
26 views

Remove-PnPEventReceiver : Access denied. You do not have permission to perform this action or access this resource

I have a remote event receiver which is attached to a list. so i want to remove it, but when i try this PnP script using the Office 365 admin:- Remove-PnPEventReceiver -List "Project Update ...
0
votes
1answer
22 views

Helper Methods: Passing ClientContext vs using list.Context

I am creating some helper methods for a SharePoint Online CSOM development project. Are there any issues with using the Context from the List object or should I explicitly pass the ClientContext to ...
0
votes
0answers
14 views

Retrieve Sharepoint online data from an externally hosted website (might be on Azure)

I need to retrieve SPO document information from SPO into a public website. I would imagine an app with some secret keys would do it. Or have a kind of authentication master account to enable my ...
0
votes
1answer
42 views

How to update one drive file using SharePoint CSOM C# code programmatically?

I am looking for a way to update the one drive file or document using some SharePoint CSOM code. So can we achieve this using CSOM or some C# code? I have even tried to load one drive site collection ...
1
vote
2answers
58 views

Can we prevent attaching more than one attachment file to a custom list item?

I have a custom list inside a SharePoint modern communication site, and i want to prevent attaching more than one attachment per list item? is this possible through UI,power-shell or development? Now ...
0
votes
1answer
23 views

Can i prevent Grid Editting for a field inside modern UI

I have created a site column of type Single link of text, and i hide it from the New & Edit forms (and i am only populating its value inside a workflow) using this PnP script:- $customfield....
0
votes
1answer
24 views

How to Cancel item level InProgress Workflow in SharePoint 2016 using CSOM

I want to cancel the In progress item level workflows in sharepoint 2016 using client side code in Powershell Or C# console app. Searched most of the links , But nothing is working. programmatically-...
0
votes
1answer
45 views

properties.ItemEventProperties.AfterProperties[“ProjectDateSinged”] will show the date minus one hour

I have the following code inside my remote event receiver inside a SharePoint online team site, the remote event receiver is deployed inside azure web service:- if (i["ProjectDateSinged"] != ...
0
votes
0answers
15 views

Custom Tab only for Specific List

In SharePoint 2013 I have a Custom Tab and a ribbon button in it. Is there is way to Show the custom tab only on a Specific List ?.
0
votes
1answer
14 views

Custom Document Set content type created through code has null Welcome Page Fields in template

I am creating a custom Document Set content type through server-side/C# code as follows: SPContentType docSet = web.AvailableContentTypes["Document Set"]; SPContentType newCType = new ...
0
votes
1answer
36 views

In SharePoint Document Library, Identify document version where content has been modified

In a document library, I've some documents with version history. How can we identify the versions where content(not metadata) of the file has been changed using C#? I have tried by comparing the size. ...
0
votes
1answer
19 views

CamlQuery Lookup not correct

I need to display the elements in Column "NetworkNodes" only SRV1 and SRV3 in Lookup, how to write correctly? The remaining elements of the SRV are not needed. Doesn't work like that: Query =...
0
votes
0answers
15 views

Error: The SPListItem being updated was not retrieved with all taxonomy fields after creating Managed Metadata field programmatically

I have searched before asking this question. Also, I have done as suggested by this answer https://sharepoint.stackexchange.com/a/83794/81955 but my problem still persists. My scenario: I have 2 hub ...
1
vote
0answers
56 views

Is there a way to save a site in SharePoint online as a template programmatically (with an API, PowerShell, C#, etc.)?

I have a SharePoint Online site that has custom scripts enabled, and I want to programmatically save it as a template. I do not want to use PnP Provisioning Templates, I want to access the same ...
0
votes
0answers
28 views

Fetching URL of Document Set in SharePoint Online Library

I am trying to upload different kind of VSTO documents at different Document Set in a Library, so before uploading a document I need to fetch the URL of the page(current DocumentSet URL) to my code as ...
0
votes
1answer
31 views

C# client object model to connect to SharePoint online

I am trying to connect to SharePoint online site using SharePointOnlinecredentials. I am just passing the user ID and the password( secure string form) and just retrieveing the web.Title. the code ...
0
votes
2answers
31 views

update filed another document library with current list input filed column on SharePoint 2013

Hi SharePoint Developer experts, We have one document library and one List on SharePoint 2013. Users update list daily base. There are two column on the list with name as "Document Title" ...
0
votes
1answer
43 views

Accessing list from Subsite from SharePoint online using c# CSOM

I am using simple console application to pull data from a SharePoint Online list using the following code string siteUrl = "https://MyServer.sharepoint.com/sites/MySiteCollection"; string ...
0
votes
2answers
83 views

Filter a list by User or Group column in CAML Query

Is there a way to filter a list by User or Group column? I need to get all the tasks assigned to each user in a site. I got the below code for now, but that only works if I'm trying to get my tasks. ...
0
votes
1answer
13 views

How to add a reference to an EventReceiver back to SPLIst

I am using SP2013 On Prem. I use a third party solution that deploys custom lists to a site when activated. I need to remove the SPListItem ItemDeleting event receiver from this list, delete some ...
0
votes
0answers
58 views

How to get response header in c# Microsoft graph api request

I am trying to do File Copy operation in c# .net core using Microsoft graph API. It is an asynchronous operation, and by doc, it says it returns a location in the response header to check the status ...
1
vote
2answers
96 views

Log into SharePoint tenant through CSOM with MFA enabled

I need to log into a SharePoint tenant using an admin account that uses MFA. This is the code. var authManager = new OfficeDevPnP.Core.AuthenticationManager(); var context = authManager....
0
votes
1answer
58 views

Download a specific file from SharePoint (CSOM) using C#

I'm developing a C# based application that requires to download, checkout, upload, check in on a specific file from/to Sharepoint with CSOM. So I have two questions here: Firstly, on download, is ...
0
votes
0answers
36 views

Copy custom list items from one list to another using CSOM

I found the following code from https://www.sharepointsky.com/sharepoint-online-copy-items-from-one-list-to-another-list-using-csom-net-managed-object-model-code/ to copy custom list items from one ...
0
votes
0answers
17 views

How to show user Full Name in the Page instead of Email ID for FBA Users

I used below code to fetch user full name but I am getting Email id instead of full name. Kindly help . public string UserDisplayName { get { if (Page.User.Identity....
0
votes
1answer
23 views

When adding an item programmatically the workflow 2013 will raise access denied

I have defined a workflow which gets fired when adding items on listA. and if i directly add an item inside listA using the UI the workflow will work well. but on listB i have a remote event receiver ...
0
votes
1answer
7 views

Can't Create Session

I am trying to update a custom authentication page from SharePoint 2010 to 2013. It basically takes credentials from a CAC card and creates them a user account in FBA if they didn't already have one ...
0
votes
0answers
41 views

SystemUpdate() inside my remote event receive will raise “Access denied. You do not have permission to perform this action or access this resource.”

I have the following code inside my remote event receiver (which run on item added):- using (ClientContext context = TokenHelper.CreateRemoteEventReceiverClientContext(properties)) { ...
0
votes
1answer
16 views

Accessing a migrated list display form will return this error “The page you selected contains a list that does not exist. ”

I have migrated a SharePoint on-premises 2013 custom list to SharePoint online, and the on-prem list display form contains a filter web part referencing another list. now after the migration when I ...
0
votes
1answer
22 views

Which Content Type ID i should use inside my CSOM code to change the list item content type. the content ID at site level or at list level

I have the following CSOM code to change the content type of a list item: var salesCT = context.Site.RootWeb.ContentTypes.GetById("...
0
votes
0answers
14 views

_api/search/query return 0 results always

I have a problem with my response i always getting 0 results. Its happen not only in my api response, but also if i searching directly in sharepoint. This is the api: http://myweb/_api/search/query?...
0
votes
2answers
26 views

Covert a list<string> into List<FieldUserValue>.Error “Property or indexer 'FieldUserValue.Email' cannot be assigned to — it is read only”

I have a List<string> which contain email addresses, and I want to create List<FieldUserValue> from it, I tried the following: List<FieldUserValue> fuv = new List<FieldUserValue&...
0
votes
1answer
11 views

How to get REST API followed

How to get followed items using REST API (C# and JS)?
0
votes
2answers
28 views

CSOM Utility.SendEmail() will only send email to office 365 email addressees… is it a limitation?

I have the following code inside my CSOM console application to send email: static private void sendemail(ClientContext context, string subject, string body, string email) { var ...
0
votes
1answer
11 views

Unable to get the pages which have their calcualted date.time field equal today using CAML

I am working on an online SharePoint site collection, where I have a calculated column named "ExpiryDate" of type Datetime, and I want to get all the pages which have their expiry date equal today, i ...

1
2 3 4 5
86