Questions tagged [event-receiver]
140 questions
0
votes
1 answer
What is best method to get property for the content type with the closest match using client context (CSOM)?
I’m converting Event receiver codes into Remote event receiver using SharePoint 2013 Client context.
var documentList = clientContext.Web.GetList(Constants.DocumentsListUrl);
var classifiedContentTypeId =…

kalimuthu
- 5
- 1
- 5
0
votes
1 answer
Weird SharePoint ItemUpdating Behavior
I have a SharePoint list where I register a custom ItemUpdating event receiver but I am seeing some really strange behavior in this solution. This behavior occurs if I add any code to the event receiver other than base.ItemUpdating.
What happens is…

Nathan Kamenar
- 824
- 7
- 30
0
votes
1 answer
Item Updating list item event receiver on Person or Group field (Multi-User field)
My requirement is to get all the users from the sharepoint list item (person or group field) and assign [Read] permissions to different document libraries. As it has multiple users, on list item update, Is it possible to compare the before and after…

user1879845
- 13
- 4
0
votes
1 answer
WSO2CEP : Event Receiver does not accept any JSON parameter with name having dot in it
My json custom formatted events are from a log file which contains parameters names with dots like id.orig_h etc. Sample event is:
{"ts":"2016-05-08…

aneela
- 1,457
- 3
- 24
- 45
0
votes
1 answer
Custom Input Mappings JSON : Could not find any matches for the incoming event with JSONPath
I have an event receiver with custom input mapping as my event format was a little different. It has no meta or correlation attributes.
Example is:
{ "ts":"2016-05-08T08:59:47.363764Z",
"uid":"CLuCgz3HHzG7LpLwH9",
"id.orig_h":"172.30.26.119",
…

aneela
- 1,457
- 3
- 24
- 45
0
votes
1 answer
Sharepoimt Online Event Receiver - Consume Custom Web Service
Well, the title is self descriptive, but here's my issue again:
I have a SharePoint Online which I've managed attach some event receiver to one of it's list, now after this is successfully done, i need to call an external web service (WCF) from that…

Shadi Mahasneh
- 155
- 2
- 11
0
votes
1 answer
SharePoint 2010 itemadded event receiver - how to check logs?
I have created a custom SharePoint 2010 Item added event receiver on a document library. I also log all exception which might be fired during this event receiver.
This event receiver fires perfectly fine almost all of the times. There are, however,…

Amar
- 27
- 1
- 9
0
votes
2 answers
Creating a list in ListAdded List Event Receiver
I am trying to programmatically create a Calendar List in SharePoint 2010 whenever a particular list is created using a Sandbox Solution. I have implemented a ListAdded ListEventReceiver in order to run the code to generate the calendar.
public…

Ricardo Reyna
- 574
- 6
- 15
0
votes
1 answer
WSO2CEP:Selecting Event Receiver Type
I am using WSO2CEP as processing tool over logs generated from bro. These logs are in json format and resides on a virtual machine (guest). My WSO2CEP is on host machine.
As it supports various event adapters for communicating events to…

aneela
- 1,457
- 3
- 24
- 45
0
votes
1 answer
Caching data in SharePoint Added EvenReceiver
I have an event receiver that lsitenes on an "added" event. Inside that receiver I have to retrieve all contents of another list:
var refList=Web.Lists.TryGetList("ReferenceData");
var allItems=refList.GetItems();
foreach( var item in allItems) {
//…

Ole Albers
- 8,715
- 10
- 73
- 166
0
votes
1 answer
ItemUpdated List Item Comparison
Is it possible to compare the properties listItemId with a field in a new list? I have an event receiver, I want to update a new list once an item in updated. I don't want to use GetItemById, I want to compare the first list auto generated ID with a…

Sharepoint Rocks
- 31
- 5
0
votes
1 answer
Sharepoint synchrounous event receivers
I have a question about the synchrounous event receivers in Sharepoint 2007.
As example, lets look at the event ItemUpdating: Is it safe to assume that the update operation will succeed if I don't cancel it manually? I know the event could be…

driAn
- 3,245
- 4
- 41
- 57
0
votes
1 answer
Why can I not call a public method in my Web Part (User Control) from an Event Receiver?
I've added this Event Receiver (based on what I found here):
using System;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Security;
using Microsoft.SharePoint.Utilities;
using…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
0
votes
1 answer
How to: Redirect after document adding to a sharepoint document library
i need to redirect the current user to a custom url after successfully uploading a document.
the user clicks "+ new document" in the document library
the user selects a local document
the document gets uploaded and in that moment after it is…

STORM
- 4,005
- 11
- 49
- 98
0
votes
1 answer
SPsite in SharePoint 2013 can't call other Site Collection with URL
I am trying to access a different site collection through an Event receiver. Event receiver does what i want but it does in the same site collection.
i have following code
using (SPSite destsite = new SPSite("http://man:8787/ONE/"))
{
…

user388969
- 337
- 1
- 9
- 30