Copied to clipboard

Flag this post as spam?

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


  • Damion 96 posts 331 karma points
    Oct 29, 2019 @ 13:58
    Damion
    0

    ContentService SaveAndPublish, get id of newly created document

    When creating a document using the IContentService SaveAndPublish method, is there a way to have the new items id returned?

  • Jeffrey Veer 41 posts 308 karma points
    Oct 29, 2019 @ 14:03
    Jeffrey Veer
    100

    Hi Damion,

    The SaveAndPublish method returns a PublishResult object, which contains a property content of type IContent.

    Is this what you are looking for?

  • Damion 96 posts 331 karma points
    Oct 29, 2019 @ 14:12
    Damion
    0

    Thanks for the reply Jeffrey, yes that was it, spot on.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies