EDIT: Found the error was the row limit. I had more contacts than the 500 / 2000 max limit. It pulls all the data in, then filters. Is there any way to push the query to limit the incoming data in dynamics?
New to dynamics.
User selects an account
Contact are disaplyed for this account, and all linked accounts
I only need to go 1 level deep, i.e. accounts linked directly to the selected account
I have this code that lists all accountid that I'm interested in
Based on the formula you provided, I think there is something wrong with it. Actually, the 'Company Name' (parentcustomerid) column is a Polymorphic lookup field in CDS Entity, which could references records from Accounts Entity or Contacts Entity, please check the following article for more details:
If you faced a Delegation warning issue with your formula, you could not delegate the data process to your data source, instead, you could only process your data locally. In default, you could only process 500 records locally at most. You could change the "Data row limit for Non-delegable queries" option to maximum value -- 2000 within Advanced settings of App settings of your app, then you could process 2000 records locally at most.
Community Support Team _ Kris Dai If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.