Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.88 KB

retrieve-multiple-querybyattribute-class.md

File metadata and controls

48 lines (32 loc) · 1.88 KB
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
developer
JimDaly
phecke

Sample: Retrieve multiple with the QueryByAttribute class

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

How to run this sample

[!includecc-how-to-run-samples]

What this sample does

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.

How this sample works

In order to simulate the scenario described in What this sample does, the sample will do the following:

Setup

  1. Checks for the current version of the org.
  2. The Account method creates 2 account records.

Demonstrate

The QueryByAttribute method creates query using QueryByAttribute.

Clean up

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]