1

I am using the rule engine to insert a branch template under an item on Item Save. The problem is that each item in the branch subsequently triggers Item Save. Is there a way to prevent the branch from triggering the rule? Or excluding the branch from the rule? Its making Item Save take forever.

UPDATE

Here is what the rule is actually doing:

  1. Is the item content (Checks path)
  2. Does the item inherit from a template
  3. The item does not already have the branch as a child

If all are true, insert the branch

3
  • Comments are not for extended discussion; this conversation has been moved to chat.
    – Richard Seal
    May 1, 2020 at 13:58
  • In your save event code, you need to disable the execution of events. See samples on using the EventDisabler here sitecore.stackexchange.com/questions/1493/… May 5, 2020 at 10:12
  • I have already tested and confirmed that this is not true. Even with Event Disabler, all items in the branch trigger Item Save. May 5, 2020 at 11:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.