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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...