The CData API Server enables you to use REST, OData, JSON, or Open APIs to connect to and query NetSuite data. The OData standard enables real-time access to the live data, and support for OData is integrated into Power Pivot. This article details how to import an OData feed of NetSuite data into Microsoft Excel's PowerPivot business intelligence tool.
About NetSuite Data Integration
CData provides the easiest way to access and integrate live data from Oracle NetSuite. Customers use CData connectivity to:
- Access all editions of NetSuite, including Standard, CRM, and OneWorld.
- Connect with all versions of the SuiteTalk API (SOAP-based) and SuiteQL, which functions like SQL, enabling easier data querying and manipulation.
- Access predefined and custom reports through support for Saved Searches.
- Securely authenticate with Token-based and OAuth 2.0, ensuring compatibility and security for all use cases.
- Use SQL stored procedures to perform functional actions like uploading or downloading files, attaching or detaching records or relationships, retrieving roles, getting extra table or column info, getting job results, and more.
Customers use CData solutions to access live NetSuite data from their preferred analytics tools, Power BI and Excel. They also use CData's solutions to integrate their NetSuite data into comprehensive databases and data warehouse using CData Sync directly or leveraging CData's compatibility with other applications like Azure Data Factory. CData also helps Oracle NetSuite customers easily write apps that can pull data from and push data to NetSuite, allowing organizations to integrate data from other sources with NetSuite.
For more information about our Oracle NetSuite solutions, read our blog: Drivers in Focus Part 2: Replicating and Consolidating ... NetSuite Accounting Data.
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 NetSuite OData services:
Connect to NetSuite
To work with NetSuite data from Microsoft Power Pivot, we start by creating and configuring a NetSuite connection. Follow the steps below to configure the API Server to connect to NetSuite data:
- First, navigate to the Connections page.
-
Click Add Connection and then search for and select the NetSuite connection.
π Selecting a data source (SQLite is shown)
-
Enter the necessary authentication properties to connect to NetSuite.
π Connecting to a datasource (SQLite is shown)
-
After configuring the connection, click Save & Test to confirm a successful connection.
Configure API Server Users
Next, create a user to access your NetSuite 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:
- On the Users page, click Add User to open the Add User dialog.
-
Next, set the Role, Username, and Privileges properties and then click Add User.
π Configure a new user
-
An Authtoken is then generated for the user. You can find the Authtoken and other information for each user on the Users page:
π API Server user settings
Creating API Endpoints for NetSuite
Having created a user, you are ready to create API endpoints for the NetSuite tables:
-
First, navigate to the API page and then click
Add Table
.
π Add tables
-
Select the connection you wish to access and click Next.
π Select the connection (SQLite is shown)
-
With the connection selected, create endpoints by selecting each table and then clicking Confirm.
π Adding tables from the connection (SQLite is shown)
Gather the OData Url
Having configured a connection to NetSuite 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:
π API Endpoints
Import NetSuite Tables in Power Pivot
Follow the steps below to import tables that can be refreshed on demand:
-
In Excel, click Data -> Get Data -> From Other Sources -> From OData Feed
π Starting the OData connection
-
In the OData feed connection, set the URL property to the OData Endpoint URL previously copied and click OK (e.g. "http://localhost:8080/api.rsc"):
π The URL of the OData endpoint for API Server
-
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:
π Authenticating with API Server
-
Select the tables that you would like to import into Excel and click Load
π Selecting tables (SQLite is shown)
-
After selecting and loading your table(s), you should see the data appear in an Excel spreadsheet. Now, click the Power Pivot tab on the ribbon, and then select Add to Data Model.
π Loading data into Power Pivot (SQLite is shown)
-
You can now work with your NetSuite data in Power Pivot.
π The Pivot Table that is consuming OData feeds from API Server. (SQLite is shown)
Free Trial & More Information
If you are interested in connecting to your NetSuite data (or data from any of our other supported data sources) from Microsoft Power Pivot, 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.