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
1
vote
1answer
691 views

Is it possible to have the round robin logic in the sharePoint list 2010?

Is it possible to have the round robin logic in the sharePoint list? I have two lists in SharePoint 2010. In List A i have Assigned to field column(people or user group). In List B i have two fields ...
0
votes
1answer
717 views

Get user login name by email address even if the user is still not ensured

Is there a way to get the user name or the SPUser object by passing the mail address for a user, which is not already known by the site? I know I can get the SPUser by using SPSite.AllUsers....
0
votes
1answer
24 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
1answer
685 views

Change selected value in combobox through c#

I have an event reciever that fires when ever an item attachment is added. public override void ItemAttachmentAdded(SPItemEventProperties properties) { base.ItemAttachmentAdded(...
2
votes
3answers
896 views

Event receiver not firing Document Library

I have a local development environment in my VM.(SharePoint server 2013 SP1,Visual Studio Ultimate 2013-update3). I'm trying to add an event receiver to a document library on ItemDeleting. Deleting a ...
0
votes
2answers
35 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
2answers
764 views

Javascript Disable event receiver firing

Are there any ways to disable event receiver firing by javascript for a list during updating data?
0
votes
2answers
792 views

What is the best way to CRUD data in SQL database into SharePoint?

In Sharepoint site, I have a list, it will display data from the table in SQL database. When user insert, update or delete item in this list, the SQL database will be changed too. The change is one ...
0
votes
1answer
821 views

Event Receivers for Calling Web service

I am having SharePoint 2010 with 1 Application Server and 1 Front End Web Server I want to call a Web Service to send SMS (SOAP 1.2) whenever an item is added to a Custom List. I tested a Event ...
0
votes
1answer
871 views

ItemAdding Event Receiver appears to be not firing

I've searched for an answer to this but nothing I came across was exactly like what I'm experiencing. I have 1000's of site collections that have been created from the same site template which is ...
0
votes
2answers
833 views

How to insert new line in the SharePoint error message?

I have written a code in event receiver which validates the user entered. My code is complete but the message I want to pass comes in the sinle line. I want to display the message in multiple lines. ...
0
votes
1answer
821 views

Why ItemUpdating is calling after ItemAdded event in Sharepoint-2010?

I am developing Sharepoint 2010 application where I have been using SPItemEvent to deal with ItemAdded event. One thing surprised me that ItemUpdating event is calling after ItemAdded event in List. ...
1
vote
1answer
960 views

how to execute PowerShell script inside an event receiver from sharepoint online

I want to execute a powershell script from an event receiver. The event receiver is triggered whenever an new item is added to my custom list in sharepoint online site.
0
votes
1answer
598 views

Copy list data from one location to another in the same site collection SharePoint 2013 Online

I have a custom list for 'Products' in my top site collection, and I have two sub sites where I need to display the same information. I have copied the Products list as a list template into b oth sub ...
2
votes
2answers
1k views

SharePoint event receiver ItemUpdating event behaves differently when a list item is updated through Workflow

I am having a SharePoint custom list which is having a designer workflow and event receiver attached to it. In the event receiver on ItemUpdating event I am having the below code to check if a ...
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(); ...
5
votes
2answers
2k views

How to create SPQuery by filtering date interval

I have a custom aspx form where I retrieve list items by filtering two values EventDate and EndDate. I have a realization but it returns nothing: DateTime eventDate = Convert.ToDateTime(properties....
0
votes
1answer
208 views

Event Receiver Rename file

I am trying to rename file( removing few unwanted characters adding few etc). I am able to do it via itemadded event I have tried SPFile.MoveTo( works fine) and simple changing property["Name"] it ...
1
vote
1answer
23 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.
0
votes
1answer
1k views

HttpContext in EventReceiver constructor is null

I'm trying to use SPUtility.Redirect in ItemAdding EventReceiver. And I'm trying to get HttpContext.Current in Event Receiver constructor, but it's null public class MyClass : SPItemEventReceiver ...
1
vote
1answer
14 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 ...
4
votes
1answer
2k views

How to display event receiver error inline not in error page

I have a problem with displaying error messages inline, but sharepoint displays that ugly yellow page. Yes the error message is correct, it's the one I defined but I need to display errors like the ...
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 ...
1
vote
1answer
663 views

Copy File Name to Title Field in Asset Library

I need to put together an Event Receiver on Asset Libraries which copies the File Name of the asset being uploaded to the Title Field of the list. I am currently using the following code. The ...
0
votes
1answer
20 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
27 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
19 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
2answers
290 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 ...
0
votes
0answers
16 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
25 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
37 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
2answers
791 views

Event manager error: Could not load file or assembly … or one of its dependencies. The system cannot find the file specified

Sorry for the common error. I have checked old discussion and cannot find one same as mine. I hope someone here have encounter this before and tell me how to fix (or tell me no way to fix). We are ...
0
votes
4answers
15k views

sp2013: error: Your changes conflict with those made concurrently by another user

I have an sp2013 portal. I have a custom contenttype and a custom list. I have an eventreceiver (ItemUpdating) which is updating a column in the current listitem. Sometimes I get this error. I think I ...
0
votes
2answers
1k views

javascript event when a row is updated/changed in a Datasheet view?

Is there any way to catch update/changes in the Datasheet view of a list in JavaScript in SharePoint 2010? I see their are event receivers but nothing in Javascript.
2
votes
2answers
937 views

Remote event receiver on sharepoint 2013 online does not work

I recently started to develop Sharepoint 2013 on my office 365 account. The problem is that remote event receivers which I attach to deploying application do not work. I mean that they should listen ...
1
vote
1answer
34 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
37 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 ...
2
votes
2answers
1k views

AppInstall remote event is called multiple times

When developing provider hosted apps and testing in SharePoint Online, I've noticed that my AppInstalled remote event is often triggered 4 times when installing the app in site content. Here is an ...
0
votes
5answers
3k views

Getting ItemUpdating Even Receiver to do the same thing as ItemAdding

I have a library that allows multiple folder content types. I am grouping the folders by content type but I don't want the group heading to say Content Type: whatever. Instead, I created a hidden ...
3
votes
0answers
609 views

Start SharePoint 2010 Designer Workflow using Visual Studio Event Receiver

I have created one send email workflow using SPD 2010 for my custom list (like Licnese Management). Now, I need to start that workflow only on specific condition like, If Deactivation Date / Valid ...
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 ...
1
vote
0answers
80 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 ...
1
vote
1answer
798 views

Event receiver not binding to Content Type

I am unable to attach an event receiver to my custom content type. If I change the inherits property of the content type to false , then the content type is not visible after deployment. I change the ...
0
votes
1answer
41 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
319 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
49 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
34 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