Pivotal Business Server 5.9
Pivotal Business Server is a customer relations management (CRM) system that enables you to access information using a Web Services interface. Using the Pivotal Business Server 5.9 connector, the integration platform can write to Pivotal Business Server tables. The Pivotal connector supports the following operations:
• Insert
• Update
• Upsert
• Delete
This connector sets field width in bytes. What actually varies is the number of characters that fit into a given field. For example, if a field width is 10 bytes and the encoding is Shift-JIS, the field can hold a minimum of 5 characters and a maximum of 10. This means that if you try to write 8 Japanese characters, data is truncated (the Kanji characters all take 2 bytes). For more details, see
Determining Field Width in Characters or Bytes.
Connectivity Pointers
• To connect to the Pivotal Business Server, enter the URL, Pivotal system name and your user ID and password, if needed.
• Before attempting to connect, verify that your path environment variable contains both the default installation directory and the Pivotal directory.
• The HTTP user ID and password are not required unless the Pivotal system you are connecting to has Basic Authentication enabled. If unsure of the security settings, ask your Pivotal system administrator.
• Fields marked Read Only can be mapped, but the value is not used by the Pivotal CRM system.
• When performing operations, the connector uses the primary key of the entity in the database, when referring to a field within an entity.
• When an entity references another entity, the ID field of the referenced entity, such as Customer_id, is used instead of the entity name.
• You must enable the API for your organization within Pivotal. In addition, you must configure security and install the Pivotal Business Server updates. For details, see Pivotal Server Administration.
Connector-Specific Notes
None.
Property Options
You can set the following source (S) and target (T) properties.
Target Schema
The Target Schema icon is active in the toolbar when Pivotal Business Server is the target connector.
The following options are applicable for Pivotal Business Server files.
Target Field Name
These are field names that appear in your target data table.
• If you are writing data to a new table, you may enter a name for each field.
• If you are writing data to an existing table, the field names default to field names in the selected table.
Length
These are field lengths in your data. If you need to change field lengths, reset them in the schema.
Caution! A field length shorter than the default may truncate data.
Data Types
The integration platform does not support ID field types. These following data types are supported:
• Boolean
• Date
• Double
• Float
• Integer
• String
• Text
Additional Information
Log File
The conversion log file contains the number of successful record operations performed, instead of the specific number of entities updated, deleted, and inserted.
Pivotal Record Relationships
The Pivotal Business Server connector maintains parent-child relationships by using the parent record ID. If the parent record ID is created from the previous data insertion, the connector supports the reuse of the record ID for the child record.
You can reuse record IDs by entering the designated escape sequence:
@xxxx*
The xxxx string represents the record layout name from which the desired record ID is returned. The record layout name is passed as a string value, so the value must be enclosed in double quotes before the designator is recognized by the connector.
Note: The designator only handles records with single, distinct record IDs. If more than one record ID is available for a record, then the designator does not process the record ID. This causes an error that you must handle.
Unicode Support
The Pivotal Business Server connector supports Unicode.
Check with your system administrator to verify that your Pivotal CRM system has Unicode support enabled.
Creating DJExport Objects for Writing Data
With the Pivotal Business Server connector, you can use a DJExport object to write data into the Pivotal CRM system.
Best practices around using DJExports include the following:
• Use the DJImport/DJExport wizard to build connection strings
• Use macro values when creating connection strings
• Use field names when adding data to the DJExport
• Make sure your connection string includes the table name
The following example shows the EZscript needed to create a DJExport object that writes data to Pivotal. DJExport objects can make reference to fields added to an object by using either the field number or the field name. This example illustrates referencing DJExport objects with field names.
'Create a new DJExport object instance
Dim PVTLExport As DJExport
'Create a new DJField object instance
Dim newField As DJField
'Initialize the DJExport object
Set PVTLExport = New DJExport "Pivotal Business Server"
'Create a new dummy field
Set newField = PVTLExport.newField
'Set the DJExport object connection string
connection = "Server=URLHERE;Database=SystemName;Table=Company;FlushFrequency=1;Batch Response=;Connection Type=ACTIVE FORM;Login Type=Active Client;Time Zone=Not Specified;Ignore Nulls=True;Debug Mode=False;Debug Directory= "
'Set the connection string
PVTLExport.ConnectString = connection
'Add data values to export object by field name - only use one field reference type
PVTLExport.Records(0).Fields("Account_Manager_Id") = "0000000000000001"
PVTLExport.Records(0).Fields("Address_1") = "123456 Test Ave"
PVTLExport.Records(0).Fields("City") = "TestCity"
PVTLExport.Records(0).Fields("Company_Name") = "TestCompany"
PVTLExport.Records(0).Fields("Country") = "US"
PVTLExport.Records(0).Fields("Currency_Id") = "0000000000000001"
PVTLExport.Records(0).Fields("Phone") = "1234567890"
PVTLExport.Records(0).Fields("State_") = "ST"
PVTLExport.Records(0).Fields("Type") = "Partner"
PVTLExport.Records(0).Fields("Zip") = "12345"
'Execute the import object
PVTLExport.PutRecord
'Destroy the export object
Set PVTLExport = nothing
Note: Adding the table is a manual process, as the DJExport object does not implicitly connect to a single table. Modify the connection string property by using EZscript to concatenate the table value to the end of the connection string.