Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New FetchXml enhancements and previously undocumented features #141

Open
jordimontana82 opened this issue Mar 24, 2024 · 2 comments
Open

Comments

@jordimontana82
Copy link
Contributor

This issue is a container for several FetchXml improvements that would probably be too big to address in a single issue, so it's a placeholder for investigating them, and will likely be implemented throughout several releases.

Mark has a great resource summarizing some of them: https://markcarrington.dev/2024/03/08/new-fetchxml-features-and-documentation/

The official FetchXml documentation can be found here: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/fetchxml/overview

Some of the new features that need investigation are:

Extra Llink operators

FXE currenly supports inner and outer (LEFT OUTER) joins. Since the query engine was implemented several other link types have been introduced.

  • any
  • not any
  • all
  • not all
  • exists
  • in
  • matchfirstrowusingcrossapply

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/fetchxml/reference/link-entity#link-type-options
https://learn.microsoft.com/en-us/power-apps/developer/data-platform/fetchxml/join-tables?tabs=fetchxml#use-exists-or-in-link-types

Order By

  • New entityname attribute introduced allowing to arbitrarily sort by any linked entity column without relying on the order of appearance in the FetchXml

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/fetchxml/order-rows

Cross-Table column comparisons

  • Implement ´value-of' in condition expressions where an attribute can be compared against to another column as opposed to a fixed value.

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/fetchxml/filter-rows?tabs=fetchxml#cross-table-comparisons

Other

Some other areas that need investigation to see if they are implemented:

@otressler
Copy link

otressler commented Oct 18, 2024

Hey @jordimontana82 ,

we are currently developing a plugin that makes heavy use of the Exists query operator. Unfortunately, it doesn't seem like Fake XRM Easy supports unit tests for these queries.

Exception occurred: The join operator Exists is currently not supported. .
If you are using FakeXrmEasy under a commercial context and have an appropiate commercial license 
for this use, please raise an issue via our GitHub issue tracker at 
https://github.com/DynamicsValue/fake-xrm-easy or, else, please reach out via 
[email protected] so we can prioritise it.

We have booked several licenses for our company. Is there any ETA on when this feature is gonna land?

@con-cs
Copy link

con-cs commented Oct 24, 2024

Exists operator would be highly recommended. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants