You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
33
31
34
32
## Limitations
35
33
36
34
Dataverse column comparison has the following limitations:
37
35
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.
40
41
- Multi-value condition operators aren't supported (that is, "in").
- 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.
59
60
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
60
61
the same value across both columns.
61
62
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.
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.
0 commit comments