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
134 views

how i can break permission inheritance + remove some user groups from a newly created sub-site inside my event receiver

I am working on building a new event receiver which get fired when item is updated, inside my sharepoint enterprise server 2013. now inside the event receiver i am doing the following main steps:- ...
2
votes
1answer
155 views

Recommended way/Best Practice to create a sub-site with RunWithElevatedPrivileges inside my Event Receiver

I am a bit confused if i am breaking the sharepoint best practice inside my sharepoint 2013 event receiver. now i have the following general requirements:- site collection url = http://servrname/kb/...
1
vote
3answers
725 views

Error inside my event reciver <nativehr>0x80070002</nativehr><nativestack></nativestack>There is no Web named

I am working on building an event receiver inside my sharepoint server 2013. now i have the following structure:- site collection url = http://servrname/kb/pmo sub-site url = http://servername/kb/...
3
votes
1answer
397 views

Access is denied. inside my ItemAdded event receiver

I am working on SharePoint Server 2013 Enterprise, and I have implemented the following event receiver which is scoped at the Web level, and will fire when a list item is added:- public class ...
0
votes
1answer
462 views

Duplicates of Document ID Generator in Document Library after adding Content Type

On a Sharepoint 2010 server with the Document ID service activated I have a document library with content type management enabled. After adding a content type that I've created in Sharepoint Designer ...
5
votes
3answers
231 views

Is it totally wrong or should be avoided to create farm solutions inside sharepoint 2013 on-premise

I started a new sharepoint 2013 enterprise server on-premise project for a customer, and on the first phase I want to do the following which requires me to create 2 farm solutions:- I need to add ...
0
votes
2answers
58 views

getting data by comparing fields in 2 lists in SP2013 event receiver

I have document library with name XYZ and list with name MAPPING . MAPPING list conatins 2 columns they are Title and dstURL with type Hyperlink. The values of XYZ library Title filed matched with ...
0
votes
1answer
334 views

ItemAdded Event Receiver is not triggered when item is added by workflow

I am debugging on SP2010 environment. There is an Event receiver listening to particular list, the first few lines of code is: public override void ItemAdded(SPItemEventProperties properties) ...
0
votes
1answer
26 views

Test bed for asynchronous event receivers

Is it somehow possible to configure SharePoint on a test/debug environment so the order of execution of event receivers is orchestrated? There are moments when a couple ItemUpdated events occur, or ...
0
votes
1answer
490 views

Unable to activate the feature while deploying the solution in sharepoint 2013?

I tried to deploy our solution in visual studio while activating the feature it throws an error message like these Error 2 Error occurred in deployment step 'Activate Features': Failed to load ...
2
votes
1answer
2k views

Event Receiver on Publishing Page Library

I created a new event receiver and hooked it onto the Pages library for my publishing site. I attached each one of the events exposed, but I cannot get any of them to fire. elements xml: <...
0
votes
2answers
29 views

Please advice on rewrite event receiver code on SP2010

Recently I need to take care an SP2010 farm which I am not familiar. There is an event receiver with part of code as below: SPListItemCollection ListA = properties.Web.Lists["ListA"].Items; List<...
5
votes
4answers
13k views

Event Receiver, Before and After properties

In an event receiver, Item Was Updated. I want to Compare the Moderation status on ListItems to perform some functionality.This is just some of the code. SPList list = web.Lists["DocLib"]; SPListItem ...
1
vote
4answers
3k views

Getting file name being upoloaded in ItemAdding

