Event Receivers are a piece of managed code that responds to SharePoint events when specific triggering actions occur on a SharePoint object.

learn more… | top users | synonyms

0
votes
0answers
11 views

Event Receiver deployed as a sandbox solution throws exceptions

I have deployed an event receiver as a sandbox solution to production. This is event receiver executes on ItemUpdated event. The code runs well in development server as a sandbox solution but throws ...
0
votes
1answer
28 views

How to get the current logged in user in the Modified By column in ItemAdded EventReceiver

public override void ItemAdded(SPItemEventProperties properties) { try { base.ItemAdded(properties); EventFiringEnabled = false; SPListItem ...
0
votes
1answer
22 views

Can I change the path of file to be uploaded in item adding event reciever?

I want to change the file path that is uploaded by user. What I am doing is user will upload a file and I am doing some changes to that file in itemadding event. So, for that I am creating another ...
0
votes
0answers
41 views

Time zone shift problem for dates in AfterProperties of list item event receiver for events from Outlook

I need to analyze the "EndDate" of events inside SharePoint 2013 standard calendar items from a list item event receiver and cancel some modifications based on time of this date. I have this code for ...
0
votes
1answer
22 views

Document asking to be checked out after checking out

I'm updating a file that contains versioning and previously it stated that the document requires checking out to edit so I run the following code that results with the same error: if ...
0
votes
2answers
30 views

Need privileges to break inheritance

Idea is that inside an ItemAdded event receiver in a sandboxed solution (SharePoint Online) I want to set permissions on the item, which requires privileges that the user should not have on the list. ...
0
votes
1answer
42 views

Moving item on ItemAdded gives Error

IN my event receiver, on Item Added event I have placed my custom method to move document based on a rule. The issue is when a document is uploaded in the Upload dialog I get an error saying item not ...
0
votes
2answers
41 views

Update boolean field in ItemAdding receiver

I want to update a SP boolean column on an ItemAdding event receiver. I want to set the "Hide physical URLs from search" column (PublishingIsFurlPage) to Yes. My code look like this : public ...
0
votes
0answers
36 views

Set welcome page when site created

I have a custom site definition. When site created I have an event receiver it will activate related features. After features have been activated I set my welcome page. public override void ...
0
votes
0answers
29 views

Change masterpage of a sub-site automatically, for multiple site collections

I am working in an environment which has more than 1000 site collections. My requirement is that when I create a new subsite in any of the site collection, it should automatically inherit masterpage ...
0
votes
1answer
72 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 ...
0
votes
1answer
22 views

On library ItemUpdating the Name column's AfterProperty is null

I have an EventReceiver for one of my document libraries which compares some specific columns and their Before and After properties in the ItemUpdating event. When I try to compare the Name column ...
0
votes
1answer
52 views

How to rename an SPFolder

In an event receiver, in itemcreated and not creating, i need to rename the spfolder created. I've tried with meta FileLeafRef, it works bu url are not updated. SPFolder.item["FileLeafRef"] = "new ...
0
votes
0answers
28 views

Workflow “Pause Until Date” and Event Receiver

Currently I am using SP2013 and I have met with this problem : I have a workflow created by using SPD. All it does is waits until a specific date and then ends. I also have an ItemAdded Event ...
0
votes
1answer
40 views

Can't make remote requests from Sharepoint 2013 event receiver

I have an event receiver in SharePoint and this needs to communicate with Dynamics CRM 2013. It basically checks that user owns the record and if it doesn't creates a task for the record owner. The ...
0
votes
1answer
79 views

Copy list data from one location to another in the same site collection SharePoint 2013 Online

I have a custom list for 'Products' in my top site collection, and I have two sub sites where I need to display the same information. I have copied the Products list as a list template into b oth sub ...
0
votes
1answer
51 views

Get user login name by email address even if the user is still not ensured

Is there a way to get the user name or the SPUser object by passing the mail address for a user, which is not already known by the site? I know I can get the SPUser by using ...
0
votes
0answers
20 views

Event Receiver- Email sending

I have a requirement from my customer. i.e, user send an email to sharepoint document library and the data in that email should populate the respective SPLibrary columns as well as a list. Note: ...
0
votes
1answer
51 views

Calendar - How can I expand the recurrences of a recurring item in ItemAdding event receiver?

When a user add a new recurrence event to a calendar I want to check if any of the recurrences overlap with events already in the calendar. I saw the property Recurrences Data and its XML but I didn't ...
0
votes
0answers
22 views

The 'ListTemplateId' attribute is invalid - The value '100' is invalid according to its datatype

The XML for my EventReceiver is as follows: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Receivers ListTemplateId="100"> ...
0
votes
0answers
28 views

Calendar - How to know if an item being added is recurring

I have an event receiver in a calendar list in SharePoint 2013 where I'm trying to avoid bookings to overlap each other. So far I managed to avoid: a simple item overlapping another a simple item ...
0
votes
0answers
25 views

Change selected value of dropdown with SPItemEventProperties

Whenever i add an item to a document library this event reciever is fired. public override void ItemAdding(SPItemEventProperties properties) { } Inside that method i want to change ...
0
votes
1answer
114 views

Change selected value in combobox through c#

I have an event reciever that fires when ever an item attachment is added. public override void ItemAttachmentAdded(SPItemEventProperties properties) { ...
0
votes
1answer
32 views

EventReciever as SandBox Solution

I am having an Event receiver as sandbox solution to perform certain action on item Added to the list. Basically it is creating a sub-site on item added using custom template. Problem i am facing is ...
0
votes
1answer
55 views

How can I set the content type during itemadding event

I am trying to set the content type programmatically using an itemadding eventreceiver so that when the user adds a document to a library the content type is pre-selected. I have two content types: ...
0
votes
0answers
59 views

BeforeProperties and AfterProperties to check Folder name changed

What field do I need in an ItemUpdating event receiver to check whether a folder's name was changed? I have tried: var before1 = properties.BeforeProperties["Name"]; var after1 = ...
0
votes
0answers
20 views

Sharepoint event reciever is working in one document library but not in another

I have two document libraries, when I add an item the event receiver item added fires for one document library , but it does not for the other. Event receiver class. public override void ...
0
votes
0answers
19 views

Update list B when an update occurs in list A using event receiver

I have a Last A as Master list and List B as Slave List. Slave list is kind of back up list for List A. Whenever we add item to List A, the same item is added to List B, I achieved this action by ...
0
votes
1answer
42 views

How to determine if event receiver runs in Workflow 2013 context

I've got an event receiver handling ItemUpdating; now, I'd like to know if the update was triggered from a SharePoint 2013 workflow (setting the workflow status for example) or directly by a user ...
0
votes
0answers
7 views

Check If An Set of Related Child Item Status Is Open On Update Of Another Parent Item

In SharePoint 2010 I have two lists with a parent-child relationship. Both list's items have a status column. There is a foreign key ID field on the child from the parent. When the parent item is ...
0
votes
0answers
17 views

SPEmailEventReceiver - Date Sent

I'm developing an event receiver for a SharePoint 2010 that will fire when an email arrives in a document library. The event receiver extracts the header data from the email and populate it in the ...
0
votes
0answers
72 views

How to register a webhook, for REST document library events (java web mvc)

How to register a webhook, so that i can get the REST document library events delivered to my server (provider-hosted) app
0
votes
1answer
121 views

Event Receivers for Calling Web service

I am having SharePoint 2010 with 1 Application Server and 1 Front End Web Server I want to call a Web Service to send SMS (SOAP 1.2) whenever an item is added to a Custom List. I tested a Event ...
0
votes
0answers
19 views

Rendering Template apply only on second deploy

SP2013. I have a custom rendering template for a Content Type in CONTROLTEMPLATES folder. Problem is that when I deploy solution by VS on a development machine this template doesn't show up on a form. ...
0
votes
1answer
125 views

HttpContext in EventReceiver constructor is null

I'm trying to use SPUtility.Redirect in ItemAdding EventReceiver. And I'm trying to get HttpContext.Current in Event Receiver constructor, but it's null public class MyClass : SPItemEventReceiver ...
0
votes
0answers
48 views

Task list event handler not firing

I have created a project with two event receivers, one pointing to a custom list (id 100) and one pointing to a task list (id 107). The custom list handler runs perfectly but the task list doesn't ...
0
votes
2answers
200 views

Event receiver CancelWithError

I need to show an error message during in the ItemAdding event from a SP2013 event receiver. I used this code in case of error: properties.Status = SPEventReceiverStatus.CancelWithError; ...
0
votes
1answer
17 views

How to automatically change the permissions of a document when is published?

I have a document library with document versions enable on a SharePoint 2013 site. In the library each document have its own independent permissions. Usually the permissions are 2 owners and 3 or more ...
0
votes
1answer
254 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 = ...
0
votes
0answers
30 views

How to open created item when completed workflow?

I have two list: Order and OrderDetailA, and OrderDetailB; and two manually start workflow which is used to copy item from Order to OrderDetailA or copy to OrderDetailB. When I created new item in ...
0
votes
0answers
37 views

sharepoint alert filter not working on first alert only then filtering is ok

have a strange behaviour with alerts on my sharepoint site. I have a document library where i want to add alerts to specific users when adding,updating,deleting folders or documents. Alerts must not ...
0
votes
1answer
29 views

How do I know whether an Event Handler has already been attached to a SharePoint O365 list?

I have a SharePoint O365 site which has a custom list named ReportMetadata. There is an event receiver for this list for ItemAdded event which will take the image from the attachment column of the ...
0
votes
0answers
64 views

Event Receiver and workflow error

I have an event receiver that checks out the document when an item is added, updated or checked in. The items require content approval so I am using a workflow for this. The receiver works when the ...
0
votes
0answers
7 views

Strange ListItemCollection behavior

I made a feature with an ItemAdded eventreceiver. The feature creates two lists and adds a list item to one of the lists. After I activated the feature I looked at the lists and the one list that ...
0
votes
0answers
18 views

List Synchronization in Sharepoint

I'm running Visual Studio 2010 with SP 2010. I was tasked with creating a setting page (within Site Action dropdowns). On that page I will select 2 different lists and allow them to synchronize with ...
0
votes
0answers
65 views

Sharepoint Designer 2013 object reference not set to an instance of an object

I have an event receiver in two list: - List A: ItemAdding, ItemAdded, ItemDeleting, ItemUpdating - List B: ItemAdding, ItemAdded, ItemUpdating In case, the event feature not active, we can edit 2 ...
0
votes
0answers
70 views

List item event receiver firing when list is modified

If I have an event receiver that handles the item added event, it fires whenever the list is modified. While debugging the event we see that it is firing over a non-existim item (properties.ListItem ...
0
votes
1answer
192 views

how to execute PowerShell script inside an event receiver from sharepoint online

I want to execute a powershell script from an event receiver. The event receiver is triggered whenever an new item is added to my custom list in sharepoint online site.
0
votes
0answers
25 views

How to add color to calender in programatically using event receiver?

When ever an item is added into the calender using event receiver 2012. It need to check category column values based on selecting category color should change in sharepoint2013. Example:-If ...
0
votes
1answer
345 views

How to get absolute previous url in event receiver?

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values frm sub-sites itself to the root site list. So I am trying to ...