GroupPaths.FirstOrDefault().FirstOrDefault().Id

    0

    0

    WiktorrWieSolteq

    @product.GroupPaths.FirstOrDefault().FirstOrDefault().Id
    GroupPaths is an array with a nested array containing objects with Id's.
    I wanted to get the Id of the first object from this array:
    "GroupPaths":[[{"Id":"2500","Name":"Kjeveortopedi"},{"Id":"2580","Name":"Aligner/Tilbeh\u00f8r/IPR","Sorting":0}]]
    Result: 2500
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.