Import Odoo Data into Microsoft Power Query



The CData API Server offers standards-based Web service endpoints that allow a variety of applications to access Odoo data. In this article, you will use the OData format to import Odoo data into Microsoft Power Query.

The CData API Server enables you to use REST, OData, JSON, or Open APIs to connect to and query Odoo data. The OData standard enables real-time access to the live data, and support for OData is integrated into PowerQuery. This article details how to import an OData feed of Odoo data into Microsoft Power Query.

About Odoo Data Integration

Accessing and integrating live data from Odoo has never been easier with CData. Customers rely on CData connectivity to:

  • Access live data from both Odoo API 8.0+ and Odoo.sh Cloud ERP.
  • Extend the native Odoo features with intelligent handling of many-to-one, one-to-many, and many-to-many data properties. CData's connectivity solutions also intelligently handle complex data properties within Odoo. In addition to columns with simple values like text and dates, there are also columns that contain multiple values on each row. The driver decodes these kinds of values differently, depending upon the type of column the value comes from:
    • Many-to-one columns are references to a single row within another model. Within CData solutions, many-to-one columns are represented as integers, whose value is the ID to which they refer in the other model.
    • Many-to-many columns are references to many rows within another model. Within CData solutions, many-to-many columns are represented as text containing a comma-separated list of integers. Each value in that list is the ID of a row that is being referenced.
    • One-to-many columns are references to many rows within another model - they are similar to many-to-many columns (comma-separated lists of integers), except that each row in the referenced model must belong to only one in the main model.
  • Use SQL stored procedures to call server-side RFCs within Odoo.

Users frequently integrate Odoo with analytics tools such as Power BI and Qlik Sense, and leverage our tools to replicate Odoo data to databases or data warehouses.


Getting Started


Set Up the API Server

If you have not already done so, download the CData API Server. Once you have installed the API Server, follow the steps below to begin producing secure Odoo OData services:

Connect to Odoo

To work with Odoo data from Microsoft Power Query, we start by creating and configuring a Odoo connection. Follow the steps below to configure the API Server to connect to Odoo data:

  1. First, navigate to the Connections page.
  2. Click Add Connection and then search for and select the Odoo connection.
  3. Enter the necessary authentication properties to connect to Odoo.
  4. After configuring the connection, click Save & Test to confirm a successful connection.

Configure API Server Users

Next, create a user to access your Odoo data through the API Server. You can add and configure users on the Users page. Follow the steps below to configure and create a user:

  1. On the Users page, click Add User to open the Add User dialog.
  2. Next, set the Role, Username, and Privileges properties and then click Add User.
  3. An Authtoken is then generated for the user. You can find the Authtoken and other information for each user on the Users page:

Creating API Endpoints for Odoo

Having created a user, you are ready to create API endpoints for the Odoo tables:

  1. First, navigate to the API page and then click Add Table .
  2. Select the connection you wish to access and click Next.
  3. With the connection selected, create endpoints by selecting each table and then clicking Confirm.

Gather the OData Url

Having configured a connection to Odoo data, created a user, and added resources to the API Server, you now have an easily accessible REST API based on the OData protocol for those resources. From the API page in API Server, you can view and copy the API Endpoints for the API:

Connect to Odoo Data from Power Query

  1. In Microsoft Excel, open the Power Query Editor. From the Data ribbon, click Get Data -> Launch Power Query Editor:
  2. Click New Source -> Other Sources -> OData feed:
  3. In the OData feed connection, set the URL property to the OData Endpoint URL previously copied and click OK:
  4. In the next step of the wizard, define the authentication credentials. Select Basic and then enter the credentials for a user authorized to make requests. Specify the User name and enter the user's authtoken in the Password field:
  5. You can now access Odoo data in Power Query. In the Navigator expand the node for the OData feed, right-click a table, and click Transform Data to open the Query Editor. This will display the table data.

Free Trial & More Information

If you are interested in connecting to your Odoo data (or data from any of our other supported data sources) from Microsoft Power Query, download API Server to begin creating flexible and customizable REST, OData, JSON and Open APIs from any database or data store! As always, our world-class support team is ready to answer any questions you may have.

Ready to get started?

Learn more or sign up for a free trial:

CData API Server