Added a new folder and item in it with WorkFlow and published it via workflow, but it doesn't appear in the next level db. Any thoughts

Master db:

enter image description here

Preview db: missing the test folder and content

enter image description here

  • Comments are not for extended discussion; this conversation has been moved to chat.
    – Richard Seal
    Oct 25 '19 at 12:40

By default sitecore workflow doesnt publish the parent folder. We need to first publish the folder and then the WF Item.

As its not a good practice to have WF to the folder, we have written a pipeline which is triggered in the sitecore publish event(publish:itemProcessed), so whenever an item is published this method checks to see if the item exists in the next environment and the folder path matches, if in any of those cases fail this method will go ahead and publish the folder or move the file path accordingly.

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.