How to get the name of the file being uploaded if the listitem is not created yet? public override void ItemAdding(SPItemEventProperties properties) { SPWeb TargetWeb = properties.OpenWeb(); ...
0
votes
2answers
475 views

Update Second List in Task List Event Receiver

I'm using SharePoint 2013 on-premise with Nintex 2013. I have a list (List A) that has a workflow attached which is associated to a 2010 Task list, (Task List A). I have a requirement to update an ...
0
votes
3answers
960 views

Remote event receiver with Azure App Service

We want to implement a Remote Event Receiver on SharePoint Online List. But we don't want to use Provider-Hosted Addins. Is there any way to have a event-based application which listens to a SPonlie ...
2
votes
0answers
34 views

ItemAdded not working when I mail something and I have an Email Enabled List and Mail Subject or Body contains any URL

As checked and found that whenever we put any URL in either the subject or in the body of the mail to send, than neither the entry nor any email notification will receive at my end. I am using an ...
1
vote
1answer
504 views

Email enabled list item added

I am currently developing an event receiver for an email enabled list and I'm confused as to how to correctly handle the item being added to the list. On one hand I have the ItemAdded event and on ...
1
vote
1answer
769 views

Error occurred in deployment step 'Activate Features': The list “Lists/Issue Manage” doesn't exist. Please fix the ListUrl attribute

I am working on sharepoint server 2013. and i have developed an event receiver which fires when lists items are updated. now i define the following setting inside the elements.xml for my solution:- &...
0
votes
2answers
69 views

best appraoch to deply an event recevier which span multiple subsites

I am working on SharePoint server 2013 web application. And I need to create an event receiver on my lists items. The event receiver will check if the user who create an item is within a specified ...
3
votes
2answers
300 views

Best approach to re-use an Event receiver among multiple subsites and multiple lists

I am working on SharePoint 2013 team site collection, and I have the following architecture - A team site collection which contain 15 sub sites. Each subsite represents one of our customers. On each ...
0
votes
1answer
27 views

Event receivers not getting lists

I am trying list/ or delete an event receiver from my document library. When try to get the event receiver definitions it shows me only DocumentSet event receivers. the custom event receivers(Item ...
1
vote
1answer
161 views

Send email from SPEmailEventReceiver.EmailReceived method

I have scenario wherein i have to send email to users when an email is received. That is there is a Sharepoint library for which incoming email so configured. On receipt of email i have to do some ...
1
vote
1answer
220 views

What are the differences btw “properties.Web.CurrentUser;” & “web.Users.GetByID(properties.CurrentUserId);” inside my Event Receiver

I added the following Event Receiver inside my sharepoint server 2013:- 1. Using VS >> add a new Event Receiver >> Type "List Item Events" >> when "item was created". 2. the idea of the event receiver ...
0
votes
1answer
95 views

How to fix this issue while trying to attach event receiver via powershell?

I tying to attach event receiver via powershell but facing this issue: $list = (get-spweb http://site/it).lists['IT Support Request'] $def = $list.EventReceivers.Add() $def.Assembly = "$SharePoint....
1
vote
2answers
285 views

How to move / copy documents from one SharePoint library to another SharePoint library on different farms Using Event Receiver?

We have requirement to move /copy documents from one site to another, sites are on different farms( totally different environment). We can can copy items if library in same application/ site ...
0
votes
2answers
113 views

In Timerjob Its possible to get Resource file From virtual directory?

In my requirement i was added items in list through Timerjob.When Item was added in Event receiver get triggered. My question is, Getting resource file from virtual Directory App_GlobalResources the ...
1
vote
1answer
364 views

How to create a trigger for an Event Receiver from PowerShell

I want to create a trigger for an Event Receiver (itemupdated) for all items in a list. I know that Ι can just "update" the item through PowerShell, but I can't do that because the list has versioning....
4
votes
1answer
1k views

How to remove duplicate EventReceiver entries

Lately i had a bug that time-to-time added duplicate event receiver entries in SPEventReceiverDefinitionCollection. So how do i easily enumerate and remove these duplicate entries?
1
vote
5answers
223 views

Break the permission and assign new ones in itemadding event

I am trying to break the inheritance of the current item and assign the new ones . I tried it using ItemAdded and it worked but the problem was it was taking time to assign the new permissions to the ...
0
votes
1answer
64 views

can i access to builtin alert me definitions(to user defined alerts )by web service or database query

I don't want to customize alert me in SharePoint like this link But i want to get alerts properties like: I want to know that Alerts defined on which list or Doc-Lib? When they want (email or SMS?) (...
11
votes
1answer
3k views

Client Object Model SystemUpdate

I need to have the SystemUpdate functionality from the Client Object Model. Is there any way I can do it since the ListItem.SystemUpdate() does not exist? Another solution would be to disable the ...
1
vote
2answers
154 views

event receiver modified user

I have an event receiver to capture the editor of an updated item. string Editor = properties.ListItem["Editor"].ToString().Trim(); From the above code i can get the user name. But I want the active ...
4
votes
0answers
853 views

Attach Event Receiver to SharePoint Document Library using CSOM C#: 2010

I have created an Event Receiver Assembly and installed in GAC as shown here. In that assembly I have override ItemAdded and ItemUpdated events. The assembly has been successfully installed in GAC. ...
2
votes
2answers
88 views

Difference between Using the Object Model vs. Using Solutions while creating event receiver solution for SP2010

I am having requirement create an event receiver for SharePoint 2010 Lists. I was working with choosing the correct approach. While reading I came across Using the Object Model vs. Using Solutions. ...
0
votes
1answer
3k views

Unable to Debug Event Receiver

I have create custom content type using that content type I have created list in site. Now trying to develop event receiver on list item events. but now I'm unable to debug the code . Updated ...
0
votes
0answers
85 views

Remote Event Receivers are not firing in PHA - onpremises

We have remote event receivers deployed through PHA in on-premises. For sometime RER is working fine. But suddenly stopped working. I am able to attach or detach event receivers to the lists/libraries....
2
votes
0answers
51 views

Can't retrieve column in AfterProperties when it is hidden

How do I retrieve a column that is hidden (List content type >> Change content type column >> hidden) in the AfterProperties when using event receivers? properties.AfterProperties["columnName"] = "...
2
votes
1answer
210 views

Security exception when trying to use JavaScriptSerializer

I am trying to use the JavaScriptSerializer class in an event receiver which is part of a sandbox solution. When trying to use the class, I get a System.MethodAccessException with the following ...
2
votes
1answer
37 views

SharePoint 2010 concurrent updates

I have a scenario where I need to update about 1000000 items in a list. The list has event receivers registered to it that I would like to disable during the update. Since the number of items are ...
3
votes
1answer
381 views

can we send email through remote event receiver in SharePoint hosted app(on-premise)

I want to create a simple SharePoint hosted app which will send an email to any email id,I followed how-to-send-email-with-attachment-through-sharepoint-hosted-app which is feasible to send mail but ...
1
vote
4answers
3k views

Debugging sandboxed ItemUpdated event receiver - breakpoints not hit

I'm trying to debug an ItemUpdated event receiver in SharePoint 2010. I add breakpoints to the code, and hit F5 in Visual Studio 2010. I click Attach when I'm prompted to attach to the process. Then, ...
6
votes
2answers
332 views

Item deleting not firing from selecting item

Item Deleting event receiver is getting fired when i delete a document from edit form and deleting from Ribbon . But item deleting is not getting fired when i select the list item and try deleting ...
1
vote
0answers
137 views

Unable to find SPUCWorkerProcess.exe while debugging Sandbox Solution

I am creating Sandbox solution to attach Event Receiver to Form Library.I want to debug the solution but it is giving me error Unable to attach process 'SPUCWorkerProcess.exe' is not running on '...
1
vote
1answer
778 views

Sharepoint event receiver and save conflict

Event in question is item added event, and I am updating (systemupdate) same item multiple times. Behind the scene: Site is multilingual (English,french,spanish) List item variation propagation is ...
1
vote
1answer
33 views

In sharepoint 2013 event reciever setting the theme inheritance false

Is there any way that we can set the theme inheritance property to false in the SharePoint web provisioning event receiver.
0
votes
1answer
76 views

Deploying Dll to sharepoint sharepoint site throwing exception

I was created a Two Project in one solution One for feature activation and anthor one is for TimerJob. Manually i deployed the solution or If i take a wsp and put it in patch this two solution was ...
3
votes
2answers
168 views

Task locking Event Receiver Execution

I have an event receiver that creates 2 tasks. The task should be created immediately on ItemAdded but there is a delay for some reason. The first task is created immeditately as expected but then ...
2
votes
1answer
8k views

Item Adding / Item Added Event Receiver for Document Library, Change Content Type

I have an issue regarding Content Types,I want to set a particular Content Type for each document set within a library, however SharePoint 2013 defaults to the library's default CT. The issue is ...
2
votes
2answers
568 views

SharePoint Item Changed or Event Receiver

I have a requirement where certain actions take place after status change.Status list contains 10 items.Which will be the best and efficient way to implement if loop in SharePoint designer workflow(...