I'm currently interrogating an Umbraco 8 SQL database for Power BI reasons.
I am able to get so far with my query, however I am hitting a block where one of the properties is populated using a picker. The resulting column data is an Umbraco UDI (umb://document/stringifiedguid).
Is there any way to turn this back in to a node ID without needing to use the Umbraco helper (getIdforUdi) in C# as this really needs to just be an SQL query.
Umbraco UDI to nodeid in SQL
Hi all,
I'm currently interrogating an Umbraco 8 SQL database for Power BI reasons.
I am able to get so far with my query, however I am hitting a block where one of the properties is populated using a picker. The resulting column data is an Umbraco UDI (umb://document/stringifiedguid).
Is there any way to turn this back in to a node ID without needing to use the Umbraco helper (getIdforUdi) in C# as this really needs to just be an SQL query.
Thanks in advance for any help.
This will select the Int node id. Just change the 'umb://document/stringifiedguid' to the real version and it should return the correct id.
-Joep
Brilliant! Thank you so much!!
I wanted to add my own solution too, in case it helps anyone in the future
is working on a reply...