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.

264 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
343 views

Workflow doesn't fire when new item is created through Event receiver

When new item is added through event receiver in a list, I have OOTB workflow on item created on that list. But unfortunately it doesn't works. Any help would be appreciated. Thanks
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....
4
votes
0answers
846 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. ...
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
97 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 ...
3
votes
0answers
152 views

Sychronizing a List and a Term Set

In an application I'm building in SP 2013, I would like to have several lists with lookup fields, attachments, workflows, etc., but also be able to reference them via tag fields (at least like a ...
3
votes
1answer
43 views

Accessing Web application on a NLB Environment having Session values

I am having a multi server production environment with 2 WFEs ,2 Index Servers, 2 SQL Server boxes. I have deployed my wsp on these 2 WFEs. The issue I am facing is when the NLB switches from one IP ...
3
votes
0answers
404 views

Event receiver not firing when item added by workflow

event receiver not firing when item is added by workflow. Its working perfectly when we manually add item to list. I am using SP Designer 2013. When we add item through workflow, it shows that item is ...
3
votes
1answer
207 views

Event Receiver for Social Features

Are there any such things as event receivers for social activities in SharePoint 2013, e.g. when a user likes or rates an item? If not, are there any other ways to execute custom code when events like ...
3
votes
0answers
376 views

Sandbox ItemAdded Event Receiver on “Document Library”

I have a Document library whose only content type allowed is my own custom "Document Set" Content Type. My custom Document Set content type creates a number of sub-folders and and deploys files as ...
3
votes
1answer
406 views

Can I trigger event receiver when webpart is added?

Is there such an event receiver, that would fire when user adds webpart to a page? If yes, how can I create such receiver?
3
votes
1answer
371 views

custom email event receiver doesn't accept .msg file attachments

Environment is Sharepoint 2010. The issue I'm running into is essentially the one that occurred here: http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/f74ca4cb-44fe-4918-b206-...
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 ...
2
votes
0answers
43 views

ISS error when deploying remote event receiver on azure

I try to deploy a remote event to azure,i successfully deploy the web app to azure and the add in to app catalog. But when i add the app to the site it doesnt get install i check the log file on azure ...
2
votes
0answers
55 views

Wiki Pages Library Event Receiver(ItemUpdated) doesn't fire when copy past content from Wikipedia

I have attached an event receiver to Wiki Pages Library ItemAdded and ItemUpdated events. The ItemUpdated event fires when I add/create content from OOTB designer view (Insert, Text Format, etc) ...
2
votes
1answer
279 views

Send email with attachment in visual studio workflow using event reciever

I a have a SharePoint 2013 list. This list has a visual studio sequential workflow. This Form will go to director then if he approved it will go to the approver to approve and then it will reach to ...
2
votes
0answers
32 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 ...
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
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 ...
2
votes
1answer
333 views

SharePoint 2013 - Set regional settings for subsite - Web Event Receiver

We are trying to set Regional Settings for new subsite in WebProvisioned event. Scenario is, we have two Variations site created, one for English and second for Arabic. We need to set Regional ...
2
votes
2answers
349 views

Error with site collection daily resource usage quota

Recently I've added an event receiver to a sandbox feature, but since I added it, whenever I try to deploy the feature, I always get the message Error occurred in deployment step 'Add Solution': ...
2
votes
1answer
279 views

Content Type Event Receiver in SharePoint 2013 Content Type Hub / Subscriber scenario

I have a SharePoint 2013 site with Multi Tenancy configured. I have a Managed Metadata Service also configured in Partitioned Mode since it is a multi tenant environment. I have a Visual Studio ...
2
votes
0answers
578 views

Service unavailable when deploying event receiver to Sharepoint

I'm trying to deploy a simple remote event receiver (as per http://sundarnarasiman.net/?p=224) to a hosted Sharepoint 2013 server, for which I have admin rights. However, when building/deploying this ...
2
votes
1answer
515 views

SPEmailEventReceiver create item with relation to email

Im trying to implement custom SPEmailEventReceiver. I created class simular to this: https://stackoverflow.com/questions/24370749/getting-the-email-message-eml-as-an-attachment-to-sharepoint-listitem ...
2
votes
1answer
32 views

Disable Event Receiver on Datasheet Editing

I have an ItemUpdated Event bound to a list and do not want it to fire when the List item is edited in Datasheet view. Is there a way to detect if the User is editing through the Datasheet?
2
votes
2answers
336 views

Change permissions on Document Library

We want to create document libaries from previously stored templates or from new. When a library is created in a site it inherits the permissions. Is it possible to break inheritance when library is ...
2
votes
0answers
446 views

Sandbox Solution failing to load

Okay I think I'm missing something when I'm trying to build an Event Receiver. I'm new to this so please excuse my ignorance. But when I try to deploy an Event Receiver I always get a Could not load ...
2
votes
2answers
165 views

Not getting latest (Major) version SPFile in ItemUpdated

I have a Document Library with versioning enabled. After someone has approved a document, the word document gets converted to a pdf with Muhimbi and gets copied to the intranet (other site collection)....
2
votes
0answers
48 views

Set permission on ListItem level. Issue with usernames with Norwegian letters

I have created an EventReceiver that is setting permissions on ListItem level. I am having some problems with users having norwegian letters (æøå) in their username. For other users it works. Under ...
2
votes
0answers
158 views

Datetime AfterProperties value changed on save

I have written an EventRechiver that results in some strange behavior. I reacths to an Item beeing added to a list. This is done by both users trough UI and by a timer job. The ER sets some custom ...
2
votes
0answers
428 views

Renaming document gives file not found on uploaded documents

Im trying to do a seamingly simple task in SP 2013. when the user either Creates a new doc (Ribbon>Files>New Document) or Uploads a File i want them renamed to for example [original_filename]_[...
2
votes
1answer
587 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 ...
2
votes
0answers
446 views

Is there a way programmatically I can check if the user wants to upload a file as new version?

We have a document library and we added an event receiver to move the files out of the root folder accordingly to our business requirements. I am having issues now because I am trying to check if the ...
2
votes
0answers
133 views

Enforcing check in comments with a pre-formatted comment template

I'm looking for a way to force users to enter a comment when checking in a document to a specific library, I'd also like to auto populate the comment window with some content in order to guide users ...
2
votes
0answers
340 views

ListAdding is not firing, but ListDeleting yes

I have an SPListEventReceiver on Custom List Definition in SharePoint 2013 that handles the ListAdding and ListDeleting events. <Receivers ListTemplateId="10002" > <Receiver> <Name&...
2
votes
0answers
93 views

Change logic for event receivers in an already deployed solution

I have a sandbox solution that has list schemas, visual web parts, custom pages and actions, workflows and a couple event receivers. Yes, one big mess of a thing, but I needed to pack everything up in ...
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 ...
2
votes
0answers
2k views

Event Receiver update document content on ItemUpdating

I am trying to update a document in the item updating event receiver, but I keep getting the error: "The file IOF/This is a.docx has been modified by ....." I have the following code in my SP 2013 ...
2
votes
0answers
149 views

Site is Provisioned but Content Type List is still empty

I have this feature that I am trying to run in order to configure a site, this feature among other things creates pages based on content types, etc. The problem I am facing is that every time i am ...
1
vote
1answer
25 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 ...
1
vote
0answers
13 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(); ...
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.
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 ...
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
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
1
vote
0answers
51 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
25 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 ...
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 ...
1
vote
1answer
28 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 ...