Posted in C#, Dynamics 365 CE, JavaScript
Retrieving data from Dynamics 365
Introduction
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

Fetch XML


LINQ

Retrieving data using JavaScript
Web API
Example 1

Example 2

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


Example 3
