Hi Justin, Have you taken a look at the extract function on collections? I think it would do what you want.
-- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada <[email protected]> <www.synergyfarmsolutions.com> > On Oct 30, 2019, at 2:45 PM, Justin Will via 4D_Tech <[email protected]> > wrote: > > $oRecs:=ds.Complex.query("Domain_ID = :1";_Domain_ID) > $coll:=$oRecs.toCollection("ID, Name, Facilities.ID, Facilities.Name") > $vtReturn:=JSON Stringify($coll) > ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

