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

2016 - Upload multiple files with REST API and PNP [on hold]

I'm developing a multiple files upload form on SharePoint 2016. My goal is to prevent duplicate files name, so my idea is to upload files in a document library, change a metadata of these files and ...
1
vote
0answers
8 views

C# api upload to SharePoint [closed]

I want to read and upload on SharePoint, anyone can help me ? I use C# api. I try by Cloudinay and Api works.
0
votes
1answer
14 views

how to get file from library which stored in unknown folder( need c# csom)

I have library which has many folders and I have file name and want to find using name of the file from those folders (dont know in which folder that file placed). please help to write code using c# ...
0
votes
0answers
8 views

ClientRequestException when trying to check out a file

I'm getting an exception when trying to checkout a file within Sharepoint using CSOM (C#). I was hoping someone could shed some light on what might be wrong? This is a snippet of the code that's ...
0
votes
2answers
20 views

Set a field to be editable by list owners only

I have a list that has field A and field B that is set to ReadOnly by PowerShell. Now, these fields are ReadOnly for everyone. I would like these fields to be editable only for the list owners. Is ...
1
vote
1answer
58 views

“Bad request” when trying to upload file

I am trying to upload file via C# to sharepoint server 2013, I copy pasted the code from here. I just added inside the constructor my credentials, like: public SharePointClient(string webUri) { ...
4
votes
0answers
32 views

Disable telemetry spam on Modern UI pages

If you open a modern page, then press F12 and open the network tab you can observe a lot of telemetry-related activities every several seconds. It makes it harder to debug SPFx customizations. Is ...
1
vote
1answer
34 views

Update SharePoint list via C#

I'm trying to update a SharePoint list via C# So first I check if my item already exists, if it is, I add his id in my lUpdate variable. So my code works, it goes in the loop (for the update and the ...
0
votes
2answers
23 views

How to create a document on a sharepoint using C#

I know how to create a word document using c#. The issue I am having is I don't know how to place that document in the SharePoint folder. var newfile = System.IO.Path.Combine( Directory....
0
votes
1answer
21 views

Get files from SharePoint Online

I have SharePoint Online in my environment, where users upload files (txt, xls, etc.) to document libraries. How can I implement the following steps: 1) automatically detect that a new file was ...
1
vote
2answers
20 views

The remote server returned an error: (500) Internal Server Error for SharePoint 2019

I am using an ASP.Net app to connect to SharePoint 2019 using CSOM library. What i discovered is that every morning when i run my app i get the above error and when i switch to the SharePoint server ...
1
vote
1answer
39 views

Fill SharePoint People Picker from SharePoint List Column

I have a SharePoint List who has the column of type Person or Group. In my webpart solution I am trying to use Caml Query to get the Data of the List based on Department column. Each Department is ...
1
vote
2answers
27 views

Returns all values from all columns in a list (CSOM)

I'm stuck to something probably very basics So the idea is the following: I have a list with 4 columns : Title, CostCenter, City, currency Via CSOM, I'd like to read this list, so I did something ...
0
votes
1answer
40 views

Wildcard Query for SharePoint Rest API

I tried using this example as search parameter "Share*" but the result return nothing. Interestingly,if i try searching for the word "share" i do get the result containing the SharePoint word. That ...
0
votes
0answers
16 views

Service Bus to debug remote event receivers, is it still a valid appraoch? If not what are the alternatives

Around 2 years ago I developed and implemented many remote event receivers by following the approach mentioned in this link https://blogs.msdn.microsoft.com/kaevans/2014/02/26/attaching-remote-event-...
0
votes
0answers
24 views

Reading doc files from SharePoint returns null

My scenario: i am trying to read doc file from SharePoint 2019 server.My application is running on a separate IIS server. For docx file my code works well(not shown here) but not for doc. Error :...
0
votes
0answers
15 views

file.OpenBinaryStream cannot open file greater than 5 MB

I am reading file from SharePoint 2019 on premise and files that are greater than MB crashes the code. Error stating that Files greater than MB cannot be opened. I am creating an ASP.NET app using ...
1
vote
2answers
32 views

Uploading files to sharepoint with clientContext giving Error

