How to access Umbraco Node Id from Content(xt) app?
Hi Matt,
Sorry I think I'm going to be pestering you a bit over the coming days...
I have a content app that renders a collection of 'events' linked to an Umbraco node. These are just simple POCOs that store a bit of data, nothing fancy.
The foreign key for the ContextApp is set to a field called ExternalId, however when I create a new event through the content app the ExternalId is always the default value and I can't figure out where to get + set that value from.
What value type is your external ID? it looks like a Guid, but Konstrukt assumes a string as it will give you a UDI for the content item, not the Guid key. This is to ensure the values remain set across cloud environments (if you are using them).
How to access Umbraco Node Id from Content(xt) app?
Hi Matt,
Sorry I think I'm going to be pestering you a bit over the coming days...
I have a content app that renders a collection of 'events' linked to an Umbraco node. These are just simple POCOs that store a bit of data, nothing fancy.
The foreign key for the ContextApp is set to a field called
ExternalId
, however when I create a new event through the content app theExternalId
is always the default value and I can't figure out where to get + set that value from.As always your help is greatly appreciated.
Kind regards
Phil
Hey Phil,
What value type is your external ID? it looks like a Guid, but Konstrukt assumes a string as it will give you a UDI for the content item, not the Guid key. This is to ensure the values remain set across cloud environments (if you are using them).
Hope this helps
Matt
Ah that makes perfect sense, no problem I'll convert it to a string.
Thanks Matt.
is working on a reply...