Allow filtering related records on V8 API

Currently it is not possible to filter records or specify fields when using {{suitecrm.url}}/Api/V8/module/{moduleName}/{id}/relationships/{linkFieldName}

this leads to overfetching which could be avoided by honouring the filter and fields parameters used by {{suitecrm.url}}/Api/V8/module/{moduleName}/{id} or {{suitecrm.url}}/Api/V8/module/{moduleName}
I have an incentive to make this change to reduce the amount of requests made to the V8 API, and so I will most likely solve this myself and share

That’s great. You can also code your own custom endpoint and handle the request however you like. That’s always an option too.

I appreciate that is an option however, the benefits of being able to use 1 or 2 common endpoints over n many is an opportunity hard to turn down.

I personally think its wildly under utilised in many plugins, modules, and products which work with the CRM.

It’s already rather powerful but with a few tweaks it can be very powerful :mechanical_arm:

1 Like