Skip to main content

Prerequisites

The SuiteCRM V8 API uses OAuth for authentication, so the OAuthClient and OAuthPassword authentication methods require a custom OAuth application. If you are connecting to the SuiteCRM V4.1 API with the Basic authentication method, you can skip this section. A SuiteCRM administrator must create and register the custom OAuth application. To create a custom OAuth application in SuiteCRM, follow these steps:
1
Log in to your SuiteCRM account with administrative credentials.
2
In the Profile dropdown, select Admin > OAuth2 Clients and Tokens.
3
Click New Client Credentials Client (for the OAuthClient method) or New Password Client (for the OAuthPassword method).
4
Enter a Name and a Secret for the application, then click Save.
5
Retrieve the generated client ID and client secret. You enter these values as the OAuth Client Id and OAuth Client Secret in the setup steps below.
Users who authenticate with the OAuthClient (client credentials) grant type have full access to the API. Users who authenticate with the OAuthPassword grant type require permissions for each module or table they access.

Setup Guide

Follow these steps to connect SuiteCRM to your Connect AI account:
1
Open the Sources page of the Connect AI navigation menu.
2
Click + Add Connection in the upper-right corner.
3
Type SuiteCRM into the search field, then click the data source name.
4
On the Basic Settings tab of the new connection, enter a connection name or keep the default name.
5
Enter the URL of your SuiteCRM account, for example http://your-suitecrm-instance.com.
6
Select the Schema that matches your SuiteCRM API version: suitecrmv4 for the SuiteCRM V4.1 API or suitecrmv8 for the SuiteCRM V8 API.
7
Select the Auth Scheme to use when connecting to SuiteCRM, then follow the instructions in the relevant section below.

Authentication

1
Confirm that the Schema is set to suitecrmv4. The Basic authentication method is supported only for the SuiteCRM V4.1 API.
2
Enter the User, the authenticating user’s Id.
3
Enter the Password for that user.
4
At the top of the Connect AI Add Connection page, click Save & Test.
  • If the connection test succeeds, a Connection successfully saved message appears, indicating that your connection has been created. The Status on the Edit Connection page also changes to Authenticated. View the data model of your successful connection in the right pane of the Edit Connection page, in the Data Model tab.
  • If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. Connect AI displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the Sign in button. Correct the errors and try again.
  • Unsuccessful connections are saved as drafts and have a Status of Not Authenticated. You can return to the connection and authenticate it later.

More Information

For more information about interactions between Connect AI and SuiteCRM, see this information page.