NetSuite OpenAir Connector

Anypoint Connector for NetSuite OpenAir is a closed source enterprise connector which provides a connection between OpenAir and third-party software. The OpenAir connector is a SOAP-based connector developed with Anypoint Connector DevKit 3.8.1.

Read through this user guide to understand how to set up and configure a basic flow using the connector. Track feature additions, compatibility, limitations and API version updates with each release of the connector using the OpenAir Connector Release Notes. Review the connector operations and functionality using the Connector ApiDoc Technical Reference and demo applications.

MuleSoft maintains this connector under the Select support policy.


To use this connector, you need:

  • A NetSuite OpenAir instance

  • A set of valid credentials, including username, password, companyID, api namespace and key.

  • A MuleSoft Enterprise License

This document assumes that you are familiar with Mule, Anypoint Connectors, and Anypoint Studio Essentials. To increase your familiarity with Studio, consider completing one or more Basic Studio Tutorial. This page assumes you understand Mule Concepts, Elements in a Mule Flow, and Global Elements.

We recommend you use the NetSuite OpenAir SOAP API Guide as you familiarize yourself with the connector.

OpenAir "complex types" are limited to a set of OpenAir operations. See the OpenAir guide to see the object types. You can see, for example, that object oaActualCost works with "read", "add", "modify", and "upsert" methods, while object oaApproval only works with the "submit" method.


The OpenAir connector is compatible with:

Application/Service Version

Mule Runtime

EE 3.7.0 or later

Anypoint Studio

5.3 or later



To Install this Connector

  1. In Anypoint Studio, click the Exchange icon in the Studio taskbar.

  2. Click Login in Anypoint Exchange.

  3. Search for the connector and click Install.

  4. Follow the prompts to install the connector.

When Studio has an update, a message displays in the lower right corner, which you can click to install the update.

To use the OpenAir connector in a production environment, you must have an Enterprise license to use Mule. Contact the MuleSoft Sales Team to obtain either of these. Read more about Installing an Enterprise License.

Hardware and Software Requirements

For hardware and software requirements, please visit Mule Hardware and Software Requirements page.

Connector Namespace and Schema

When designing your application in Studio, the act of dragging the connector from the palette onto the Anypoint Studio canvas should automatically populate the XML code with the connector namespace and schema location.

If you are manually coding the Mule application in Studio’s XML editor or other text editor, paste the Namespace and Schema Location into the header of your Configuration XML, inside the <mule> tag.



Schema Location

<mule xmlns:connector=""
  <flow name="yourFlow">

Using the Connector

See the full list of operations for the latest version of the connector here

Configuring the Global Element

To use the OpenAir connector in your Mule application, you must configure a global OpenAir element that can be used by the OpenAir connector (read more about Global Elements.) The OpenAir connector offers one global configuration, requiring the following credentials: Username, Password, Company ID, API Namespace, and API Key.

Field Description


Enter the username to log in to OpenAir.


Enter the corresponding password.

Company ID

Enter the provided companyID.

API Namespace

Enter the API Namespace provided by NetSuite OpenAir.


Enter the APIKey provided by NetSuite OpenAir

Connection Timeout

Default: 300

Read Timeout

Default: 270

openair config

To configure the OpenAir global element:

  1. Ensure you have included the following namespace in your configuration file:

  2. Create a global OpenAir configuration outside and above your flows, using the following global configuration code:

    <openair:config name="OpenAir__Configuration" company="${}" username="${openair.username}" password="${openair.password}" apiNamespace="${openair.apiNamespace}" apiKey="${openair.apiKey}" doc:name="OpenAir: Configuration"/>

To enable the automatic Reconnection feature:

  1. Access the OpenAir Global Element configuration window from Studio.

  2. Click on the "Reconnection" tab.

  3. Select the "Standard Reconnection" option.

  4. Adjust the "Frequency (ms)" and "Reconnection Attempts" fields accordingly.

After adding the Reconnection feature, the Configuration XML code should look like this:

