Retrieving data from Dataverse

Introduction

The post describes several methods for retrieving data from Dataverse. The example described in this post searches the systemusers entity for users who have the name ‘smith’. It then creates a list of those users.

Retrieving data using C#

Query Expression

Figure 1

FetchXML

Figure 2
Figure 3

LINQ

Figure 4

Retrieving data using JavaScript

Web API

Example 1

Figure 5

Example 2

Figure 6

Figure 7 & 8 represents how Figure 6 can be updated to use a helper function setLookupValue()

Figure 7
Figure 8

Example 3

Figure 9