Knowledge: SQL to Lookup Root Taxonomy Level
Back
    Title*SQL to Lookup Root Taxonomy Level
    ManualAdministration
    Manual Level TwoData Actions
    Created14/01/2019
    Detail

    To lookup root taxonomy level use the below SQL.

    DECLARE @TaxonomyID as int = (TaxonomyID of Taxonomy Required)

    SELECT Name, Value + '|' + RTRIM(LTRIM(CAST(ID as nvarchar(max)))) as Value FROM TaxonomyEntries WHERE ISNULL(ParentEntryID,0) = 0 AND TaxonomyID=@TaxonomyID Order By Name

    If using in a Data Action dropdown would recommend having Value as Value field as that is what is usually stored in an Item when a normal taxonomy is used.

    Manual
    Reporting
    Privacy Policy
    Cookies help us to improve your user experience. By using this site you consent to cookies being stored on your device. Read more...
    Back to Top
    View or hide all system messages