0

I have an event processor similar to this. I was originally passing in true for the parameter silent to Item.Editing.EndEdit(bool silent). I figured that this programmatic change wouldn't need to change things like the updated by field or anything else that should normally change when a content editor is editing an item. This ended up causing the value to not show up updated until a save even ran on that item again or the app pool refreshed.

Is there a way to use the silent parameter but have updated values show in the content editor right away? Is setting this parameter to true dangerous in any way if I expect two specific fields to be updated by my code and nothing else?

3

Avoid setting silent to true. It'll cause all kinds of strange things. It looks like you're looking at setting updateStatistics to false:

item.Editing.EndEdit(false, false);

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.