API info

Hi

I’m using the Advance Services to search information using POST /ws/rest/:model/search
but one of the attributes, that is a subtable with a relation M2M, just return « id » and « version » information but there are more columns that I need to retrieve.

Is there any another configuration that I need to send in the body?

Hello,

For O2O or M2O relational field, if you want to access any fields from that referenced entity you can access by specifying dotted field (For example createdBy.partner.emailAddress.address) in fields while requesting the data. for more details : Advanced Services :: Axelor Documentation can be referred.

But for M2M or O2M, you have to fire new request using those ids in _domain & _domainContext to fetch more field values.

Thank you.
Best regards.