Posted in C#, Dataverse, JavaScript
Retrieving data from Dataverse
Introduction
The post describes several methods for retrieving data from Dataverse.
Retrieving data using C#
Query Expression
![](https://dustinminer.com/wp-content/uploads/2023/08/1.png)
FetchXML
![](https://dustinminer.com/wp-content/uploads/2023/11/2.png)
![](https://dustinminer.com/wp-content/uploads/2023/11/2a.png)
LINQ
Note: Early binding is required for this. In this example, there would need to be an early binding file for ‘SystemUser’ (Figure 5)
![](https://dustinminer.com/wp-content/uploads/2023/08/3-2.png)
![](https://dustinminer.com/wp-content/uploads/2024/07/9-9.png)
Retrieving data using JavaScript
Web API
Example 1
![](https://dustinminer.com/wp-content/uploads/2023/08/4.png)
Example 2
![](https://dustinminer.com/wp-content/uploads/2024/06/5-3.png)
Figure 8 & 9 represents how Figure 7 can be updated to use a custom helper function setLookupValue()
![](https://dustinminer.com/wp-content/uploads/2023/08/6.png)
![](https://dustinminer.com/wp-content/uploads/2023/08/7.png)
Example 3
![](https://dustinminer.com/wp-content/uploads/2023/08/8.png)