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
1answer
835 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
1answer
755 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 ...
1
vote
2answers
842 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
1answer
903 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
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 ...
1
vote
1answer
1k 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.
6
votes
3answers
3k views

When to use Server side event receivers Versus using Remote event receivers?

I read a long article about two types of event receivers inside SharePoint server 2013:- Server side event receivers (available inside SP 2013 & SP 2010) Remote event receivers(available inside ...
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
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
34 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 ...
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
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
0answers
18 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&...
0
votes
1answer
1k 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 ...
0
votes
2answers
726 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
1answer
736 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
884 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
890 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
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
2answers
915 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
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
640 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 ...
0
votes
2answers
95 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
1answer
57 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
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). ...
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
46 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
27 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
43 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
19 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
14 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
26 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
61 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
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....
3
votes
1answer
607 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
88 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
77 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
1k 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
172 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
825 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
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(); ...
0
votes
1answer
272 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
22 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
2 3 4 5
18