![]() |
VOOZH | about |
The CData Excel Add-In for Dynamics 365 Business Central provides formulas that can edit, save, and delete Dynamics 365 Business Central data. The following three steps show how you can automate the following task: Search Dynamics 365 Business Central data for a user-specified value and then organize the results into an Excel spreadsheet.
The syntax of the CDATAQUERY formula is the following:
=CDATAQUERY(Query, [Connection], [Parameters], [ResultLocation]);
This formula requires three inputs:
Connection: Either the connection name, such as D365BusinessCentralConnection1, or a connection string. The connection string consists of the required properties for connecting to Dynamics 365 Business Central data, separated by semicolons.
To authenticate to Dynamics 365 Business Central, you must select an AuthScheme and provide the required properties (OAuth by default).
Specify the . If you have multiple companies in your organization, you must also specify the to indicate which company you would like to connect to. does not need to be specified if you have only one company.
To authenticate with an Access Key, set AuthScheme to "AccessKey" and provide the and properties.
To obtain the and values, navigate to the Users page in Dynamics 365 Business Central and then click on Edit. The User Name and Web Service Access Key values are what you will enter as the and connection string properties. Note that the User Name is not your email address. It is a shortened user name.
If you wish to authenticate through other methods, refer to the Help documentation.
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM Accounts WHERE Name = '"&B3&"'","OrganizationUrl="&B1&";InitiateOAuth="&B2&";Provider=D365BusinessCentral",B4)
👁 Formula inputs used in this example. (Google Apps is shown.)Download a free trial of the Excel Add-In for Dynamics 365 Business Central to get started:
Download NowLearn more:
👁 Dynamics 365 Business Central (NAV) IconThe Dynamics 365 Business Central Excel Add-In is a powerful tool that allows you to connect with live Dynamics 365 Business Central data, directly from Microsoft Excel.
Use Excel to read, write, and update Items, Sales Orders, Purchase Orders, etc. Perfect for mass imports / exports / updates, data cleansing & de-duplication, Excel based data analysis, and more!