I've been looking in to the
ui-api but it doesn't cut it for me, what I need It's to return exclusively the fields in the Page Layout for an object and some additional records.
Something like Getting the
Opportunity and getting its related records like the
Contact records related to it as well as the
OpportunityLineItem records related to it.
ui-api does the job, but still, it's a little of a pain to extract the data from it, I'm trying to feed an external service with this, but there are just so few fields and I want to do it for many objects, that is why querying the Page Layout could be useful, may be not the data of the record but at least the involved fields, so I can do the SOQL query and get them.
My first attempt to solve this issue, was querying the full object, with 2 levels of depth, but It was too much, for the request.