Skip to main content
akshays0003
July 22, 2021
Question

How to use nested CDT fields( rule input) in an Interface

  • July 22, 2021
  • 3 replies
  • 0 views

I have an interface in that there is a rule input of type Employee CDT. one filed of that CDT there is a foreign key (other CDT). I want to access the nested fields in my interface. how to access the nested fields?

    3 replies

    stefanhelzle0001
    Brainy
    July 22, 2021
    akshays0003
    July 22, 2021

    My bad. I got stuck with the wrong nested CDT. that's why not able to access it.. thanks btw

    gayathris111098
    July 22, 2021

    community.appian.com/.../updating-data-in-a-nested-cdt

    https://community.appian.com/discussions/f/general/21333/query-a-nested-cdt

    Refer these

    You could do index(mainCDT, mainCDT_id, 0).nestedCDT should give you one item of type nestedCDT corresponding to that row.
    Or you could try property(mainCDT, nestedCDT, {}) which should return a list of all the nestedCDT objects inside the list of mainCD