Configuring The Advanced Provisioning, Configuration, And Simple Monitoring 401 Reference Application
All of the configuration for this web application is contained in the app/config.js file.
File Sections
The main sections of this file include:
- Settings — Configuration of timing between different API calls. Status is the number of seconds between calls.
- Color Configuration — Legacy configuration needed for Maps configured in TIBCO Scribe® Classic that may contain Connection configurations with an associated color.
- Connector ID’s — Unique IDs for specific Connectors. Connector IDs are documented in the in the TIBCO Scribe® help file for each Connector. See Connections in the TIBCO Scribe® help for a list of supported Connectors.
- Mapping — Provides an example of a formula in a field mapping between source and target datastores.
- Environment Specific — End Point, User Name, Password, Organization, Templates, etc.. These values should be configurable in a third party system. See the example below and the list of Project Variables for specific definitions.
Example
// Settings
var MAX_CHECK_FOR_OAUTH_CONN_PROPERTY_STATUS = 5;
var MAX_CHECK_FOR_OAUTH_CONN_TEST_STATUS = 5;
var MAX_ROWS_TO_RETURN = 300;
// Color for connection
var DEFAULT_COLOR_CONNECTION = "#FF00B050";
// Connector IDs
var ELOQUA_BULK_CONNECTOR_ID = "9a84503b-af2a-489a-ac0a-778eeeb83fc2";
var SALESFORCE_CONNECTOR_ID = "8add76fc-525f-4b4b-b79e-945a6a762792";
var SUGARCRM_CONNECTORID = "7C20E33D-DC9C-46BF-B406-796069AA486D";
var MARKETO_REST_CONNECTORID = "B806E821-BECF-4B43-AC66-1B2E20B9241E";
var SAMPLE_CRM_CONNECTORID = "F1583145-6127-4CF5-B33B-1C5479FBBF19";
var SAMPLE_MARKETING_CONNECTORID = "23E22424-47E4-4500-B202-B5553D747518";
// Mapping
var CHOOSE_BY_VAL_FORMULA = "CHOOSEBYVAL";
/***************** Environment specific settings *******************/
/* Sandbox Environment */
var APIURL = "https://sbapi.scribesoft.com/v1/orgs/";
// API credentials
var APIUSERNAME = "someone@scribesoft.com";
var APIPASSWORD = "*******";
// Org and solution information
var PARENTORGID = 1234;
var TEMPLATECHILDORG = 5678;
var SAMPLE_CRM_MARKETING_SOLUTION_TEMPLATE = "ced62ad7-048f-4c65-a554-15d7b001a55e";
var ELOQUABULK_SALESFORCEBULK_SOLUTION_TEMPLATE = "N/A";
var SUGARCRM_MARKETO_SOLUTION_TEMPLATE = "N/A";
var SOURCE_BLOCK_TYPE = "Query";
var SOURCE_BLOCK_NAME = "Marketing_Leads";
var TARGET_BLOCK_TYPE = "Insert";
var TARGET_BLOCK_NAME = "CRM_LeadCreate";
/* End Sandbox Environment */
Project Variables
The following variables need to be set correctly to successfully run the application:
- APIUSERNAME — Username assigned to you to access the TIBCO Scribe® API.
- APIPASSWORD — Password for accessing the TIBCO Scribe® API.
- APIURL — URL for the TIBCO Scribe® API based on the environment that you are using. The config.js file is currently pointing at the TIBCO Scribe® Production environment.
Important: The APIURL variable includes the /v1/orgs/ portion. For example, for the Production environment, the variable should be set to: https://api.scribesoft.com/v1/orgs/
- PARENTORGID — Parent Organization ID. Any new child Organizations are created under this ID.
- TEMPLATECHILDORG — Template child Organization containing Solutions that can be cloned to any new Organization as it is being created.
- SAMPLE_CRM_MARKETING_SOLUTION_TEMPLATE — ID of the SampleCRM <-> SampleMarketing Solution Template to clone from the Template child Organization.
- SOURCE_BLOCK_TYPE — Source Block type in the Solution’s Map. This Block type represents the operation being executed in the Map on the Source datastore, such as Query.
- SOURCE_BLOCK_NAME — Name of the Source Block in the Solution’s Map.
- TARGET_BLOCK_TYPE — Target Block type in the Solution’s Map. This Block type represents the operation being executed in the Map on the Target datastore, such as Create.
- TARGET_BLOCK_NAME — Name of the Target Block in the Solution’s Map.
See
Advanced Provisioning, Configuration, And Simple Monitoring 401
Deploying The Advanced Provisioning, Configuration, And Simple Monitoring 401 Reference Application