<openair:config name="OpenAir__Configuration" company="${}" username="${openair.username}" password="${openair.password}" apiNamespace="${openair.apiNamespace}" apiKey="${openair.apiKey}" doc:name="OpenAir: Configuration">

Adding the OpenAir Connector to a Flow

  1. Drag and drop the OpenAir connector onto the canvas, then select it to open the properties editor.

  2. Configure the connector’s parameters by:

    • Selecting the OpenAir Configuration created earlier.

    • Select the operation from the Operation dropdown e.g. Add.

    • Select the oaObject to add to your NetSuite OpenAir instance, and the metadata gets generated consequently.

    • Set the "Request Reference" to #[payload]. openair add config

  3. Save your configurations.

Using the Connector in a Mavenized Mule App

If you are coding a Mavenized Mule application, this XML snippet must be included in your pom.xml file.


Replace x.x.x with the version that corresponds to the connector you are using.

To obtain the most up-to-date pom.xml file information, access the connector in Anypoint Exchange and click Dependency Snippets.

Demo Mule Applications Using Connector

Example Use Case

See the OpenAir connector "Add" operation in action.

openair use case flow
  1. Create a new Mule Project in Anypoint Studio

  2. Drag and drop an HTTP Listener onto the canvas and configure it to listen on port 8081.

  3. Drag and drop the OpenAir connector into the flow and configure the connector as described above. (The "Add" operation is selected as the demonstrated operation for this use case.)

  4. Drag and drop a Transform Message component between the HTTP connector and the OpenAir connector.

  5. Inside the component insert the DataWeave code below into the DataWeave editor. The script adds both oaCustomer objects to your NetSuite OpenAir instance.

    %dw 1.0
    %output application/xml
    %namespace ns0
    	ns0#ArrayOfoaBase: {
    		oaBase: {
    			oaCustomer: {
    				name: "James Bond",
            			company: "MuleSoft"
    			oaCustomer: {
    				name: "John Doe",
    				company: "Pepsi"
  6. Drag and drop another Transform Message component after the OpenAir connector, and insert the DataWeave script below into the Transform Message component’s DataWeave editor. The script should return the IDs of the newly added OpenAir objects.

    %dw 1.0
    %output application/json
    %namespace ns0
    	ID1: payload.ns0#ArrayOfUpdateResult.*updateResult[0].id,
    	ID2: payload.ns0#ArrayOfUpdateResult.*updateResult[1].id
  7. Save and run the project as a Mule Application by right-clicking the project name in the Package Explorer, selecting Run As > Mule Application.

  8. After hitting the HTTP endpoint you configured, your browser should display the following JSON:

        "ID1": "411",
        "ID2": "412"

Example Use Case Code

Paste this into Anypoint Studio to interact with the example use case application discussed in this guide.

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:mulexml=""
	xmlns:http="" xmlns:context=""
	xmlns:openair="" xmlns:dw=""
	xmlns="" xmlns:doc=""

	<openair:config name="OpenAir__Configuration" company="${}" username="${openair.username}" password="${openair.password}" apiNamespace="${openair.apiNamespace}" apiKey="${openair.apiKey}"  connectionTimeout="${openair.connectionTimeout}" readTimeout="${openair.readTimeout}" doc:name="OpenAir: Configuration"/>
	<context:property-placeholder location="" />
	<http:listener-config name="HTTP_Listener_Configuration"
	host="" port="8081" doc:name="HTTP Listener Configuration" />

	<flow name="openair-connector-addFlow">
		<http:listener config-ref="HTTP_Listener_Configuration"
		path="/" doc:name="HTTP" />
		<dw:transform-message doc:name="Transform Message">
		<dw:set-payload resource="addRequest.dwl" />
		<openair:add config-ref="OpenAir__Configuration" oaObject="OpenAir||add||oaCategory"
		doc:name="OpenAir" />
		<dw:transform-message doc:name="Transform Message">
		<dw:set-payload resource="addResponse.dwl" />