Establishing a Connection
The objects available within our connector are accessible from the "cdata.actcrm" module. To use the module's objects directly:
- Import the module as follows:
import cdata.actcrm as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("URL=https://myActCRMserver.com;User=myUser;Password=myPassword;ActDatabase=MyDB;")
Connecting to Act! CRM
You can connect to either Act! CRM or Act! Premium Cloud. Set the following to connect:
- User: The username used to authenticate to the Act! database.
- Password: The password used to authenticate to the Act! database.
- URL: The URL where the Act! CRM account is hosted. For example: http://serverName/.
- ActDatabase: The name of the Act! database you want to connect to. This is found by going to the About Act! Premium menu of your account, found at the top right of the page, in the ? menu. Use the Database Name in the window that appears.
- ActCloudName (Act! Premium Cloud only): The handle assigned to the Act! Premium Cloud account. It is found in the browser's address field when opening the online account, in the form https://eup1-iis-04.eu.hosted.act.com/ActCloudName.
Caching Metadata
Note that retrieving ActCRM metadata can be expensive. It is advised that you set the CacheMetadata property to store the metadata locally.