Nested CDT and type() function

Hi Team,
I have defined a CDT by importing XSD. There are some complex types defined and appropriate references are given in XSD to define the type. When I try to do type!mynestedCDT() --This element refers to another complex type , is returning invalid data type ,although I am able to see them properly defined in the Data Management tab

OriginalPostID-261026

  Discussion posts and replies are publicly visible

Parents
  • If you're looking to define the value of a nested CDT within a type constructor, The correct format is:

    type!myParentCDT(
    aTextField: "Some value",
    anIntegerField: 12345,
    myChildCDT: type!myChildCDT(
    aDecimalField: 12345.67
    )
    )

    ...where "myChildCDT" is the name given to the reference to type!myChildCDT within the parent CDT.
Reply
  • If you're looking to define the value of a nested CDT within a type constructor, The correct format is:

    type!myParentCDT(
    aTextField: "Some value",
    anIntegerField: 12345,
    myChildCDT: type!myChildCDT(
    aDecimalField: 12345.67
    )
    )

    ...where "myChildCDT" is the name given to the reference to type!myChildCDT within the parent CDT.
Children
No Data