> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sync.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NetSuite SuiteAnalytics

export const CommonAuthSchemeBasic = ({siteName = "CData Sync", siteNameShort = "Sync", datasource = "the data source"}) => {
  return <>
      <p>To connect with your user credentials, set the following properties:</p>
      <ul>
        <li><strong>Auth Scheme:</strong> Select <strong>Basic</strong>.</li>
        <li><strong>User:</strong> Enter the username that you use to authenticate to your {datasource} account.</li>
        <li><strong>Password:</strong> Enter the password that you use to authenticate to your {datasource} account.</li>
      </ul>
    </>;
};

export const CommonDatasourceMoreInformation = ({datasource = "the data source", advancedurl = "", siteName = "CData Sync", driverVersion = ""}) => {
  return <>
      <p>
        For more information about interactions between {siteName} and {datasource}, see{' '}
        <a href={`https://cdn.cdata.com/help/${advancedurl}${driverVersion}/synch/default.htm`}>
          {datasource} Connector for {siteName}
        </a>.
      </p>
    </>;
};

export const CommonDatasourceAddConnector = ({datasource = "the data source", title = "the connector", destination = false, siteNameShort = "Sync"}) => {
  return <>
      <p>
        To enable {siteNameShort} to use data from {datasource}, you first must add the
        connector, as follows:
      </p>
      <ol>
        <li>Open the <strong>Connections</strong> page of the {siteNameShort} dashboard.</li>
        <li>Click <strong>Add Connection</strong> to open the <strong>Select Connectors</strong> page.</li>
        <li>
          Click the <strong>{destination ? "Destinations" : "Sources"}</strong> tab and locate
          the <strong>{title}</strong> row.
        </li>
        <li>
          Click the <strong>Configure Connection</strong> icon at the end of that row to open
          the <strong>New Connection</strong> page. This action opens the{' '}
          <strong>Add Connection</strong> dialog box.
          <br />
          <strong>Note:</strong> If the <strong>Configure Connection</strong> icon is not
          available, click the <strong>Download Connector</strong> icon to install
          the {title} connector.
        </li>
        <li>Enter a name for your connection in the <strong>Add Connection</strong> dialog box.</li>
        <li>Click <strong>Add</strong> to open the <strong>Settings</strong> tab for your connector.</li>
      </ol>
      <p>
        For more information about installing new connectors, see{' '}
        <a href="../connections">Connections</a>.
      </p>
    </>;
};

export const driverVersion = "M";

export const siteNameShort = "Sync";

export const siteName = "CData Sync";

export const datasource = "NetSuite SuiteAnalytics";
export const pageTitle = "NetSuite SuiteAnalytics";
export const advancedurl = "MB";

## Prerequisites

Before you can connect to {datasource}, you must set up SuiteAnalytics Connect in your NetSuite account:

1. Enable the Connect Service feature.
   1. Ensure that your Account Administrator has enabled your Account and Role with the Connect Service feature.
   2. Navigate to **Setup > Company > Enable Features**.
   3. Click the **Analytics** tab and check the **SuiteAnalytics Connect** box.
2. <a name="step2" />Add the **SuiteAnalytics Connect** permission to an existing Role.
   1. Navigate to **Setup > Users/Roles > User Management > Manage Roles**.
   2. Click **Customize** next to the name of the role for which you would like to add the SuiteAnalytics Connect permission.
   3. Click the **Setup** tab under the **Permissions** tab.
   4. Add the **SuiteAnalytics Connect** permission.
   5. Click **Add** and **Save**.
3. <a name="step3" />Verify the **Suite Analytics Connect** permissions.
   1. Find the **Settings** portlet on your home page and click **Set Up SuiteAnalytics Connect**.
   2. Click **Your Configuration** to view your service host and account ID information. These settings map directly to **Server** and **Account ID** connection properties.

## Add the NetSuite SuiteAnalytics Connector

<CommonDatasourceAddConnector datasource={datasource} title={pageTitle} destination={false} siteNameShort={siteNameShort} />

## Authenticate to NetSuite SuiteAnalytics

After you add the connector, you need to set the required properties.

* **Server:** Enter the value of **Service Host** you previously [found](#step3).
* **Account Id:** Enter the value of **Account Id** you previously [found](#step3).
* **Role Id:** Enter the Role ID you previously [updated](#step2).

{siteName} supports authenticating to {datasource} in several ways. Select your authentication method below to proceed to the relevant section that contains the authentication details.

* [**Basic**](#basic)
* [**Token**](#token) (default)

### Basic

<CommonAuthSchemeBasic siteName={siteName} siteNameShort={siteNameShort} datasource={datasource} />

### Token

To connect with a token, set the following properties:

* **Auth Scheme:** Select **Token**.
* **Consumer Key:** Enter the consumer key for the integration record. This key string was created when you created the integration record.
* **Consumer Secret**: Enter the consumer secret for the integration record. This secret string was created when you created the integration record.
* **Token Key:** Enter the token key that should be used to authenticate requests to the data source.
* **Token Secret:** Enter the token secret that should be used to authenticate requests to the data source.

## Complete Your Connection

To complete your connection:

1. Define advanced connection settings on the **Advanced** tab. (In most cases, though, you should not need these settings.)
2. Click **Create & Test** to create your connection.

## More Information

<CommonDatasourceMoreInformation datasource={datasource} advancedurl={advancedurl} siteName={siteName} driverVersion={driverVersion} />
