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 All I've created a node programatically in my Service class.
_contentService.SaveAndPublish(content, raiseEvents: false);
Just after this I would like to access the node as IPublishedContent I tried
IPublishedContent test = _helper.Content(content.Id);
but getting null.! May be i need to refresh cache before accessing the node with UmbracoHelper, hence i tried
umbraco.library.RefreshContent();
Thanks
is working on a reply...
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.
Continue discussion
Refresh Content in Umbraco 8 Programatically
Hi All
I've created a node programatically in my Service class.
Just after this I would like to access the node as IPublishedContent
I tried
but getting null.!
Which is no longer supportedMay be i need to refresh cache before accessing the node with UmbracoHelper, hence i tried
Any help is appreciated.
Thanks
is working on a reply...
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.