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
2answers
31 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). ...
1
vote
2answers
3k views

Unable to get user field value in event receiver's afterproperties

I have a document library in which there is one field approver (multi - value). There is an event receiver for item updating of the document library that I want to validate user while changing the ...
0
votes
1answer
41 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)], ...
1
vote
1answer
694 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
47 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 ...
0
votes
1answer
769 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(...
0
votes
2answers
864 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. ...
1
vote
0answers
14 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 ...
1
vote
1answer
709 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
766 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....
1
vote
2answers
797 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
836 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
34 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[...
0
votes
1answer
858 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 ...
1
vote
1answer
994 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.
1
vote
1answer
12 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
18 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
10 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
1answer
621 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 ...
0
votes
0answers
23 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
30 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 ...
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....
1
vote
1answer
9k views

SharePoint 2013 Event Receiver on Custom List Definition not firing

There is custom list definition and I have attached an event receiver on ItemUpdating of list instances from the custom list definition. For some reason, the Event Receiver doesn't seem to fire at all....
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 ...
0
votes
1answer
933 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 ...
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 ...
3
votes
1answer
601 views

Handling itemupdated calling itemupdating

I have a custom list (not document library) that i have attached 2 event receivers to. These are itemupdating and itemupdated. My itemupdating event receiver sets a value in a field and my ...
1
vote
1answer
45 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
37 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 ...
2
votes
3answers
938 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
83 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 ...
0
votes
1answer
822 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
0answers
16 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
1answer
244 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
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
16 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
31 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
45 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
21 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
451 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
18 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
29 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
51 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
935 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
16k 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
945 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 ...