Questions tagged [eventreceiver]

48 questions
7
votes
4 answers

how can I add event receiver only for list with specyfic template id

I'm adding ItemAdding event receiver for custom list template. Both event receiver and list template are deployed by the same feature. Also the same feature creates List Instances. The problem I've got is that the event is fired for each list item…
3
votes
2 answers

is it possible to call an event receiver from an event receiver with different properties?

I have an event receiver that runs when metadata on a folder (docset) is updated. In the same event receiver, I want to run kick off an event receiver for each document in the folder. What I want to know is: is it possible to call an event receiver…
joynoele
  • 401
  • 4
  • 15
2
votes
2 answers

How to programmatically change page name and url in SharePoint 2010 with EventReceiver

What I want to achieve is simple. When user create a new page in SharePoint 2010, I want to remove special character and truncate the page Name/URL to a certain number of characters. Eg: user type in "I Want To Create This Page With An Extra Long…
Ken Thai
  • 76
  • 4
2
votes
5 answers

Sharepoint 2010 Event receiver not firing for subsite

I have an event receiver (WebAdding and WebProvisioned) which works just fine for sites created off the root of the site collection. However, subsites (for example, teamsites created within other areas) do not trigger the code at all. Does anyone…
Matt Moriarty
  • 71
  • 3
  • 4
2
votes
0 answers

Automatically detect Car mode/Driving Mode in Android

I am a newbie to Android. I am currently working on a use case which requires that my app automatically detects the car mode whenever it gets turned on (by the user). Whenever the car mode is turned on, I need to start a certain activity. I have a…
2
votes
1 answer

Event receiver on Content Type not triggered on WikiPageLibrary

I created a new content type for a wiki page library. I added this content type to library by code (the interface did not allow this). Next, I added an event receiver to this content type (on ItemAdded and ItemAdding). My problem is that no event is…
Ciprian Grosu
  • 2,821
  • 3
  • 18
  • 14
2
votes
1 answer

SharePoint 2013 Event Receiver for "Stop Inheriting Permissions" functionality

Business Case : Every time Permission Inheritance is broken, I need certain custom things (through code) to happen on my SharePoint environment. Details: If user clicks on Site Settings -> Site Permissions -> "Stop Inheriting Permissions", I need…
2
votes
1 answer

How to check last added item is a folder or not in Sharepoint event receiver

Inside my ItemAdded function I want to check the last added item is a folde or not. How to check that.
aarpey
  • 168
  • 1
  • 3
  • 15
1
vote
1 answer

Anchor Tag Not working in Event Receiver

I have created an event receiver to trigger an e-mail whenever an item was added.in this event receiver email gets deliverd to the employee. In the e-mail content i would like to give a link so that the employee can go to the web site directly. but…
Jpaul
  • 268
  • 2
  • 11
  • 25
1
vote
1 answer

workflow or EventListener

We are building an extranet sharepoint portal for our clients. Each client will have a site. Total number of sites will be between 2000-3000. I have a requirement to copy a document from a SiteCollectionA/SiteA/DocumentLibrary to another global list…
1
vote
1 answer

Word Automation Service-Item Added Event not firing

I am using Word Automation Services to convert Word Documents to PDF. I have written an ItemAdded event recevier on the Document Library where the PDF document is created by Word automation services. It is not firing when the Word Automation…
1
vote
2 answers

Extension method used to prevent SharePoint list item event receiver help

I came across this post with a great solution to the problem of preventing the event receiver on an SPListItem firing when performing the update from outside the event receiver. The code works 100% as described and I'm impressed with the solution,…
Mark
  • 487
  • 1
  • 7
  • 20
1
vote
2 answers

Invoke SharePoint Workflow after EventReceiver

i got a question regarding sharepoint workflows and event receivers. i got an event receiver that is setting metadata on an element. after that, i use a workflow to copy item metadata to a list. unfortunately the workflow does not copy the metadata…
1
vote
1 answer

Adding a SharePoint feature with multiple class files

I am in the process of making a feature that consists of multiple items. Currently it contains a Feature.xml file with 4 ElementManifest entries; two for a specific contenttype (Field definitions and FieldRefs), one for some webparts and the last is…
Christian P.
  • 4,492
  • 6
  • 47
  • 69
1
vote
0 answers

ItemUpdating Redirect Sharepoint 2013

I'm attempting to perform a redirect within an ItemUpdating event receiver but so far no luck. I can't use SPEventReceiverStatus.CancelWithRedirectUrl because my CSR Render Mode must be Standard and not a server render. I've tried other methods…
1
2 3 4