Event handlers is a program statement which is called from an event. The event can be a human striking a key on the keyboard or pushing a button on a web page

learn more… | top users | synonyms (1)

1
vote
4answers
1k views

Can we use SPUtility.Redirect with Item Added event handler

I want to redirect using to another page after item added, main point is to redirect user to another page on item adding(item should be added first) or item added. EDIT class ClassName: ...
0
votes
2answers
1k views

New EventReceiver events not firing

I have an event receiver written by someone else. It originally came with events for ItemCheckingIn and ItemCheckedIn, but we needed something to handle simple metadata updates, too. Since those ...
0
votes
1answer
148 views

I loss the listitem which was added to list using Item Added Event Receiver

I am using this code to break the permission.But i loss the listitem after refresh the page.Plz help me.. public override void ItemAdded(SPItemEventProperties properties) { ...
0
votes
2answers
710 views

getting my Document's parent sharepoint Folder

I have a sharepoint document library containing documents and folders (the folders are newly introduced as a new content type derived from folder) and I'm having an event reciever on document added ...
0
votes
1answer
756 views

How do I obtain the SPWorkflow object in the event receiver?

I have a workflow event receiver which is handling the WorkflowStarted and WorkflowCompleted events. I need to obtain references to the workflow list item and the workflow object to do some additional ...
0
votes
3answers
619 views

Prevent Item Overwrite Event Receiver

I want to prevent users from overwriting items that have the same name. When users add items to a library there is a checkbox indicating files should be overwritten if they have the same name. In ...
0
votes
1answer
529 views

“Detected use of SPRequest for previously closed SPWeb object” within Event receiver but no error when run in test harness

I have a very strange issue which I cannot explain. We have and event receiver and within this we instantiate our own class that does all the work we need it to do. As part of this we pass in an SPWEB ...
0
votes
1answer
229 views

Reporting Services Subscriptions doesn't fire Event Receivers

I have a SPItemEventReceiver on a SharePoint library which renames added files. Normally this works fine (Upload from website / WebDav). There is also a report server subscription which drops pdf's ...
0
votes
1answer
451 views

Help with Blog EventReceiver, not firing

Ok so I have a blog site and I need to change the name of the author of each post to 'Anonymous' after he saves the post. I created an EventReceiver project in Visual Studio and gave the URL ...
1
vote
2answers
1k views

How to deploy C# event receiver as a farm solution

I have a C# event receiver that utilizes the ItemUpdating event. The project was originally created as a Sandboxed solution and worked fine, however, due to limitations I've decided to switch over to ...
0
votes
1answer
545 views

How to enable an Event Handler to intercept upload from email in document library

I have a Document Library with an email associated with the OOTB feature. When I send to the library an email with some attachments, every attachment is stored with one of the OOTB methods (divided in ...
1
vote
2answers
169 views

SharePoint session events

I'm writing SharePoint webparts that are communicating with external system. Currently, on each request, a connection with system is made, user is authenticated and session is established - than ...
1
vote
2answers
143 views

Is there anyway I can find out if user uploaded multiple items in ItemAdded Event

I have a "ItemAdded" event, I want to check Number of documents uploaded if a user uses "Upload Multiple Documents" for uploading. Normally what happens is when a user adds a item they are taken to ...
1
vote
1answer
294 views

perform action on incoming mail

I need to perform simple decoding of .eml files and adding some contents from it to a list. I have already written the .eml decoding part and adding stuff from it to list, but i need to tell ...
1
vote
1answer
178 views

Item Adding and Item Updating triggers on Item Add to list

my list triggers item added and then item updated when I add a list item, but then when i add list item it takes me to update item form, where it asks me to update item details, so if i click next, ...
1
vote
1answer
108 views

Disable save item button while save process is not completed

User clicks on Save Button and saving procedure can take "few" seconds. User can click again..that`s why i need to disable save button, how can i do this?
0
votes
1answer
222 views

ItemUpdated event handler not working

I added a ItemUpdated event handler so what happens is when I upload a document it uploads it and takes me straight to edit item page, where I can made changes. now if I make any changes to it, no ...
0
votes
1answer
48 views

how to check custom property of added Item

There is a boolean column I added to a custom list, but I also have a feature on this custom list so that when a Item is added i have to check if this column exists or not and then its value. now i ...
0
votes
1answer
331 views

List Onload event

What I want to do: I have a custom list that contains a lot of items. When an user loads the list, all items of his view should be checked. If there is a special value in the listitem a notifiaction ...
1
vote
1answer
352 views

SPJobDefinition Execute Method isn't overriding

I built a custom Timer Job on activation I was able to debug it and it was going through Execute method I am overriding but suddenly its not overriding anymore. Code is here: public class ...
0
votes
1answer
205 views

Client Extranet with SharePoint 2010, how to prevent employees from giving clients permissions that would allow client to see all FBA users?

I am a development manager and one of the sys admin and I are trying to build a "Client Extranet", which is a fancy name for a SharePoint 2010 web application with sites that employees and clients can ...
2
votes
1answer
106 views

Farm Based Custom Timer Job Feature

I am trying to create a custom timer job where feature is farm scoped and will run on a farm level, I am not able to find any decent tutorial that tells how to create a farm based custom timer job ...
0
votes
2answers
178 views

How to check if Item Deleted in a list was the last item (in a EVENT Receiver)

I want to check If deleted item is the Last Item deleted in the List in following method, public override void ItemDeleted(SPItemEventProperties properties) { } I know I can get web url using ...
3
votes
3answers
1k views

How to create Site (SPWeb) on Sharepoint Online

I have a problem creating Sites on Sharepoint Online. The code that works on-premise do not work on Sharepoint Online. I do not want to bother you with the code, i just want a clean start. So my ...
0
votes
1answer
174 views

Timer on a SharePoint List

I came across a very interesting scenario I need a Timer for Item added Event receiver for a SharePoint List and this list is being added to hundred of Webs. Now each List needs a timer job, which ...
1
vote
4answers
2k views

How does Sharepoint Online Event Receivers work?

I have created this Sandboxed Event Receiver on ItemAdding on a custom list. It works on my on-premise server, but it does not work on Sharepoint Online aka. O365. Anybody know how to create an ...
1
vote
3answers
292 views

Is it possible to add something to a list without trigging the ItemAdded event

I have a situation where I don't want to trigger the ItemAdded event if an item is added to a list via a workflow. Is it possible not to trigger this event?
0
votes
3answers
1k views

ItemAdding getting the file name of a document

I have a document library. I want to add an itemadding event recieiever to do some validation on the file name of the document. How can I get the file name from the SPItemEventProperties
1
vote
3answers
2k views

Redirect from ItemAdded event

I am using an ItemAdded event handler for doing some validation. If my validation fail is it possible to redirect the user to another page. Ideally it would be good to show the page in a dialog box. ...
2
votes
2answers
717 views

Attach an event receiver to profile property update

Do someone know if it's possible to attach an event receiver to profile updates? The goal would be to update an external system (such as a CRM) when a user is updating his profile.
1
vote
1answer
192 views

workflowAssociation not displaying workflow

I have created a feature. In the FeatureActivated event I am creating some lists. I am then trying to attach a custom workflow to one of the created lists. However when I do this the workflow history ...
0
votes
2answers
437 views

deploy a list with specific item-level permissions in ListAdded event receiver method

I have a certain type of custom list I have designed in my 'solution.wsp', that, whenever an instance of it is instantiated, it should have at the outset a specific Item-Level permission. To further ...
1
vote
4answers
1k views

How to delete an item on ItemAdding

I want to performe some Action on ItemAdding. I have a Custom List that reacts on Item Creation. In particular on Item Adding performs some action using the After Properties.. If, at this level, i ...
0
votes
3answers
2k 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, ...
1
vote
3answers
1k views

Add item to list anonymously (not as anonymous user)?

I have a requirement that authenticated users should be able to anonymously add items to a list, i.e. they are authenticated but the Created By/Modified By field should not display their name. I could ...
0
votes
1answer
61 views

Limiting a List (Listview webpart) to a single User

I have a List Definition and I want to limit only 1 specific user to "add new items" to this list, oh by the way its a custom list definition, I was wondering what are the possible ways to accomplish ...
1
vote
2answers
392 views

How to implement 'on document property update' logic?

I need a functionality in which something happens after the properties of a document in document library get updated. I need some kind of event to fire after the user clicks Save button in edit form. ...
1
vote
4answers
1k views

Locked Row in database for key on Infopath Submission for Contribute Permission + below w/ Custom Event Reciever (ItemUpdating)

Basic Rundown of Process: I am creating a Process wherein an InfoPath form is Submitted to a Library, certain managers will then have the ability to change a drop-down to either Approved or Rejected, ...
0
votes
2answers
2k views

ItemAdding event not firing when submitting InfoPath form to form library

I created an event receiver in Visual Studio to handle three events in a form library: ItemAdding, ItemUpdating, and ItemDeleting. ItemUpdating and ItemDeleting work as expected when debugging, but ...
2
votes
0answers
45 views

Error thrown after SaveBinary in ItemAdded event handler

I'm working on a ItemAdded event for a document library, and I'm running into this error in SharePoint 2007... The file Lists/Shared Audit Documents/1387/Audit Report.docm has been modified by ...
2
votes
2answers
1k views

Move a document from library after adding it

I am using the ItemAdded event to fill in a metadata field. In the ItemUpdated event (after submitting the file properties diagog) - I want to move the file elsewhere. However, I get an error saying ...
1
vote
2answers
3k views

event receivers and execution order

I am using some of these such as ItemAdded and ItemUpdated and I had altered the elements file to make this synchronous. I'm just curious as to what the order of execution is for all these handlers. ...
3
votes
1answer
271 views

Listadded events on My Site omits Personal and Shared Documents creation

I want to have a feature which will change some settings on every list on My Site. Problem is i cant change settings for two main list: Shared and Personal Documents. For testing I have web feature ...
0
votes
2answers
491 views

Managed Client Object Model in Event Receiver - Event is not firing at all

When I use ClientContext context = new ClientContext("SITEURL"); in my event receiver, the event doesn't trigger at all. So my question is can I use managed client object model in event receivers. ...
0
votes
2answers
1k views

Populating Drop down on the basis of User Group

I am developing the SharePoint Portal in 2010 where i will be using a Dropdown with values in it. These Values will depend on the group to which the user belongs. For Eg. If Drop Values are A, B , ...
1
vote
1answer
2k views

response redirect in event handler

I try to redirect user after edit a list to another page in site. So I write this code at the end of my item_updated list handler Response.Redirect("http://www.somewhere.com"); I pretty sure that ...
3
votes
2answers
992 views

How do I handle concurrency problems related to event receivers?

This is a problem that seems to pop up all the time, so I'm wondering if there is an authoritative answer somewhere. I'm using an event receiver (specifically, the ItemUpdated receiverthrough the ...
0
votes
2answers
4k views

How to move an item from custom list root location to sub folder programmatically?

How to move an item from custom list root location to sub folder programmatically (in Event Receiver (ItemAdded))?
0
votes
1answer
1k views

creating event handler feature - OnDeleting

I'm trying to create a sandboxed event handler feature to handle the OnDeleting event of a task list in SharePoint 2010. I followed Microsoft's instructions. When I deploy the event receiver from ...
3
votes
1answer
3k views

How to disable event firing outside an event?

How do I disable event firing in code that is not part of an ItemReceiver? E.g.: I have an FeatureActivated event receiver which update a list (adds column) and updates all items to populate the new ...