Using BAQ Designer, how to I select top 10 or distinct

I do not see how to select top 10 or distinct when using the new BAQ Designer

1 Like

Select Subqueries from the Overflow, then Show Details, and the window that appears has the Options.

2 Likes

Alternatively, on the Run Query tab there’s a button for execution settings that looks like a gear. you can add a setting for QueryMaxResultSet that will limit your results.

2 Likes

Thank You very much,

Thank You,

This kind of trigger an additional question that may or may not be know, but can you pass Query Execution Setting or Top 10 request when getting a BAQ via Invoke-Rest process? I do a lot of passing ?Filters but was wondering in you can also pass execution or distinct arguments as well.

In advance, thank you for your assistance.

Rod

1 Like

The rest help page has a field for $Top when calling a BAQ as a GET, I don’t see any reason why you couldn’t use that to limit your results.

Thank You, I will give it a try and let you know how it turns out. It would be nice if it was able to help me fine tune these Extracts. We are SaaS and often need to extract EpiCor data and combine it with contract history from our previous ERP system and I use many Powershell scripts to do this. Once again, thank you.