I am trying to upload documents to a specified sharepoint location but I am getting the error System.Net.WebException: 'The remote server returned an error: (400) Bad Request.' I believe this has ...
1
vote
2answers
32 views

Calculated column formula for an expiry date based on drop down selection

I have a dropdown list named “Expiry Period” with options as follow:- Yearly Monthly 2 weeks 1 week Other options might be added later on Now I want to create a calculated column named “Expiry Date”...
0
votes
1answer
38 views

The remote server returned an error (401) unauthorized

I have install a fresh version of SharePoint 2019 which is on domain A,then i added a second computer to A which will be hosting websites on IIS. I have created a console application just for testing ...
0
votes
0answers
6 views

Where inside my page layout i need to register Page.ClientScript.RegisterOnSubmitStatement?

I were searching for an approach to add a validation on a Date field inside my enterprisewiki.aspx page layout, the validation to check if the Date >= Today. so finally i find this appraoch http://...
1
vote
1answer
36 views

Unable to read doc extension file from SharePoint 2019

I am using the code below to read files from SharePoint 2019 server. It works perfectly for docx file extension but with doc files it throw an error. Can you guy s help me out here please? using (...
1
vote
1answer
18 views

Fuzzy Search in File content

My scenario : I am testing the search engine in SharePoint 2019 server. What i found out is that fuzzy search works in this way WORD then after i can place an asterisk(WORD*). What i am trying to ...
0
votes
0answers
32 views

Using SharePoint search API to crawl document with c#

My scenario : I have a SharePoint 2019 server that contain some documents with different file extension (ppt,doc,docx,xls,xlsx,pdf etc). I have manually forced indexing and crawling to make sure my ...
0
votes
1answer
18 views

How to get existing template (or) look and feel old farm to new farm in SharePoint 2013

I am new SharePoint. We are using SharePoint 2013 environment for our project, under that so many sub-sites are created. Now we setup new farm 2013 for Development purpose. In our current farm(...
1
vote
3answers
77 views

Unable to add a validation for our enterprise wiki pages' fields.. Error “List Data Validation Failed”

I am working on an enterprise wiki site collection inside sharepoint 2013 farm. i have a custom date field named "ExpireDate", and i added a validation inside the Pages library's Validation settings, ...
0
votes
1answer
22 views

Creating Custom WebPart — RangeErrror / TypError trying to access data from a file

Hi I'm new to using SharePoint and I'm trying to transfer over an Employee Directory Search app from a website to SharePoint Foundation 2013. I'm not able to use the same code in my .JS file and am ...
1
vote
1answer
54 views

Powershell command to update enterprise wiki pages without changing modified, modifiedby + do not trigger ER or workflows

I am working on an enterprise wiki site collection inside sharepoint server 2013 professional farm. now i want to write a power-shell command to update some custom fields values for the wiki pages, ...
0
votes
1answer
27 views

Error when trying to access site columns “Field type BambooKBRichText is not installed properly. Go to the list settings page to delete this field. ”

I am working on a sharepoint famr 2013 professional, and inside an enterprise wiki site collection, when i tried to access the "Site columns" to create a new site column i got this error:- now i ...
0
votes
1answer
11 views

Conditions for the programmatically created Dropdown list do not work

The conditions for the programmatically created DropdownList do not work. When I click on CopyData, condition does not work and the DropdownList is reset to the beginning. <asp:DropDownList ID="...
0
votes
1answer
44 views

Read content of a file and display the result

My scenario: I am using SharePoint 2019, I am using the code below to search for a particular word in all the files found on the site. Once the files with the word that is queried is found, I want ...
1
vote
0answers
22 views

Difference between List.ContentTypesEnabled & List.AllowContentTypes

I would like to enable content types on lists with REST. Microsoft says this about these properties: List.AllowContentTypes: Gets a value that specifies whether the list supports content types. ...
1
vote
0answers
12 views

SharePoint C# move attachment and keep creation values in SP 2019

We want to copy item attachments from one Item in one site collection to another item in a different site collection using C# (Server Side Object Model). Is it possible to keep or replicate the ...
0
votes
0answers
29 views

SharePoint 2019 rest search api not working

My scenario: I am having an issue that if i try to search for a content in a file it returns null. I have make sure to manually re index both the site and the list. I have then force a manual ...
0
votes
2answers
30 views

How to authenticate to use SharePoint rest api

I am using the code below and am getting unauthorized access. Can you guys show me what i am missing here.I am using SharePoint 2019. string URL = "http://sharepoint/sites/test/_api/search/query?...
0
votes
1answer
18 views

Layout - enlarge multi-value fields using designer

I changed an Edit Form in Sharepoint (included a script editor web part) to enlarge multi value fields list boxes (they were to small in width) and it worked (inserted code snippet). However, if i ...
0
votes
1answer
46 views

validation for this page is invalid and might be corrupted. Please use your web browser's Back button to try your operation again

I am working on 2 classic online team sites. one site is the root which contain the real list, and the other is acting as the infrastructure site which contain some custom scripts and pages which i am ...
0
votes
0answers
11 views

Using CSOM to determine if a publishing page has a currently published version even if the current version is checked out?

I'm working with SharePoint 2013 C# Client code (CSOM) and I am trying to determine if a page with lets say 20 versions has any version that is currently published even if the current version is "...
0
votes
2answers
38 views

Can we register an existing site collection as a Hub site

I am reading this official Microsoft documentation SharePoint classic and modern experiences, which mentioned that there is not a 1:1 map between site collections and hub sites, and we can not move a ...
0
votes
0answers
12 views

Unable Debug “attaching-remote-event-receivers-to-lists-in-the-host-web” using azure service bus

I use to follow the following approach to create remote event receivers and debug them using azure service bus https://blogs.msdn.microsoft.com/kaevans/2014/02/26/attaching-remote-event-receivers-to-...
0
votes
0answers
19 views

Programaticaly retreive version history changes of an Sharepoint list item

In Sharepoint CSOM (c#) how to retreive the item version history for a particular version. For example for an item there are 8 major version. In that i need to retreive programatically 2nd version ...
1
vote
0answers
12 views

Send mail in list event receiver work only for site owners

I have simple event receiver start after save item, do something and send mail, there is part of code: SPSecurity.RunWithElevatedPrivileges(delegate () { MailMessage mailMessage = new MailMessage(); ...
0
votes
0answers
7 views

how to retrieve LastModifiedon details of a file in sharepoint using C#

Can anyone help with C# code to retrieve file name and lastmodifiedon of file present in a sharepoint online url.
0
votes
1answer
24 views

I am trying to update one field of a document, which is in a folder. I am using REST API and C# for achieving this. But I am getting 403: Forbidden

var passWord = new SecureString(); foreach (var c in pwd) passWord.AppendChar(c); SharePointOnlineCredentials credential = new SharePointOnlineCredentials(loginName, passWord); ...
0
votes
0answers
12 views

How to show pdf documents inside the email body using C#

I have a requirement to send an email programmatically with hmtl body content. Inside the Email body content, I have to show the pdf documents. like below. ABCText PDFDOC1 PDFDOC2 when a ...
1
vote
1answer
43 views

Powershell script for Restarting SharePoint Timer Service (SPTimerV4)

On SharePoint log folder so many ".usage" files are creating and not getting deleting. Due to space issue occurring. So We are restarting "SPTimerV4" service manually. We need to scheduled task ...
0
votes
1answer
35 views

Force browser to clear cache when changes has been added or updated in Visual web-part control file

I am working on visual web-part (SP 2016 on-prem) and it's control (ascx) file has HTML, CSS and jQuery code. When I made any changes inside it, then changes are not reflecting at end user's or client ...
0
votes
2answers
53 views

Archive old items from one list to another(Archive) list in SP2013 using powershell or SharePoint Designer

We had sharepoint list with 10,000+ items. We need to move (or) archive items to another list which are created by one year back. Means items need to move if created date is less than (or) equal to 30/...
0
votes
0answers
19 views

an exception occurred during a webclient request

I have an error when trying to hit a web services that gives me weather updates. I used to be able to hit it using visual webpart in SP2010. Now I get the exception: an exception occurred during a ...
0
votes
1answer
42 views

Adding a list item in C# takes 5 minutes after calling the initial Update()

I have a timer job that queries an external list, and then copies items into a regular SharePoint list. I store the ID of the external list item on the SP list item so I can update instead of add if ...