Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

my list triggers item added and then item updated when I add a list item, but then when i add list item it takes me to update item form, where it asks me to update item details, so if i click next, it triggers updatedItem method again

i checked list item add only has item add event related to it

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Seems like your code is updating the item in the itemadded method which is firing your item updated event. You need to disable events in your code before making changes to the item and enable after completing your changes.

this link shows the best way to do this.

Best of luck

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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