Skip to content

Commit 22d815b

Browse files
committed
Merge remote-tracking branch 'origin/main' into adrianorth-patch-4
2 parents 689d201 + d4b2755 commit 22d815b

File tree

101 files changed

+3006
-1132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+3006
-1132
lines changed

.openpublishing.redirection.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8744,6 +8744,21 @@
87448744
"source_path": "powerapps-docs/maker/canvas-apps/working-with-dynamic-schema.md",
87458745
"redirect_url": "/power-apps/maker/canvas-apps/untyped-and-dynamic-objects#converting-formulas-that-return-untyped-objects-that-previously-returned-boolean",
87468746
"redirect_document_id": false
8747+
},
8748+
{
8749+
"source_path": "powerapps-docs/maker/canvas-apps/performance-tips.md",
8750+
"redirect_url": "/power-apps/maker/canvas-apps/create-performant-apps-overview",
8751+
"redirect_document_id": false
8752+
},
8753+
{
8754+
"source_path": "powerapps-docs/maker/data-platform/azure-synapse-link-troubleshooting-guide.md",
8755+
"redirect_url": "/power-apps/maker/data-platform/export-data-lake-faq",
8756+
"redirect_document_id": false
8757+
},
8758+
{
8759+
"source_path": "powerapps-docs/maker/canvas-apps/slow-performance-sources.md",
8760+
"redirect_url": "/power-apps/maker/canvas-apps/create-performant-apps-overview",
8761+
"redirect_document_id": false
87478762
}
87488763
]
87498764
}

powerapps-docs/developer/data-platform/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,9 @@
379379
href: create-auto-number-attributes.md
380380
- name: Choices
381381
href: multi-select-picklist.md
382-
- name: File columns
382+
- name: File column definitions
383383
href: file-attributes.md
384-
- name: Image columns
384+
- name: Image column definitions
385385
href: image-attributes.md
386386
- name: Define custom state model transitions
387387
href: define-custom-state-model-transitions.md

powerapps-docs/developer/data-platform/asynchronous-service.md

Lines changed: 717 additions & 96 deletions
Large diffs are not rendered by default.

powerapps-docs/developer/data-platform/column-comparison.md

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Use column comparison in queries
33
description: Learn how to compare columns when querying business data in Microsoft Dataverse.
4-
ms.date: 08/04/2023
4+
ms.date: 01/09/2024
55
ms.topic: how-to
6-
author: NHelgren
7-
ms.author: nhelgren
6+
author: pnghub
7+
ms.author: gned
88
ms.reviewer: pehecke
99
ms.subservice: dataverse-developer
1010
search.audienceType:
@@ -14,10 +14,8 @@ ms.custom: bap-template
1414

1515
# Use column comparison in queries
1616

17-
[!INCLUDE[cc-terminology](includes/cc-terminology.md)]
18-
1917
In Microsoft Dataverse, users can perform a column comparison for the
20-
following condition operators using FetchXML, Web API, or the SDK for .NET.
18+
following condition operators using FetchXML, Web API, or [QueryExpression](xref:Microsoft.Xrm.Sdk.Query.QueryExpression) using the SDK for .NET.
2119

2220

2321
|FetchXml|Web API|ConditionOperator|
@@ -29,14 +27,17 @@ following condition operators using FetchXML, Web API, or the SDK for .NET.
2927
|`lt`|`lt`|<xref:Microsoft.Xrm.Sdk.Query.ConditionOperator.LessThan>|
3028
|`le`|`le`|<xref:Microsoft.Xrm.Sdk.Query.ConditionOperator.LessEqual>|
3129

32-
This will allow the comparison of a column against a specific value and return all found records, or allow the comparison of two columns to return all records with a matching value.
30+
These operators allow the comparison of a column against a specific value and return all found records, or allow the comparison of two columns to return all records with a matching value.
3331

3432
## Limitations
3533

3634
Dataverse column comparison has the following limitations:
3735

38-
- You can only compare columns within a single table.
39-
- Only two columns may be compared at a time.
36+
- With Web API and [QueryExpression](xref:Microsoft.Xrm.Sdk.Query.QueryExpression), and you can only compare columns within a single table.
37+
38+
With FetchXml, you can compare columns in other related tables. See [Cross table comparisons](#cross-table-comparisons).
39+
40+
- Only two columns can be compared at a time.
4041
- Multi-value condition operators aren't supported (that is, "in").
4142
- Extended condition operators aren't supported (that is, "creditlimit \> spends+1000").
4243
- Incompatible column comparison isn't supported. For example, "int vs. int" columns is a valid comparison but "int vs. string" columns isn't a valid comparison.
@@ -59,6 +60,27 @@ The following example shows how to compare columns using FetchXML.
5960
For FetchXML, the `valueof` attribute the condition element specifies the name of the column to compare with the selected column. In the previous example, the `firstname` column is being compared against the `lastname` column and returns any records that contain
6061
the same value across both columns.
6162

63+
## Cross table comparisons
64+
65+
With FetchXML only, you can compare field values in related tables. The following example returns rows where the contact `fullname` column matches the account `name` column.
66+
67+
```xml
68+
<fetch>
69+
<entity name='contact'>
70+
<attribute name='contactid' />
71+
<attribute name='fullname' />
72+
<filter type='and'>
73+
<condition attribute='fullname' operator='eq' valueof='acct.name' />
74+
</filter>
75+
<link-entity name='account' from='accountid' to='parentcustomerid' link-type='outer' alias='acct'>
76+
<attribute name='name' />
77+
</link-entity>
78+
</entity>
79+
</fetch>
80+
```
81+
82+
The `link-entity` element must use an `alias` attribute and the value of the `valueof` parameter must reference that alias and the column name in the related table.
83+
6284

6385
### See Also
6486

0 commit comments

Comments
 (0)