Posts

Showing posts from February, 2025

Add contract class in to other contract class in x++ in d365F&O

    List items = new List(Types::Class);     [DataMemberAttribute("Items"),     DataCollection(Types::Class, classStr(<Name of contract class>)),     AifCollectionTypeAttribute('_items', Types::Class, classStr(<Name of contract class>)),     AifCollectionTypeAttribute('return', Types::Class, classStr(<Name of contract class>))]     public List parmitems (List _items = items )     {         items  = _items ;         return items ;     } Thanks for reading! Like this post if you found it helpful. 😀😀 And let me know your thoughts in the comments below.😇😇