Questions tagged [event-receiver]
140 questions
0
votes
1 answer
How to create an event receiver change permisions on file added sharepoint 2013
I have a library ("Documents") where I want to add an event receiver which will remove permisions on item added. I tryed already multiple ways to do this but i'm not so experimented and I can't figure where i'm wrong. With following code I managed…

Alexandru Stefan
- 635
- 1
- 9
- 22
0
votes
1 answer
SPContext.Current.FormContext.OnSaveHandler Not Firing from Custom Field Type Control
I am having the exact same problem described here. Unfortunately because I don't have 50 points yet I can't comment on it so I have to create a new duplicate question.
I mean it's not "100% EXACTLY" like the other guy's problem because for me the…

Ami Schreiber
- 287
- 2
- 6
- 20
0
votes
2 answers
Sharepoint 2010 event receiver ItemUpdated fires twice
I attach three events to my CustomLists:
ItemAdded
ItemUpdated
ItemDeleting
On one list I have a workflow, which is changing columns in that list. So when I edit an entry in that list, the ItemUpdated-Event fires two times. On the other lists…

thomas.st
- 393
- 2
- 5
- 17
0
votes
1 answer
Correct permissions to write file to disk inside SharePoint's EventReceiver
I have been working on a PoC in SharePoint, that on an EventReceiver handling items added or updated in Document Libraries, has to copy the file in a temporary folder.
I would want to know, is there a way to know which user will be writing the file…

Federico Alecci
- 914
- 6
- 14
0
votes
3 answers
An unhandled access exception has occurred, msmq, Sharepoint error
I have an issue that is occurring after my server reboots. I have some features in SharePoint, for doing various things. One thing they do is add items into a couple of different MSMQ queues. Immediately after a server reboot, if I try to log in to…

Zarek
- 939
- 3
- 13
- 21
0
votes
2 answers
The security validation for this page is invalid error trying to add sharepoint approval workflow to List in ListAdded eventreceiver
What I am trying to do is to attach the OOTB sharepoint workflow [Approval Sharepoint - 2010] to each and every document library that ever gets created. To accomplish this I created a List Added event reciever and put this code in it -
public…

vivek m
- 117
- 1
- 2
- 15
0
votes
1 answer
SharePoint 2013 SharePoint-hosted remote event receiver
I am running a SharePoint-hosted remote event receiver in SharePoint 2013.
I am quite confused about the concept of SharePoint-hosted app, MSDN mentioned that the app logics are all running in user's browser, does it mean when we click on the…

Learner
- 41
- 3
0
votes
2 answers
sharepoint online remote event receiver does not working
Hello i recently started to developing sharepoint 2013 .
I deply my solution to office365 online account and to my solution i attached remote event receiver.
This event receiver should listen to particular events(in this case adding to a custom…

Przemyslaw Wisniewski
- 81
- 3
- 8
0
votes
1 answer
ItemAdded event not fire when adding multi items
I'm using a WebPart to add more than one list item at a time.
And I also have an EventReceiver to handle ItemAdded event on this list.
The problem is when the WebPart adding items, only first item's added item was caught by the EventReceiver. …

Thanhma San
- 1,347
- 2
- 8
- 12
0
votes
1 answer
Error loading and running event receiver Microsoft.SharePoint.Workflow.SPWorkflowAutostartEventReceiver
I have a custom SharePoint workflow attached to a custom ItemAdded event receiver that was working fine up until the last type I promoted it using WSPBuilder.
My code is very close to this example:…

Christopher Rathermel
- 915
- 12
- 30
0
votes
2 answers
update file in Document library
I am working on a requirement event receiver generates page content into Microsoft Word and PDF using a third party DLL. Once the generation is completed I need to upload it to document library.
This happens on ItemUpdated and code works fine when…

SharePoint Support
- 98
- 2
- 9
0
votes
1 answer
Can't use SPItemEventProperties ListItem on ItemAdded in Event Receiver
I'm using event receivers to modify some of the inputs in a SharePoint 2013 site.
They are fairly straight forward, here is a simple example
public override void ItemAdded(SPItemEventProperties properties)
{
base.ItemAdded(properties);
…

Eric Herlitz
- 25,354
- 27
- 113
- 157
0
votes
1 answer
How to rename SharePoint document and create a new version if the specified file name is already in use?
I need to rename an uploaded document by adding some additional information to its file name, currently I do this with an Event Receiver ItemAdded wiring up on Document Library, using code
SPListItem material = properties.ListItem;
…

S.831
- 113
- 1
- 10
0
votes
0 answers
How do I prevent Office applications to update a SPListItem field?
I have a document library in SharePoint whith a custom content type. There is one custom field that is set by an item added event receiver each time a new document is uploaded.
My problem occurs when someone opens a document with Word and uses the…

Dudute
- 357
- 1
- 3
- 11
0
votes
2 answers
How do I test an EventReceiver?
I am pretty much going crazy trying to get a SharePoint List Event Receiver to work. I have created an EventReceiver Project in VS and can debug it however, the break points don't work. Basically its the same issue lots of people have had but none…

Tudor Hofnar
- 267
- 2
- 9
- 20