- On the left side options column expand Data Sources, expand Bulk Sources, and click on Query.
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/63c833a829a85bdca3eb6994_QuerySourceLocation.png)
- On the Query Data Sources page click the Create Bulk Query button.
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/63c833c24a17bcfc29f07ac8_CreateBulkQueryButton.png)
- On the New Query Data Source page click the Microsoft Dynamics CRM Query Data Source button.
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/63cae1bbc74a327021cdaa50_CRMQueryICon.png)
- The page to configure the Dynamics CRM query data source opens.
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/63cac8229d857e1573a122ca_CRMQueryWindow.png)
- Enter a Name for the query.
- Connection – Select the Dynamics CRM connection to be used from the dropdown list.
- Organization – Select the CRM organization to be used from the dropdown list.
- Return Option Set Labels – Option sets within CRM have a value (held in the database) and a label (shown to the end user). Default queries to CRM return the value for option sets rather than the label. The return option sets as label checkbox on CRM data sources will return the label linked to the option set instead of the value.
- Click Validate. If the validation is successful, the Edit Query button becomes active.
- Click Edit Query – Opens the Query Builder to create a new query or edit an existing query.
![](https://linuxeqa.eonesolutions.com/wp-content/uploads/2023/09/63cac815c1b029345bb2c9cd_CRMQueryBuilder.png)
- After the query has been created click on Next to return to the Dynamics CRM Sales Query Data Source window.
- Click Save to save the query source.