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
15 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
22 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
35 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
36 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
12 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
34 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
29 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
29 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
33 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
16 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
22 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
6 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
32 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
13 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
18 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
10 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
25 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
9 views

How to get REST API followed

How to get followed items using REST API (C# and JS)?
0
votes
2answers
26 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
vote
0answers
58 views

SharePoint PnP provisioning engine: applying provisioning template throws “Access denied” error

I am currently facing a strange behaviour with the SharePoint provisioning engine. I am targeting a SharePoint 2019 on-premise version. I am quite sure that this problem is related to authentication, ...
0
votes
0answers
12 views

Create multi-level hierarchy (Multiple depths) left navigation menu with expand/collapse

I am on SharePoint Online and i am using Wiki pages to manage our content. I have successfully implemented a code to make the menu as expand/collapse, like below: However, i want a solution to ...
0
votes
1answer
22 views

How i can convert User to FieldUserValue inside my CSOM code [duplicate]

I have the following CSOM code: Group group = web.SiteGroups.GetByName(subsitename); List<FieldUserValue> currentgroupUsers = new List<FieldUserValue>(); foreach (...
0
votes
1answer
39 views

How to set multi lookup field in C# CSOM

I'm having trouble setting multi lookup field. I found this example: Update a LookupMulti Column value in SharePoint using Client Object Model C# and Setting a SharePoint Multi-value Lookup Field ...
0
votes
1answer
20 views

Microsoft Office SharePoint Virus Scan Engine

We have a requirement to integrate an antivirus solution with the Sharepoint server programmatically. Requirement: When a user adds/updates a document perform a scan using SDK of the antivirus and ...
0
votes
0answers
15 views

Unable to get the value of a field of type People or Group which allow multiple selection and allow users and groups

I have the following field of type People or Group which allow multiple selection and allow users and groups as follow: Now I got an item which has 2 users inside this field, but when I try to get ...
0
votes
1answer
23 views

Adding a file using FileStream is raising the following error “The given path's format is not supported”

I have the following code to add a file inside a folder:- using (FileStream fs = new FileStream(context.Site.Url + templetefile.File.ServerRelativeUrl, FileMode.Open)) { ...
0
votes
1answer
26 views

Do i need to add the file name and extension when using FileCreationInformation

In server-side object module i use this code to create a file at a destination folder:- ListItem templetefile = null; foreach (ListItem i in template) { templetefile = i; } byte[] fileBytes = ...
0
votes
0answers
23 views

Using Folders.Add Vs AddSubFolder inside my CSOM code

I have the following CSOM code to get the root folder:- var folder = list.RootFolder.Folders.Add("A"); but to add a sub-folder seems there is 2 ways:- folder.Folders.Add("B"); OR folder....
0
votes
1answer
35 views

Cannot implicitly convert type 'Microsoft.SharePoint.Client.ClientResult<System.IO.Stream>' to 'System.IO.Stream'

I have the following code inside my server-side ER, to get a file and added inside another folder :- byte[] fileBytes = softemplete.File.OpenBinary(); SPFile destFile = currentDL.RootFolder.Files.Add(...
0
votes
2answers
34 views

how to rename folder when documents are opened

I am trying to rename the folder name when a document is open. How can I do that? using (SPSite site = new SPSite("http://sp2016/")) { using (SPWeb web = site.OpenWeb("...
0
votes
2answers
33 views

How to send an email from a remote event receiver? can we still use MailMessage?

I have a server-side event receiver inside our SharePoint 2013 farm, and inside the ER i am sending emails using this code:- using (MailMessage myMailMessage = new MailMessage()) { ...
0
votes
0answers
27 views

list item Title is null

when i am using HttpResponseMessage response = await client.GetAsync($"_api/web/lists/getbytitle(...)/items?"); var res = await response.Content.ReadAsStringAsync(); everything in the JSON get back ...
0
votes
1answer
21 views

Add TaxonomyFieldValue to a TaxonomyFieldValueCollection inside my CSOM code

I am creating a TaxonomyFieldValueCollection as follow:- TaxonomyField deptField = clientContext.Web.GetList("/sites/Filing/lists/" + "FilingSystem").Fields.GetByInternalNameOrTitle("Fund") as ...
0
votes
0answers
15 views

Why does a Site Collection Appear in Graph/Sites and Not In Search?

I am progressively transitioning projects from classic Search API to the Microsoft Graph and encountering a few challenges. For example I currently use the following to get all Site Collections: ...
1
vote
1answer
20 views

Join two Lists with Where Condition in a Joined List

I am trying to create the Caml query for the following Scenario: I have two Lists: DocumentApprovalRequest DocumentApprovalComments Both the Lists has the column "DocumentNumber", I want to join ...
0
votes
1answer
38 views

How to update the people and group column with multiple values in SharePoint

I have a person or group column in SharePoint 2013 I want to set the multiple values I have set its value like 1;#pallavi it's working but when done for multiple values like 1;#pall;#2;#shee it's not ...
1
vote
1answer
28 views

Unable to reference Web.ServerRelativeUrl unless i load the cx.Web. But i can reference Site.RootWeb.SiteGroups without loading the cx.Site

I have the following code inside our remote event receiver:- //context.Load(context.Web); //context.Load(context.Site.RootWeb.SiteGroups); context.ExecuteQuery(); ListItem currentItem = context.Web....
0
votes
1answer
45 views

The property or field 'Id' has not been initialized. It has not been requested or the request has not been executed

I have this CSOM code:- Microsoft.SharePoint.Client.Group group = context.Site.RootWeb.SiteGroups.GetByName(webname); context.Load(group.Users); context.ExecuteQuery(); int count = ...
0
votes
1answer
28 views

Convert UserCollection to FieldUserValue[] inside my CSOM code

I have the following CSOM code:- Microsoft.SharePoint.Client.Group group = context.Web.SiteGroups.GetByName(webname); FieldUserValue[] values = null; now i want to add all the users inside the group ...
0
votes
1answer
35 views

How we can get an item by ID if the list exceed threshold

Inside my client side object model CSOM code, i use the following 2 methods to get an item by ID, either using CAML, for example:- CamlQuery camlQuery0 = new CamlQuery(); camlQuery0.ViewXml = string....
1
vote
1answer
17 views

Customizing our list forms using Power App is not get reflected inside SharePoint mobile app

Inside our SharePoint online site we have list forms (New & Edit list forms) that have been customized using these methods:- PowerApp. Adding custom script inside classic UI. Hiding some fields ...
0
votes
1answer
18 views

Send email inside our SharePoint provider hosted add-in (remote event receiver)

I am working on a remote event receiver for our SharePoint online site collection, the remote event receiver is implemented as a provider hosted app hosted inside Azure WebApp. now inside the remote ...
0
votes
1answer
161 views

Dynamically populate dropdown inside spfx webpart

I am new to spfx webpart. I have following clarification. Is it possible to populate choice column values of a library to drop down control dynamically. Note: I don't want to display dropdown as ...
1
vote
0answers
25 views

Unable to return an error from my remote event receiver to our power-app edit form

I am developing a remote event receiver and inside the ItemUpdating event , i am returning an error as follow:- public SPRemoteEventResult ProcessEvent(SPRemoteEventProperties properties) { ...
0
votes
0answers
24 views

How to get Site Collection and Document Libraries on SharePoint Online with MFA enabled?

I'm making a Winforms program that allows users to connect to their own SharePoint Online environments to download and upload files from their Document Libraries. I use the code below to get Site and ...
0
votes
1answer
15 views

Unable to remove a user from item permision RoleAssignments does not contain RemoveById

I have the following code inside my remote event receiver, where i am trying to remove a user from a list item which have unique permission:- User oUser = context.Site.RootWeb.EnsureUser(...
0
votes
0answers
16 views

Date and Time field value inside a remote event receiver will be minus one day

I have a Date and Time field which have a value = 03 April 2020 as follow:- But inside my remote event receiver which is hosted inside Azure, i have this code:- DateTime current = (DateTime)(i["...
0
votes
1answer
24 views

Unable to load all the fields for my list using CSOM

I have a list which contain 30 fields and I want to use them all inside my remote event receiver, so instead of manually loading the fields one by one, I am trying to load all the fields, I tried the ...
0
votes
0answers
38 views

I am to login on web-page on share-point site but when i try to access from C# getting wrong username or email Id error

Below is my C# code which I am using for connect SharePoint site. When I try to access same SharePoint site from web page it's working fine and I able to access it But when I try to with below code I ...

1
2 3 4 5
85