Questions tagged [eventreceiver]
48 questions
1
vote
0 answers
Set permissions within an event receiver(itemupdated)
I've searched for a long time but every single solution I've found didn't work.
Here is the process:
Create a Page (ListItem) -> Change the FieldValues -> CheckIn -> Error
Error:
System.ArgumentOutOfRangeException
Code:
public override void…

Schwarz
- 11
- 1
1
vote
1 answer
Sharepoint 2010 Event Receiver just works in Administrator account
I have an event receiver that creates 13 subfolders automatically when a folder is created by user. The code below can do this and everything is ok when the Administrator account creates the folder. But when it comes to other users, the subfolders…

BTajahmadi
- 89
- 8
1
vote
0 answers
Sharepoint 2010 EventReceiver for SPFolder adding
I have a document library in which we have added a custom folder content type in order to keep the Folder Owner in a custom field.
Now I am asked to set the default value of the "Add new" form to the Parent Folder Owner. I have tried this code below…

katerina
- 11
- 1
1
vote
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
- 158
- 1
- 3
- 15
1
vote
2 answers
Sharepoint 2010 redirect from event receiver (after creating site)
My issue is:
In Sharepoint 2010 after user create site, at first I need to redirect user to my custom page and not to redirect user to url of new site.
I created event reciever for web and tried site after creating to redirect on my page with using…

Kate Ponomareva
- 41
- 2
- 7
0
votes
3 answers
ItemAdded triggers three times
I added an ItemAdded eventreceiver for a SharePoint document library programmatically and everything works fine on my computer. I checked in my code and my colleague got the latest code from our TFS, built the project and tested it.
On my…

Dudute
- 357
- 1
- 3
- 11
0
votes
1 answer
Checkincomments are not stored in document library
i got a problem with checkincomments on a spfile object in SharePoint 2007.
The checkincomments on a custom doclib with custom contenttypes and custom code in the itemadding, itemadded, itemupdating and itemupdated eventreceivers are not stored.
I…

jarnitschar
- 1
- 1
0
votes
2 answers
Sharepoint 2010 Calendar Event Receiver
I have been tasked with creating a calendar in a root site that get's updated from child site calendar events.
I am able to access the Calendar List from the parent site in the child site's to add an event. However, I'm having trouble finding a way…

jreed350z
- 485
- 1
- 5
- 15
0
votes
1 answer
SharePoint 2010 Word automation service and Event Receiver
I am working on SharePoint 2010 event receiver. I run this event receiver on specific list and on certain conditions I create copy of word document in a library and edit its properties with dynamic values and then use word automation service to…

Learner
- 93
- 2
- 11
0
votes
1 answer
WSO2CEP eventreceiver mapping XML name value configuration
This is what my input XML data looks like:
stringName
stringValue
Actual data:
event_GUID
…

kumputr
- 1
- 2
0
votes
1 answer
Getting value from SPFieldBoolean
How do I get the value from a SPFieldBoolean object? Do I simply cast it to a boolean or do I need to do something further with it?
I am fetching it in an EventReceiver class during an ItemAdded event from properties.ListItem["fieldname"].
If there…

Christian P.
- 4,784
- 7
- 53
- 70
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
wso2 cep error while create a event receiver kafka type
It is successful to create the event receiver type kafka in the first time.
however the second , when I run the kafka again and create a new event receiver from wso2 cep .
It show the message as below
"Failed to add event receiver, Exception:…

Antonio Ho
- 1
- 1
0
votes
1 answer
Creating excel document as attachment on a sharepoint list
I've got some problems adding a excel document as attachment on a custom list. I've made an eventreceiver which collects data from other lists and puts the data into an excel document.
What i've tried to do to correct the problem:
tested…

arneaase
- 1
- 3
0
votes
2 answers
event receiver sharepoint online
I have a basic question regarding SharePoint Online.
A list was made in the past. On this list a custom event receiver was attached.
I need to detach the event receiver from the list but I do not know where I can find an overview of all event…

MuseOfMusic
- 15
- 1
- 1
- 5