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.

266 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
346 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
966 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
119 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
171 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
44 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
414 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
410 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
390 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
621 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
45 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
58 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
361 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
38 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
54 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
38 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
0answers
178 views

Content length is 0 for HttpPostedFile object in Itemadding event

I have a item adding event attached to a document library and as per the framework you can't get the SPFile object in ItemAdding in an event receiver. So I'm using HttpPostedFile object to get the ...
2
votes
1answer
358 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
502 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
331 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
674 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
595 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
38 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
353 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
482 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
172 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
172 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
490 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
0answers
449 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
140 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
342 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
94 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
151 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
22 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&...
1
vote
0answers
23 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 ...
1
vote
1answer
28 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 ...
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(); ...
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
20 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
81 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
21 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
79 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
31 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
34 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
2 3 4 5 6