Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
12 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
13 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
17 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
14 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
18 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. ...
0
votes
0answers
13 views

iTextSharp PDFReader not loading the pdf from binary byte

I have created an EvevtReceiver with item was added and item was updated on document library. I am trying to upload a pdf into document library and save the modifieddate of pdf into a column called ...
1
vote
0answers
19 views

Clarify Event receivers Document ID Generator for Item Add

Could someone clarify this for me. I am using Document ID in a SharePoint site. I have added 4 content types to a library and I note that 4 Document ID Generator event receivers have been created for ...
1
vote
0answers
25 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
33 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
34 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 ...
0
votes
0answers
19 views

modal pop in list quick update view SharePoint 2013

Is it possible to open a modal pop up; when we save an item from List quick update view?? Note: I'm not using list forms. I have custom item updated and item updating event receiver attached to that ...
1
vote
0answers
19 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
0answers
23 views

Is there a way to add a check-in event handler using client-side code?

Using SP2013. My site has a document library of Excel files. I have client-side access to modify the site via Sharepoint Designer 2013. I'd like to set up an event to fire when a document is checked ...
0
votes
1answer
39 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
157 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
44 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
32 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
0answers
21 views

How to convert Microsoft.SharePoint.Client.File file to ProjectFile in SharePoint event receiver?

I am trying to read MPP file from SharePoint Document library in sharepoint online however i am not able to convert microsoft.sharepoint.file to projectfile used in project reader. I am using net.sf....
0
votes
1answer
51 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 ...
0
votes
0answers
24 views

Use the same Event Receiver on two separate lists using ListUrl

Is it possible to use the same even receiver on two different SPList, using ListUrl ? Something like the following : <Receivers ListUrl="Liste2"> <Receiver> <Name>...
2
votes
1answer
381 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
0answers
112 views

Access denied GetFileOrFolderProperties when changing permissions in ItemAdded event

We have a event receiver that runs some custom code to change permissions on the ItemAdded event. The permission changes are made inside of an elevated scope using an elevated web. Both before and ...
0
votes
1answer
35 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 ...
0
votes
0answers
29 views

On Premises Event Receiver to update 365 item

I have recently found out about the Event Receivers' existence and for the past few days I've been trying to solve and old problem: creating an item in 365 as soon as it's created in our internal ...
2
votes
1answer
73 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
40 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
40 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
24 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
36 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
0answers
13 views

Event Receiver(scope to web), when deployed, it attached to list however it also attach to site

Hi i've a event receiver that is scope to web. On development environment, i deploy and it manage to attach to just list, it will only trigger from this specific list. However when i deploy to ...
0
votes
2answers
222 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
vote
0answers
31 views

Can i convert a .XLSX file to a PDF inside my server side event receiver

I am working on developing an Event Receiver inside my SharePoint farm 2013. now inside my event receiver i am trying to do the following:- to copy a .xlsx file from a document library. add the file ...
0
votes
0answers
52 views

SharePoint Event Receiver: call ItemAdded after ItemUpdated?

I am moving a document in the ItemUpdated event from one library to another. I want to fire the ItemAdded event on the newly moved item in the second library. I've tried to do what I need in the ...
1
vote
1answer
27 views

Can anyone confirm this Event Receiver behavior in SP2013/2016?

I've done significant (though not extensive) testing in two separate environments - one SP2013 and one SP2016, and I've found that in the 2013 environment the AfterProperties of an ItemAdding event ...
0
votes
1answer
30 views

How to distinguish between an item move and a deletion

I have a question about SharePoint 2010 and the technical differentiation between an item move and a deletion in an event receiver. As I could see, when moving a document to another library, the ...
0
votes
1answer
23 views

How i can get the Label for a managed metadata single value column inside my event receiver

I am working on building a server-side event receiver for SharePoint on-premises 2013. now I have a single value managed metadata column named "OrderCustomerName", and I want to get the term Label, as ...
0
votes
1answer
44 views

Feature Event Receiver - older version of event receiver firing

Sharepoint 2013 Steps to recreate issue: 1.) Following the steps from this blog... https://sharepointgotchas.wordpress.com/tag/httpmodule/ I started with an Empty SP solution. I created an HTTP ...
2
votes
4answers
2k views

EnsureUser() will return the following error “The specified user could not be found. ”

I am working on developing a server side event receiver inside sharepoint on-premises farm 2013. Inside the code i have the following, which will retrieve a string from a drop down list column ...
1
vote
1answer
56 views

Event receiver for EditTermProperties.aspx

Is there an event receiver for page "_layouts/15/EditTermProperties.aspx"? When a user clicks ok to save I need to access before and after properties of that term. Same as we have in custom list event ...
1
vote
4answers
152 views

How to download file from SharePoint document library to server in Event receiver?

I have created event receiver (Item added) which is attached to document library. Whenever document is added/uploaded in document library which should create copy of it on file system.Following is my ...
1
vote
2answers
120 views

Unable to copy/paste a file between 2 document libraries using c#. Error “The URL is invalid.”

I have the following code inside my Event Receiver, to copy a file from a document library named "Templates" to a sub-folder inside our "Shared documents" library SPDocumentLibrary template = (...
0
votes
1answer
66 views

What is the best Object type i can use that represent a site column of type People or Group, which can hold SPUser or SPGroup

I am working on an Event Receiver for my SharePoint farm 2013. now i have a site column of type "People or Group", and this site column can hold User Name/s OR group names. so inside my Event ...
1
vote
0answers
72 views

Generate hash for each new document in document library

I am using SharePoint server 2013 I would like to create an event receiver on a document library, and inside this event receiver I would like to generate an hash for example an MD5 hash. In the ...
0
votes
1answer
43 views

Why hidden fields will always be null inside my ItemUpdated Event receiver , if i checked them using properties.AfterProperties

I am working on a SharePoint 2013 on-premises farm. and i have added an ItemUpdated event receiver for my custom list, as follow:- public override void ItemUpdated(SPItemEventProperties properties) ...
3
votes
1answer
96 views

Can item Adding & item Editing operations be canceled inside Remote Event Receivers

I am trying to find the differences between Server-Side event receivers and Remote Event Receivers. now in server-side event receivers i can achieve following scenario:- Check if the user who is ...
1
vote
1answer
40 views

Event Receiver ItemUpdated with multiple changes

I have a categories' hierarchy in my system that needs to be changed when the parent item's value has changed. When a create a new category in my system, I always save the path of hierarchy. For ...
0
votes
1answer
40 views

Problem in getting file size while uploading

I am trying to get the file size while uploading it using properties.AfterProperties["vti_filesize"].ToString() but it always returns 0 while I am uploading ZIP files.
2
votes
2answers
747 views

Getting all event receiver in a site collection via C# or Powershell | SharePoint 2013

I am trying to get all event receivers in a site collection for all lists and libraries. Is there any way to do so? I have got articles where they find it for content types but not for any lists.
1
vote
2answers
214 views

Is there a way to tell if a document was uploaded using drag-and-drop vs regular upload in an event receiver?

The scenario: Content Organizer enabled, Drop Off Library has a bunch of custom content types as well as the default "Document" content type (library default is set to "Document"). Multiple users ...