ServiceMax connection
Introduction
A ServiceMax connection is configured using the ServiceMax connector, establishing access to the ServiceMax endpoint. Once a connection is established, you can configure one or more ServiceMax activities associated with that connection to be used either as a source to provide data to an operation or as a target to consume data in an operation. In addition, the ServiceMax connection can be used in scripts.
Note
This connector supports the Enable Re-authentication on Change organization policy. If enabled, a change to the Server Host or Username in this connection requires users to re-enter the Password and Security Token for the connection.
Create or edit a ServiceMax connection
A new ServiceMax connection is created using the ServiceMax connector from one of these locations:
- The design component palette's Project endpoints and connectors tab (see Design component palette).
- The Global Connections page (see Create a global endpoint in Global Connections).
An existing ServiceMax connection can be edited from these locations:
- The design component palette's Project endpoints and connectors tab (see Design component palette).
- The project pane's Components tab (see Component actions menu in Project pane Components tab).
- The Global Connections page (see Edit a global endpoint in Global Connections).
Configure a ServiceMax connection
Configuration of a ServiceMax connection includes these fields:
Tip
Fields with a variable icon support using global variables, project variables, and Jitterbit variables. Begin either by typing an open square bracket [
into the field or by clicking the variable icon to display a list of the existing variables to choose from.
-
Endpoint Name: Enter a name to use to identify the ServiceMax connection. The name must be unique for each ServiceMax connection and must not contain forward slashes (
/
) or colons (:
). This name is also used to identify the ServiceMax endpoint, which refers to both a specific connection and its activities. -
Server Host: Enter the URL of the Salesforce server. If you are using a production instance, leave the default URL as https://login.salesforce.com. If you are using a sandbox instance, select the Sandbox checkbox below.
-
Sandbox: If you are using a Salesforce sandbox instance, select this checkbox to toggle the Server Host field above to https://test.salesforce.com.
-
User Name and Password: Enter the username and password associated with the Salesforce account. A Salesforce account that does not have multi-factor authentication (MFA) enabled is required.
To configure a Salesforce account without MFA, make sure that the Permission Set assigned to the Salesforce system integration login does not have the selection Multi-Factor Authentication for API Logins. System integration login types are exempt from Salesforce's MFA requirement, as described by Salesforce in Is MFA required for my integration users? in their documentation Salesforce Multi-Factor Authentication FAQ.
-
Security Token: If required, enter the security token associated with the Salesforce account. Depending on your Salesforce security configuration, you may be able to clear this field. Check with your Salesforce administrator. For more information, see Salesforce documentation for Reset Your Security Token.
-
Test: Click to verify the connection using the provided credentials.
-
Save Changes: Click to save and close the connection configuration.
-
Discard Changes: After making changes to a new or existing configuration, click to close the configuration without saving. A message asks you to confirm that you want to discard changes.
-
Delete: After opening an existing connection configuration, click to permanently delete the connection from the project and close the configuration (see Component dependencies, deletion, and removal). A message asks you to confirm that you want to delete the connection.
Next steps
After a ServiceMax connection has been created, menu actions for that connection are accessible from the project pane's Components tab. See Connection actions menu for details.
After configuring a ServiceMax connection, you can configure one or more ServiceMax activities associated with that connection to be used either as a source to provide data to an operation or as a target to consume data in an operation, or you can use the ServiceMax connection in a script.
Configure activities
ServiceMax activities interact with the ServiceMax connection to act as sources (providing data within an operation) or targets (receiving data within an operation).
After configuring a ServiceMax connection, use the Show dropdown to filter on Endpoints, and then click the ServiceMax connection block to display activities that are available to be used with a ServiceMax connection:
For information, see these activities:
Standard ServiceMax activities
- Query: Queries data from a ServiceMax endpoint and is intended to be used as a source in an operation.
- Insert: Inserts new data in a ServiceMax endpoint and is intended to be used as a target in an operation.
- Update: Updates existing data in a ServiceMax endpoint and is intended to be used as a target in an operation.
- Upsert: Both updates existing data and inserts new data in a ServiceMax endpoint and is intended to be used as a target in an operation.
- Delete: Deletes data in a ServiceMax endpoint and is intended to be used as a target in an operation.
Bulk ServiceMax activities
ServiceMax bulk activities are faster and scale better than non-bulk ServiceMax activities, but should be used only if you do not need to use a transformation to change data prior to reaching the target.
- Bulk Query: Queries a large number of records from a ServiceMax endpoint and is intended to be used as a source in an operation.
- Bulk Insert: Inserts a large number of new records in a ServiceMax endpoint and is intended to be used as a target in an operation.
- Bulk Update: Updates a large number of existing records in a ServiceMax endpoint and is intended to be used as a target in an operation.
- Bulk Upsert: Both updates a large number of existing records and inserts a large number of new records in a ServiceMax endpoint and is intended to be used as a target in an operation.
- Bulk Delete: Deletes a large number of records from a ServiceMax endpoint and is intended to be used as a target in an operation. Deleted records are stored in the Salesforce Recycle Bin prior to being permanently deleted.
- Bulk Hard Delete: Hard deletes a large number of records from a ServiceMax endpoint and is intended to be used as a target in an operation. Hard deleted records automatically become eligible for deletion.
Using ServiceMax connections in scripts
ServiceMax connections can be referenced in a script using script functions that use a salesforceOrg
as a parameter:
-
LoginToSalesforceAndGetTimeStamp()
-
SalesforceLogin()
-
SetSalesforceSession()
-
SfCacheLookup()
-
SfLookup()
-
SfLookupAll()
-
SfLookupAllToFile()
For more details on referencing endpoints in scripts, see Endpoints on the Jitterbit Script page.