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
Hi everyone,
I would like to know the node ID immediately after saving a new media item, as I would like to do some post-processing on it.
Is this possible?
e.g. (in pseudocode),
newNodeId = mediaservice.Save(newMediaItem)
Hi Muiris.
The MediaService.CreateMedia() methods returns a object which should get a value for the Id as soon as you save the object. Like: @mediaItem.Id.
That is perfect, many thanks Dennis!
Awesome, glad I could help Muiris! Have a great day! :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Is it possible to capture the node id after saving a new media item
Hi everyone,
I would like to know the node ID immediately after saving a new media item, as I would like to do some post-processing on it.
Is this possible?
e.g. (in pseudocode),
Hi Muiris.
The MediaService.CreateMedia() methods returns a object which should get a value for the Id as soon as you save the object. Like: @mediaItem.Id.
That is perfect, many thanks Dennis!
Awesome, glad I could help Muiris! Have a great day! :)
is working on a reply...