title | description | ms.date | author | ms.author | ms.reviewer | ms.topic | search.audienceType | contributors | |||
---|---|---|---|---|---|---|---|---|---|---|---|
Sample: Retrieve multiple with the QueryByAttribute class(Microsoft Dataverse) | Microsoft Docs |
This sample shows how to use QueryByAttribute class |
04/03/2022 |
divkamath |
dikamath |
pehecke |
sample |
|
|
This sample shows how to use QueryByAttribute in the RetrieveMultiple method.
[!div class="nextstepaction"] SDK for .NET: Retrieve multiple with the QueryByAttribute class sample code
[!includecc-how-to-run-samples]
The QueryByAttribute
class is intended to be used in a scenario where it contains a query that is expressed as a set of column and value pairs.
In order to simulate the scenario described in What this sample does, the sample will do the following:
- Checks for the current version of the org.
- The
Account
method creates 2 account records.
The QueryByAttribute
method creates query using QueryByAttribute.
Displays an option to delete all the data created in the sample. The deletion is optional in case you want to examine the data created by the sample. You can manually delete the data to achieve same results.
[!INCLUDEfooter-include]