Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

5
votes
0answers
339 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
4
votes
0answers
817 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. ...
3
votes
0answers
149 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
0answers
397 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
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
0answers
605 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
52 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
0answers
31 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
48 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
0answers
556 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
0answers
432 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
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
418 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
442 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
126 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
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
147 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
0answers
19 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
25 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
40 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
24 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
0answers
72 views

Generate hash for each new document in document library

I am using SharePoint server 2013 I would like to create an event receiver on a document library, and inside this event receiver I would like to generate an hash for example an MD5 hash. In the ...
1
vote
0answers
71 views

Rename Document in ItemAdded

im trying to rename a document in the ItemAdded event receiver with the following code: public override void ItemAdded(SPItemEventProperties properties) { properties.ListItem[...
1
vote
0answers
100 views

What configuration needs to be done in OWSTIMER.EXE.CONFIG for Entity Framework?

I have created the SharePoint Email Event Receiver for the document library. In my project, I have used entity framework to insert a record into the database. But, when I am debugging the application ...
1
vote
0answers
61 views

EventReceiver not triggering with WorkflowCompleted Event In 2013

I have created a workflow in SharePoint Designer 2013, and once the workflow is completed, I need to trigger my event receiver based on the workflow status event that gets changed to workflow ...
1
vote
0answers
34 views

Convert Custom Newitem form into PDF

I'm in a situation where i need to create an event receiver for a custom List, which will create a PDF file of Custom NewForm(replaced SharePoint default webpart with custom one for item adding) and ...
1
vote
0answers
45 views

Update Target Audience for WebParts being added to a SPWeb

I have the following requirements: All WebParts which are added to certain SPWebs (these are generally projectsites, so there are a lot of them and new ones are created regularly) should be updated ...
1
vote
0answers
157 views

When to use Event Receivers and when to use Workflow to implement a business scenario

I want to implement a business scenario for our custom list inside sharepoint enterprise server 2013, to manage our project management projects. The business scenario is as follow:- Contributor users ...
1
vote
0answers
61 views

Event Receiver Fails (UnauthorzedAccessException) when item updated from using ElevatedPrivileges

I have small console application with this code: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new SPSite(args[0])) { using (SPWeb web = site.OpenWeb()) ...
1
vote
0answers
38 views

ItemUpdated event receiver will always get fired inside my enterprise wiki site collection

I added a new ItemUpdated Event Receiver inside my enterprise wiki site collection inside sharepoint server 2013. and i defined the following:- event reciever will get fired when and item was updated....
1
vote
0answers
68 views

Event Receiver Error Message in Word

I have created an Event Receiver for ensuring users enter comments when checking in a document. It works fine when the user checks in the document in Sharepoint but if the user tries to check in the ...
1
vote
0answers
116 views

Item Added Event receiver Issue in quick Edit

I have Created item added event receiver which is bind with the custom generic list. Using the values of field in list i am creating new sub site by specific custom template definition. When i am add ...
1
vote
0answers
16 views

Could not load type 'FUP.ER.XMLGeneratorER from assembly FUP.ER

I have created a SharePoint 2007 feature with a List Item event receiver. However, I am getting the following error: Could not load type 'FUP.ER.XMLGeneratorER from assembly FUP.ER - I have added ...
1
vote
0answers
37 views

What is the best approach I can follow to read list items which represent a setting list for our event receivers

I am working on building many event receivers inside my SharePoint 2013 enterprise server. and i created a list to store all the settings and variables that will be used inside the event receivers. ...
1
vote
0answers
115 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
0answers
120 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 ...
1
vote
0answers
51 views

Rename attachment of InfoPath through Event Receiver for Office365

I am having a Document Library named TestForm in my Office365 site.I have created InfoPath Form for that library that contains FileAttachment control. Now my requirement is to rename the attachment ...
1
vote
0answers
86 views

EventFiringEnabled will it affect all list and all webapplications?

We are using Event-receivers in SharePoint 2013. Whenever we are updating an item in a list event-receiver, the receiver will be triggered again and again. To avoid this we are using this....
1
vote
0answers
22 views

Event Receiver deploying to multiple form libreries

I have three infopath form libreries: lib-2015, lib-2015,lib-2016. I inherited an event receiver that has been deployed to 2014, 2015 library, now I am trying to deploy it to 2016 library. Changing ...
1
vote
0answers
350 views

Event receiver on item with drag and drop

I'm writing an event receiver on a document library. My issue is event itemupdating ou itemupdated are not fire when i drag and drop a document. if i log my event it only passes in itemadding and ...
1
vote
0answers
74 views

Prevent update of SharePoint document library item when clicking [OK] button in Edit Form

I am developing a SharePoint (2007) document library item event receiver to force the user to click on the [Cancel] button instead of the [OK] button in the Edit Form (EditForm.aspx), since clicking ...
1
vote
0answers
25 views

MOSS 2007 SPItemEventProperties values of fields accessed via display name or internal name

I need to access the before and after field values for the list item corresponding to an event receiver in MOSS 2007. The name of the field is Annual Salary and the InternalName is Annual_x0020_Salary....
1
vote
0answers
47 views

Whether item.recycle method will trigger event receiver?

When an item.delete() methods get called it will trigger the respective item deleting and item deleted event receiver. Whether this will behave same for the item.recycle() method too.
1
vote
0answers
70 views

Feature with an listinstance and eventreceiver to modify version settings, order issue?

I created in vs an listinstance. I add this list instance to a feature. In this feature I created a feature event receiver to modify the version settings. I see now when the feature event receiver is ...
1
vote
0answers
314 views

Convert document to pdf using event receiver in SharePoint 2010 not working

I followed steps on this link to convert a word document being added to pdf format using a custom event receiver. I was able to attach the receiver and trigger the code written but somehow the ...