So I have an API GET that looks like the following:
https://company.crm.dynamics.com/api/data/v9.0/accounts?$select=accountid,accountnumber,name&$expand=account_productbuyer($select=productbuyerid,status)&$filter=status code eq 1
I'd like to only return records in the expand from the account_productbuyer where the status equals a certain value. I've tried adding filter into the expand, but it is the incorrect syntax.
Is this possible to do via the web API? I'm trying to avoid iterating through the records returned in the expand to check for a certain status value.