SQL CRM configuration
Note
The CRM Connector needs assigned by AnywhereNow. It is important to note that only one CRM Connector can be active per tenant at a time.
In order to load your SQL information into the AnywhereNow WebAgent, you'll need to configure the connection.
Before we can begin the configuration process, we need to prepare SQL. Follow these steps:
Dependencies
-
A SQL Server environment
-
A SQL database
-
A SQL user with the necessary permissions to connect to the database and select data
Create tables in SQL Database
Because the CRM connection uses a default configuration to retrieve information from the SQL database, because of this you first need to deploy tables.
-
Open Microsoft SQL Server Management Studio (SSMS) (Download SQL Server Management Studio (SSMS))
or
Azure Data Studio (Download and install Azure Data Studio - Azure Data Studio)
-
Connect to Server / Instance where the SQL Database is located.
-
Navigate to the SQL Database
-
Right Click Database
-
Select New Query
-
Paste the following SQL code:
CopySQLIF OBJECT_ID(N'dbo.Case', N'U') IS NULL
CREATE TABLE [dbo].[Case](
[Id] [nvarchar](max) NOT NULL,
[ContactId] [nvarchar](max) NOT NULL,
[Description] [nvarchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
IF OBJECT_ID(N'dbo.[Contact]', N'U') IS NULL
CREATE TABLE [dbo].[Contact](
[Id] [nvarchar](max) NOT NULL,
[Firstname] [nvarchar](max) NULL,
[Lastname] [nvarchar](max) NULL,
[Skill] [nvarchar](max) NULL,
[Birthdate] [datetime] NULL,
[Location] [nvarchar](max) NULL,
[PhoneNumber] [nvarchar](max) NULL,
[Email] [nvarchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO -
Execute the Query (F5 or Run)
-
Validate the outcome. By checking the Messages tab you can see if query was executed successfully.
Configure CRM Connection in the Admin Portal
Follow these steps to configure the CRM connection in the admin portal:
-
Navigate to the CRM Configuration tab.
-
Enter the following information in the corresponding fields:
-
In the "Connection string" field, enter the connection string to connect to SQL.
CopyExample connectionstringServer=tcp:<server>.database.windows.net,1433;Initial Catalog=<database-name>;User ID=<username>;Password=<password>
-
-
Once all the field have been populated, click "Save" to save your SQL connector configuration.