Skip to Content

Import Data into Excel via API

Use Case

Using the CMW Platform API, you can import the application data to Excel (via Power Query) or BI systems.

In this article, we will import the data from a record template into an Excel file using the CMW Platform API and the Power Query add-in.

Instructions

Obtaining the GET Request URL for a Template 

  1. Open your Comindware Business Application Platform instance website.
  2. To open the API web interface, type /docs after the domain name in the browser address bar, for instance:
    mycompany.com/docs
  3. Go to the Solution API section that lists all application templates.
  4. Find the template you need by its system name and click it.
  5. Select the GET method (without the {id} suffix) that returns all the records from the record template.
  6. Click Try it out.
  7. Copy the value in the Request URL field, for example:
    https://mycompany.com/api/public/solution/Vehiclerequests

Obtaining the template GET request URL

Obtaining the template GET request URL

Note: The CMW Platform API presents the data in JSON format.

Importing Data to Excel

The Power Query add-in is built into Excel 2016 and above. For earlier versions of Excel, you need to install it.

  1. On the Data tab in the ribbon, click From Web
  2. In the URL field, paste the Request URL you copied from the CMW Platform API.

    Initializing the Power Query in Excel

    Initializing the Power Query in Excel

  3. In the Access Web content window:
    • Select Basic.
    • Enter the user name and password of the account with permission to view the selected record template.
    • Click Connect.

      Configuring the credentials for API access

  4. The received data appears in the Power Query Editor window.

    Power Query Editor with the imported data

    Power Query Editor with the imported data

  5. Click To Table in the ribbon. Click OK in the To Table window .

    Configuring the query table

    Configuring the query table

  6. Expand the list of all record template attributes and select the attributes to load in the table.

    Configuring the columns

  7. Click Close & Load in the ribbon to import the data into the Excel spreadsheet.

    Loading the query table to the Excel spreadsheet

    Loading the query table to the Excel spreadsheet

  8. The data will appear in the Excel spreadsheet as shown below.

    A query table imported to the Excel spreadsheet

    A query table imported to the Excel spreadsheet