Questions tagged [event-receivers]

Event Receivers are a piece of managed code that responds to SharePoint events when specific triggering actions occur on a SharePoint object.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

ItemAdded remote event Receiver return clientcontext Null working fine other same level webs pages library

ItemAdded remote event Receiver return clientcontext Null working fine on other same level webs pages library, i used TokenHelper class for get content on behalf of current login user, i tried to use ...
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
1answer
18 views

Ho to verify if event receiver is custom or default in share point 2013

I have requirement to get all the list of event receiver names(Not Default) in a share point 2013 site which are custom. Kindly guide me on identifying the custom receivers only. Thanks in advance! ...
0
votes
1answer
45 views

Are event receivers supposed to handle events of editing the list itself?

I just noticed that our list item event receivers are running when we are updating the list itself, like changing the description or the title. I thought these should only trigger when modifying list ...
0
votes
0answers
19 views

Remote Event Receiver - limit size properties

Is there a way to limit which properties should be transferred from my Web Host to call my WCF Service?    public SPRemoteEventResult ProcessEvent (SPRemoteEventProperties **properties**)          {...
1
vote
1answer
23 views

Login name of current user by JSOM

I have a SPFeatureReceiver that adding to calendar item new button in ribbon: SPUserCustomAction getTheTerm = list.UserCustomActions.Add(); getTheTerm.CommandUIExtension = $@" <CommandUIExtension&...
1
vote
1answer
20 views

SharePoint 2013 C# Event reciever choose specific template from document library

I have a document library with multiple content types of word templates. In my event receiver I need to choose the right template based on a field of the modified/created list item. Any ideas how to ...
1
vote
2answers
29 views

Copy Custom list content from one site to another site in same site collection

I have two different sites in same site collection but two sites language is different I created two custom lists in both sites with same number of site columns and datatypes but display name of site ...
0
votes
1answer
28 views

How detect saving conflict in synchronous event receiver?

I have the following program. I've developed a synchronous event receiver (ItemUpdating) which is executed when a list item is being changed. I've run into the situation where the code in my event ...
0
votes
1answer
58 views

powershell does not fire “System.Reflection.Assembly.Load” in the event receiver

There is a problem with Enable-SPFeature command in case of having an event receiver in the feature. Feature Activated event is not fired. If I enable the feature manually everything works well. So, ...
0
votes
2answers
97 views

Improving performance for the Create/Copy files and folders (using code) inside our large document library

We have a SharePoint 2013 on-premises team site and we have a document library which have around 29,000 +++ items, and those files are structured under around 4,000 folders and sub-folder. now inside ...
0
votes
2answers
48 views

Change the permission of all the files in a Document Set of a Document Library to Read-Only

I've got a document library and I want to change the permission of each file present in a particular document set (say Office Documents) to Read-Only when an item is Updated in a List (say List A). ...
0
votes
1answer
48 views

Updating List item from Event Receiver of another List

According to my requirement, I've 2 Lists within the same site List A and List B. Below are the columns in List A: User [PeoplePicker], City [dropdown (2 choices)], Company [dropdown (5 choices)], ...
0
votes
1answer
48 views

Accessing the items of other List through Event receiver of a List

I have two lists "List A" and "List B" List B has columns: Color [Single line of text] Description [Multiple lines of text] and now how can I get the "Color" and "Description" of the second Item ...
1
vote
0answers
32 views

How to move a file programmatically and preserve full version history (including users!)?

I have a document approval system that works something like this: User uploads a document to one library, fills out metadata. Approval process begins, workflows are fired to send out notification ...
0
votes
0answers
10 views

Event Receiver failed to add Items to the list with error The sandboxed code execution request was refused

I have an Event Receiver to Process an Excel file and Insert rows to another SharePoint List. I get following error when I add the item to the list. The sandboxed code execution request was ...
0
votes
1answer
44 views

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

I have the following code inside our server-side event receiver, the code should connect to a sharepoint online list and get the total number of items, here is the code:- try { currentItem[...
1
vote
1answer
34 views

SPSecurityEventReceiver - when user is added directly to the site

Thanks for your help. I am trying to implement a notification mechanism where in an email is sent to the site owner when a user is added. This works great with SPSecurityEventReceiver. However, the ...
0
votes
1answer
21 views

Get SPField real DisplayName in timer job

I wrote two event revicer. On base on Web scope - this frature creat page and shom on them all list field by their display name, user select interesting to him field and can they use in mail template. ...
0
votes
0answers
16 views

Library Item adding remote event receiver get file

In Library Item adding remote event receiver how can I get the file which is getting added but not yet added?
0
votes
0answers
27 views

Oracle connection with SharePoint list

I want to create Oracle connection with my SharePoint List, I am using an event receiver on a list item for CRUD Operations. using (OracleConnection conn = new OracleConnection(connectionstring)) { ...
0
votes
2answers
67 views

Updating document library column when document in checked out

I am working on one small project on SharePoint online(E3), requirement is as per below. Whenever any user check out the document, the document library column "isApproved" should be set to "No" one ...
1
vote
1answer
92 views

Item updated event receiver not firing when workflow updates the list item

I have an event receiver on an item updated event, when i manually update the list item, the event receiver is firing and calling the method, but when i update the list item through workflow step,when ...
0
votes
1answer
80 views

Trigger azure function on list created event - SharePoint Online

We want to trigger an azure function whenever a new list is created in any site collection in our tenant. So far, we have found webhooks limited to specific list only. In On-prem env, we can use ...
0
votes
2answers
178 views

Get item URL from SharePoint ItemAdding Event receiver

I have a sharepoint list with the folders option enabled. My goal is to save the items only inside the folders so that I could grant unique permissions on the folder rather than the item itself. In ...
1
vote
0answers
18 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(); ...
1
vote
1answer
24 views

Deploying Event Reciever

I Know that event receiver should be deployed as a sandbox solution. But what if I deploy it as a farm solution. Is there any negative impact or not.
1
vote
1answer
23 views

Permission change event in SharePoint

I am working on one solution where, I need to track changes over permission for any documents under selected sites. If I do crawl to each document I will ofcourse will get the updated permission, but ...
1
vote
1answer
14 views

Looking for advice on where to start with event receivers

I am working on a solution that will require to detect when a page is created on prem (sharepoint 2016) and then use information from the page to create a list item online (o365 sharepoint) My ...
0
votes
1answer
47 views

How to update list item column value in ItemAdded event receiver and get the updated value in the same event?

SP2016 event receiver: I have a requirement that on the itemAdded event I have to get the list item id and manipulate it and then keep it in another column. So, on the itemAdded event, I am getting ...
0
votes
0answers
52 views

Getting the Updated Folder Name(FileLeafRef) in ItemUpdated Event Receiver gives me the wrong name

I have an item updated event receiver, when i update a folder name example "TestName" to "TestName Renamed" the properties.listItem["FileLeafRef"] gives me "TestName" and not the updated "TestName ...
0
votes
1answer
23 views

Event Recevier gets wrong date in itemAdding

I have an event receiver in sharepoint online and it is deployed in azure. so i noticed that it is returning the wrong date and have noticed that it gets the previous day if the time is 12:00AM. ...
2
votes
0answers
107 views

Remote Event Receiver on ItemAdding triggered but not updating folder columns

I have a remote event receiver attached to a Document Library. The er is attached to ItemAdding and ItemUpdating. The same code runs on both events to update values in several columns based on the URL ...
1
vote
1answer
50 views

Will event receiver trigger on a SharePoint 2013 on premise site if site collection has been set to read only

I have one SP site where there is an event receiver that gets executed and keeps track of all the information about the documents which are getting downloaded. Business plans to make this site read ...
0
votes
1answer
42 views

Technique to run an event receiver from console app

There's a imported list with 500.000 items and an event receiver attached to it (itemAdded/Updated). I need to run the event receiver on older items meeting specific criteria but I don't want to ...
1
vote
0answers
21 views

MethodInfo mi object returning null

I am trying to use the CheckInFileByUser in an event receiver so that I can store a user object on the modified by column instead of our service account. I am getting this error mi returns null
0
votes
1answer
52 views

How to access another Site with event receiver?

I am doing an event receiver which updates a list from another Site, I don't know how to access another site using CSOM
0
votes
1answer
1k views

Sharepoint Event Receiver Not Firing on ItemAdded

I have set up a local development environment on sharepoint for the sake of testing event recievers. I can build and deploy the following code. However when I deploy the following code it does not ...
0
votes
1answer
77 views

Event Receiver - Revert back last version of document Update on Item Updating or Item Updated Event

I want to revert back the last updated version of Document through Event Receiver on specific condition occurred. I have 1 Document Library, in which I have assigned a content type. In content type ...
0
votes
1answer
15 views

Testing Event Reciever for Document Upload - Sharepoint Development Environment

You'll have to forgive my ignorance with regards to deploying this code. I have written some code to modify an event reciever. I have set up a development environment for sharepoint. The development ...
0
votes
2answers
59 views

What Event in Event Receiver should I use to catch the file uploading event?

What Event in Event Receiver should I use to catch the item uploading event? Seems that ItemAdding or ItemAdded can not catch the event
0
votes
1answer
79 views

SharePoint 2013 - GroupUserAdded event receiver not firing when adding user programmatically to group

I've added a GroupUserAdded event receiver to a SPWeb and confirmed the correct deployment via SharePoint Manager. Additionally, the call to the receiver class is working fine when adding a user via ...
2
votes
1answer
739 views

Show Item Level Permissions in Column [C# - SharePoint 2013]

I'm trying to show all Item level Permissions in a SharePoint list Column. I already solved this using PowerShell, however it was so slow to run sequentially, I've decided I need a C# Solution: I ...
0
votes
1answer
38 views

Issue with Date difference in Event receiver, If updates is coming from JSOM and SSOM

We are adding item in list with Jsom and SSOM. Following is the scenario when item is added through SSOM , we have a date field in which date is proper. Once item is added , we have an event receiver ...
2
votes
1answer
116 views

SharePoint Add Days to a Date Field Using C#

I am currently using an event receiver in a SharePoint site meant to onboard new employees. New user info is entered into a list called "New Hire Profile" and a second list called "Access Profile" is ...
0
votes
0answers
61 views

Event receiver attached to document library is not firing

Event receiver was deployed into sitecollection using powershell and site feature was activated. Using powershell , i am able to see ER is attached to library. However , it is not firing: Event ...
1
vote
0answers
83 views

Disable Event Receiver While Updating item in list

I am performing multiple update on the same list item and each time when i update the item, Event Receivers gets triggered. I need to update the item but at the same time I also want to event ...
1
vote
0answers
31 views

How to add remote event receiver to already created document library in SharePoint online?

I have a document library which has different folders in it like Task 1 , Task 2 etc. Whenever user uploads a file inside any folder lets say Task 1 , i want to assign file property(Task Name) as Task ...
0
votes
1answer
47 views

Provison Column Defaults with PowerShell/SCOM

I found several post on how to add a custom LocationBasedDefaults file in the forms folder to provision Column Defaults in a SharePoint List: First and Second These were based on CSOM/#C I was able ...
0
votes
2answers
752 views

Remote event receiver not firing (SharePoint Online)

I have downloaded the PnP sample project ECM.AutoTagging and have configured an azure service bus for debugging, have created new client id/token and updated the app manifest/web.config and so on. I ...

1
2 3 4 5
18