Retrieving data from Dynamics 365


The post describes several methods for retrieving data from Dynamics 365 (i.e. 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

Fetch XML

Figure 2
Figure 3


Figure 4

Retrieving data using JavaScript


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