Prashant unfortunatly this dosent work, I can't see how Where() matching GarageId with DealerId to pull data from Garages table. There are many garages so I have to match Id's to pull data from right garage.
My couleges suggesting using System.Linq library and this:
{%Documents.ClassNames("Protyre.Garage").WithAllData.Where(x => x.DealerId == Order.GarageId )[0].GetValue ("OfficeName") |(identity)GlobalAdministrator%}
But this dosen't work. Now I am thinking of creating custom macro and inside #c file I can use Where(), any thought if this is doable/right direction?