Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
When creating a document using the IContentService SaveAndPublish method, is there a way to have the new items id returned?
Hi Damion,
The SaveAndPublish method returns a PublishResult object, which contains a property content of type IContent.
SaveAndPublish
PublishResult
content
IContent
Is this what you are looking for?
Thanks for the reply Jeffrey, yes that was it, spot on.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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?
Hi Damion,
The
SaveAndPublish
method returns aPublishResult
object, which contains a propertycontent
of typeIContent
.Is this what you are looking for?
Thanks for the reply Jeffrey, yes that was it, spot on.
is working on a reply...