Comments (6)
Might be the same as jordimontana82/fake-xrm-easy#482 in v1.
from fake-xrm-easy.
Confirmed that the bug you raised on v1 is not fixed with DynamicsValue/fake-xrm-easy-core#30
from fake-xrm-easy.
Thanks lads @filcole @BetimBeja @bwmodular
from fake-xrm-easy.
Here's a unit test for this with OOB attrbutes. It fails because the grouped by column doesn't appear in the resultset.
It's the equivalent of this SQL query:
select count(*), so.name
from salesorderdetail sod
, salesorder so
where sod.salesorderid = so.salesorderid
group by so.name;
The 'name' column does not appear in the results of the query.
Issue48.zip
from fake-xrm-easy.
@jordimontana82 @bwmodular the following test works:
[Fact]
public void When_An_Aggregated_Query_Contains_Group_By_On_Base_Attributes_These_Should_Be_Returned_In_The_Query_Results()
{
EntityCollection records = _service.RetrieveMultiple(new FetchExpression(@"<fetch aggregate='true'>
<entity name='salesorderdetail'>
<attribute name='salesorderdetailid' alias='count' aggregate='count' />
<attribute name='lineitemnumber' alias='lineitemnumber' groupby='true' />
</entity>
</fetch>"));
Assert.Equal(1, (int)((AliasedValue)records.Entities[0]["lineitemnumber"]).Value);
}
which means the problem is only limited to groupby
applied to linked entities
from fake-xrm-easy.
@filcole I think I didn't solve that problem with my PR... if that is the case do you mind issuing a PR against https://github.com/BetimBeja/dynamicsvalue-fake-xrm-easy-core/tree/fix/2x/issue-48 which would add your commits to DynamicsValue/fake-xrm-easy-core#30 ?
I wrote a blog about the process some time ago: https://xrm.al/blog/co-author-github
from fake-xrm-easy.
Related Issues (20)
- When using Automatic Registration in PipelineSimulation the new PluginInstancesRepository needs to be defined earlier so it's used by the automatic registration
- Remove unnecessary build steps from build scripts
- Update github actions to allow forks run their own analysis in their own sonar cloud account (free for OSS) HOT 21
- Add SharedVariables to pipeline simulation
- Add support for the new Bulk API (CreateMultiple, UpdateMultiple, UpsertMultiple)
- v2.3.3 is significantly slower than v2.3.0 HOT 4
- Registering a plugin on RetrieveMultiple message in pipeline simulation only works without EntityLogicalName HOT 3
- Whether IXrmFakedContext support ExportPdfDocument message HOT 3
- Change default targetFramework in build scripts to "all" for simplicity
- Faked IServiceProvider should return null for unsupported types HOT 2
- One-to-many relationship metadata is not generated correctly. HOT 4
- RetrieveCurrentOrganisationRequest is missing
- Update build scripts to use a shared packages folder across repositories for package restore
- GetRecordUniqueId crashes when InitializeMetadata is used to initialise an EntityMetadata that doesn't have any Keys, however works fine if using generated early bound types (_context.EnableProxyTypes())
- Improve pattern matching / wildcard support in LIKE operator implementation
- Should support Operators where early bound types for a multi option set (i.e. multiple choice) is generated as an IEnumberable<TEnum> as opposed to an OptionSetValueCollection
- New FetchXml enhancements and previously undocumented features
- RetrieveRequestExecutor does not return correct response HOT 6
- The organization request type 'Microsoft.Xrm.Sdk.OrganizationRequest' is not yet supported... HOT 3
- Delete and DeleteRequest do not work for Late-Bound entities in Pipeline Simulation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fake-xrm-easy.