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.

Filter by
Sorted by
Tagged with
0
votes
0answers
105 views

issues in setting item level permissions in itemupdated - modified by -system account - check in enabled

i am using the below code to set permissions for different folders within a document library in my sp 2013 publishing site collection. the issue i am facing, is for a particular folder , say "...
0
votes
1answer
549 views

Can i get the current user whose action caused the ItemUpdated event receiver to fire

I have the following event receiver inside my sharepoint server 2013, the event recevier get fired when an item is updated and i am running it with Elevated Privileges :- public override void ...
1
vote
2answers
3k views

Does my ItemUpdated event receiver execute Synchronous OR Asynchronous if i did not define a <Synchronization> inside the element.xml

I have the following inside my sharepoint 2013 enterprise server:- 1- using Visual Studio professional 2012 i created a new ItemUpdated Event receiver. 2- the event receiver will fire after a list ...
0
votes
2answers
68 views

Creating a New User Group inside my item update Event Reciever

I am working on a SharePoint server 2013, and using the UI i can do the following:- Inside the site collection >>site settings >> site permission >>Create Group >> give it a name >> keep the owner as ...
2
votes
2answers
181 views

Update Column using ItemUpdated(EventReceiver)

I have a list "Table" this list has associated OOTB Approval Workflow. This list also has two columns "Approval 2010" and "Request Status". When an item is added to the list the workflow starts the ...
1
vote
3answers
446 views

site.RootWeb.RoleDefinitions.GetByType(SPRoleType.None) is raising the following error:- “Value does not fall within the expected range.”

i have the following code , where i am trying to create a new user Group inside my RootSite, and do not assign any permission for it (as i am going to use it inside some sub-sites which have unique ...
2
votes
1answer
230 views

Sharepoint event handler refresh page

I have an event handler that updates an list item on checkedin. However the user doesn't see the updated list until you refresh the page. How would I go about fixing this issue? code in c# Code as ...
0
votes
2answers
5k views

Error occurred in deployment step 'Activate Features' while trying to deploy an event receiver?

I cant seem to figure out what the issue is while I try to deploy my event receiver targeted at a particular list on my site. All I am trying to do in the event receiver is to check (on itemUpdating)...
0
votes
1answer
176 views

Setting web.Navigation.UseShared in WebProvisioned()

I'm trying to configure a team site to "Use Links from Parent" in the "Top Link Bar" whenever a site (web) is created, regardless of what the user chooses on the New SharePoint Site page (gonna hide ...
0
votes
1answer
269 views

the best overloaded method match for ScriptManager.RegisterStartupScript has some invalid arguments c#

namespace SXPSetDisposalDate.SetDisposalDate { public class SetDisposalDate : SPItemEventReceiver{ /// <summary> /// An item is being checked in. /// </...
1
vote
1answer
66 views

modify my sub-site Quick Launch link title from “Home” to be equal to the Sub-site title, inside my event receiver

I am working on a sharepoint 2013 enterprise server. and i have the following case:- 1.I created an event receiver which will get fired when an item is updated for the first time. 2.the event ...
0
votes
1answer
478 views

Programmatically change Document Library ListItem Name and metadata at the same time

Goal: Using an event receiver, change the name of a document in a document library during the ItemUpdated event when a user edits a docuement with other meta data fields. I'm using an event receiver ...
5
votes
4answers
6k views

How to add event receivers to all the lists in a site collection?

What is the best practice around adding event receivers across all the lists in a Site Collection?
0
votes
1answer
406 views

How i can check if the (SPItemEventProperties properties) contain a specific ListItem or not

I am building an event receiver inside my sharepoint 2013, which get fired when items are updated and the ListTemplateId="100". as follow:- public override void ItemUpdated(SPItemEventProperties ...
0
votes
1answer
103 views

New version creating new file in SharePoint document library

I have SharePoint Document library in which there is InfoPath form. There is one event receiver which works on Item Added event. Version setting for the library is "Create a major version". When I ...
0
votes
0answers
20 views

How to synchronize an event receiver and a SP worflow

On a list item, an event receiver(async-onItemUpdated) sets the item's permissions. I want to create a SPD workflow that sets some values to fields. Can these work together? Thank you
3
votes
2answers
344 views

Differences between SPItemEventProperties.SiteId & SPItemEventProperties.Web.Site.ID

I am working on an Event Receiver inside my sharepoint 2013. the event receiver will get fired when an item is Added and it is scoped at the Web level. but i am not sure if there are any differences ...
0
votes
1answer
156 views

how i can break permission inheritance + remove some user groups from a newly created sub-site inside my event receiver

I am working on building a new event receiver which get fired when item is updated, inside my sharepoint enterprise server 2013. now inside the event receiver i am doing the following main steps:- ...
2
votes
1answer
178 views

Recommended way/Best Practice to create a sub-site with RunWithElevatedPrivileges inside my Event Receiver

I am a bit confused if i am breaking the sharepoint best practice inside my sharepoint 2013 event receiver. now i have the following general requirements:- site collection url = http://servrname/kb/...
1
vote
3answers
837 views

Error inside my event reciver <nativehr>0x80070002</nativehr><nativestack></nativestack>There is no Web named

I am working on building an event receiver inside my sharepoint server 2013. now i have the following structure:- site collection url = http://servrname/kb/pmo sub-site url = http://servername/kb/...
3
votes
1answer
487 views

Access is denied. inside my ItemAdded event receiver

I am working on SharePoint Server 2013 Enterprise, and I have implemented the following event receiver which is scoped at the Web level, and will fire when a list item is added:- public class ...
0
votes
1answer
529 views

Duplicates of Document ID Generator in Document Library after adding Content Type

On a Sharepoint 2010 server with the Document ID service activated I have a document library with content type management enabled. After adding a content type that I've created in Sharepoint Designer ...
5
votes
3answers
244 views

Is it totally wrong or should be avoided to create farm solutions inside sharepoint 2013 on-premise

I started a new sharepoint 2013 enterprise server on-premise project for a customer, and on the first phase I want to do the following which requires me to create 2 farm solutions:- I need to add ...
0
votes
2answers
87 views

getting data by comparing fields in 2 lists in SP2013 event receiver

I have document library with name XYZ and list with name MAPPING . MAPPING list conatins 2 columns they are Title and dstURL with type Hyperlink. The values of XYZ library Title filed matched with ...
0
votes
1answer
406 views

ItemAdded Event Receiver is not triggered when item is added by workflow

I am debugging on SP2010 environment. There is an Event receiver listening to particular list, the first few lines of code is: public override void ItemAdded(SPItemEventProperties properties) ...
0
votes
1answer
28 views

Test bed for asynchronous event receivers

Is it somehow possible to configure SharePoint on a test/debug environment so the order of execution of event receivers is orchestrated? There are moments when a couple ItemUpdated events occur, or ...
0
votes
1answer
619 views

Unable to activate the feature while deploying the solution in sharepoint 2013?

I tried to deploy our solution in visual studio while activating the feature it throws an error message like these Error 2 Error occurred in deployment step 'Activate Features': Failed to load ...
2
votes
1answer
2k views

Event Receiver on Publishing Page Library

I created a new event receiver and hooked it onto the Pages library for my publishing site. I attached each one of the events exposed, but I cannot get any of them to fire. elements xml: <...
0
votes
2answers
29 views

Please advice on rewrite event receiver code on SP2010

Recently I need to take care an SP2010 farm which I am not familiar. There is an event receiver with part of code as below: SPListItemCollection ListA = properties.Web.Lists["ListA"].Items; List<...
5
votes
4answers
14k views

Event Receiver, Before and After properties

In an event receiver, Item Was Updated. I want to Compare the Moderation status on ListItems to perform some functionality.This is just some of the code. SPList list = web.Lists["DocLib"]; SPListItem ...
1
vote
4answers
3k views

Getting file name being upoloaded in ItemAdding

How to get the name of the file being uploaded if the listitem is not created yet? public override void ItemAdding(SPItemEventProperties properties) { SPWeb TargetWeb = properties.OpenWeb(); ...
0
votes
2answers
565 views

Update Second List in Task List Event Receiver

I'm using SharePoint 2013 on-premise with Nintex 2013. I have a list (List A) that has a workflow attached which is associated to a 2010 Task list, (Task List A). I have a requirement to update an ...
0
votes
3answers
1k views

Remote event receiver with Azure App Service

We want to implement a Remote Event Receiver on SharePoint Online List. But we don't want to use Provider-Hosted Addins. Is there any way to have a event-based application which listens to a SPonlie ...
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 ...
1
vote
1answer
520 views

Email enabled list item added

I am currently developing an event receiver for an email enabled list and I'm confused as to how to correctly handle the item being added to the list. On one hand I have the ItemAdded event and on ...
1
vote
1answer
911 views

Error occurred in deployment step 'Activate Features': The list “Lists/Issue Manage” doesn't exist. Please fix the ListUrl attribute

I am working on sharepoint server 2013. and i have developed an event receiver which fires when lists items are updated. now i define the following setting inside the elements.xml for my solution:- &...
0
votes
2answers
70 views

best appraoch to deply an event recevier which span multiple subsites

I am working on SharePoint server 2013 web application. And I need to create an event receiver on my lists items. The event receiver will check if the user who create an item is within a specified ...
3
votes
2answers
389 views

Best approach to re-use an Event receiver among multiple subsites and multiple lists

I am working on SharePoint 2013 team site collection, and I have the following architecture - A team site collection which contain 15 sub sites. Each subsite represents one of our customers. On each ...
0
votes
1answer
27 views

Event receivers not getting lists

I am trying list/ or delete an event receiver from my document library. When try to get the event receiver definitions it shows me only DocumentSet event receivers. the custom event receivers(Item ...
1
vote
1answer
191 views

Send email from SPEmailEventReceiver.EmailReceived method

I have scenario wherein i have to send email to users when an email is received. That is there is a Sharepoint library for which incoming email so configured. On receipt of email i have to do some ...
1
vote
1answer
261 views

What are the differences btw “properties.Web.CurrentUser;” & “web.Users.GetByID(properties.CurrentUserId);” inside my Event Receiver

I added the following Event Receiver inside my sharepoint server 2013:- 1. Using VS >> add a new Event Receiver >> Type "List Item Events" >> when "item was created". 2. the idea of the event receiver ...
0
votes
1answer
101 views

How to fix this issue while trying to attach event receiver via powershell?

I tying to attach event receiver via powershell but facing this issue: $list = (get-spweb http://site/it).lists['IT Support Request'] $def = $list.EventReceivers.Add() $def.Assembly = "$SharePoint....
1
vote
2answers
318 views

How to move / copy documents from one SharePoint library to another SharePoint library on different farms Using Event Receiver?

We have requirement to move /copy documents from one site to another, sites are on different farms( totally different environment). We can can copy items if library in same application/ site ...
0
votes
2answers
120 views

In Timerjob Its possible to get Resource file From virtual directory?

In my requirement i was added items in list through Timerjob.When Item was added in Event receiver get triggered. My question is, Getting resource file from virtual Directory App_GlobalResources the ...
1
vote
1answer
429 views

How to create a trigger for an Event Receiver from PowerShell

I want to create a trigger for an Event Receiver (itemupdated) for all items in a list. I know that Ι can just "update" the item through PowerShell, but I can't do that because the list has versioning....
4
votes
1answer
1k views

How to remove duplicate EventReceiver entries

Lately i had a bug that time-to-time added duplicate event receiver entries in SPEventReceiverDefinitionCollection. So how do i easily enumerate and remove these duplicate entries?
1
vote
5answers
267 views

Break the permission and assign new ones in itemadding event

I am trying to break the inheritance of the current item and assign the new ones . I tried it using ItemAdded and it worked but the problem was it was taking time to assign the new permissions to the ...
0
votes
1answer
75 views

can i access to builtin alert me definitions(to user defined alerts )by web service or database query

I don't want to customize alert me in SharePoint like this link But i want to get alerts properties like: I want to know that Alerts defined on which list or Doc-Lib? When they want (email or SMS?) (...
11
votes
1answer
3k views

Client Object Model SystemUpdate

I need to have the SystemUpdate functionality from the Client Object Model. Is there any way I can do it since the ListItem.SystemUpdate() does not exist? Another solution would be to disable the ...
1
vote
2answers
184 views

event receiver modified user

I have an event receiver to capture the editor of an updated item. string Editor = properties.ListItem["Editor"].ToString().Trim(); From the above code i can get the user name. But I want the active ...

1
3 4
5
6 7
18