How to find by code elements to update in Event Receiver ItemUpdated and to update them ? Please help.


they are already updated, thats why the event-receiver is triggered.

you can get the item, on which behalf the receiver is running by


(properties-object is received as parameter of the method)

however, if you update the item again, you have to be careful. because updating the item again of course triggers the Events again, this could get quite complex. Reconsider your architecture before doing so.

| improve this answer | |
  • I must update a item in secound list on udpate in first list. – Grzegorz Z May 22 '15 at 11:34
  • 1
    then you have to get the second list and find the item, either by ID or Query, depending on the way you designed the referencing of both. – Leopold Lerch May 22 '15 at 11:39
  • And how add Query to the elements of the list in event receiver. Please help – Grzegorz Z May 22 '15 at 12:00
  • 1
    build an query by using the SPQuery Object and then call getItems(query) on the list. You have to build the CAML-Query of course by yourself according to your needs. I don´t know how build your architecture to find get a reference to the item. – Leopold Lerch May 22 '15 at 12:10
  • But how. Could You give a sample of Code ? – Grzegorz Z May 22 '15 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.