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,
Is there a way of getting a node GUID from the nodes ID?
So:
Node myNode= new Node(1234);
Doesn't expose the nodes GUID. I can see everything else about the node but I can't see the GUID.
Thanks, Craig
Hi Craig,
"Node" is long obsolete, it was replaced by IPublishedContent. Please use the UmbracoHelper with the TypedContent method. Documentation can be found at https://our.umbraco.org/Documentation/Reference/Querying/UmbracoHelper/#typedcontent-int-id
You can then get the Guid from the GetKey() method. e.g.
Umbraco.TypedContent(1234).GetKey();
Jeavon
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
Get the GUID from the NodeFactory.Node
Hi all,
Is there a way of getting a node GUID from the nodes ID?
So:
Doesn't expose the nodes GUID. I can see everything else about the node but I can't see the GUID.
Thanks, Craig
Hi Craig,
"Node" is long obsolete, it was replaced by IPublishedContent. Please use the UmbracoHelper with the TypedContent method. Documentation can be found at https://our.umbraco.org/Documentation/Reference/Querying/UmbracoHelper/#typedcontent-int-id
You can then get the Guid from the GetKey() method. e.g.
Jeavon
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.