hi,i trying to get all accounts records by odata endpoint with list all contacts ,in order to do this,used below url in my post man:
https://crm-preview.***/main/api/data/v9.0/accounts/contact_customer_accounts?$select=firstname
and my response
"@odata.context": "https://crm-preview****/main/api/data/v9.0/$metadata#accounts(name,contact_customer_accounts(firstname))",
"value": [
{
"@odata.etag": "W/\"2922751\"",
"name": "Hockey Federation",
"accountid": "46ef24d1-a0c1-e911-b42a-005056a8646b",
"contact_customer_accounts": [],
"contact_customer_accounts@odata.nextLink": "https://crm-preview.***/main/api/data/v9.0/accounts(46ef24d1-a0c1-e911-b42a-005056a8646b)/contact_customer_accounts?$select=firstname"
},
{
"@odata.etag": "W/\"2181982\"",
"name": "Corporate Club",
"accountid": "a0e0aef4-04c8-e911-b42a-005056a8646b",
"contact_customer_accounts": [],
"contact_customer_accounts@odata.nextLink": "https://crm-preview.***/main/api/data/v9.0/accounts(a0e0aef4-04c8-e911-b42a-005056a8646b)/contact_customer_accounts?$select=firstname"
},
as you can see , contact_customer_accounts is empty array.
if i put ID in my accounts everything worked but i want to get all my accounts records with details of contacts.