Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Karlo Medallo 14 posts 36 karma points
    Jun 28, 2013 @ 04:07
    Karlo Medallo
    0

    Content Id of the created item not available in ContentService.Created event

    I tried to hook up on ContentService.Created event and I'm trying to access the Id of the created content

    I can access the Id on Saved events though.

    Is this by design? I just thought that it is already "created" that's why it I thought it should have an Id already

  • Andreas Iseli 150 posts 427 karma points
    Jun 28, 2013 @ 10:18
    Andreas Iseli
    0

    There was / is a bug concerning the content ID in the created event. Which version of umbraco do you use?

  • Karlo Medallo 14 posts 36 karma points
    Jun 28, 2013 @ 12:04
    Karlo Medallo
    0

    I hope it is a bug that can be easily fixed. It's 6.1.1 from nuget.

     

    Also, I noticed that e.Parent is sometimes null but e.ParentId is not for Creating event. Sometimes, e.ParentId is 0 and e.Parent.Id has value

Please Sign in or register to post replies

Write your reply to:

Draft