Transforming mapped fields
To access the Transformations pane
To access the Transformations pane while designing a new flow, perform the following step:
While mapping source fields to target fields, click the (transformations) icon.
The following illustration shows the Flow Designer point of access to the Transformations pane:
To access the Transformations pane while updating an existing flow, perform the following step:
In flow profile, in the field mapping section, click the (transformations) icon.
The following illustration shows the flow profile point of access to the Transformations pane:
In both cases, the transformations icon is active only if the field mapping is set to Source Fields, and one or more source fields are already added. If you select and save a transformation type for a flow, the icon gets highlighted in green: .
To transform a source value to a target value
By using this transformation type, you can transform a single source field's value to a mapped target field's value.
The following table provides an example of the Source value to target value transformation type and describes the steps to transform.
Example | Steps to transform |
---|---|
In a Helix ITSM-to-JIRA flow, you want the escalated ITSM issues to automatically have a high priority in the corresponding JIRA tickets, and non-escalated issues to have a low priority. To achieve this goal, you must set the Escalated?=Yes case to be mapped to Priority=High. Because the only other possible case is Escalated?= No, No is the default value and should be mapped to Priority=Low. The following image illustrates the preceding example: |
Note: If you select the Source value to target value transformation type, but include more than one source field, only the first source field is transformed. To transform multiple source fields, use the Multiple source values to target value transformation type. |
To transform multiple source values to a target value
By using this transformation type, you can transform multiple source fields' values to a single mapped target field's value.
The following table provides an example of the Multiple source values to target value transformation type and describes the steps to transform.
Example | Steps to transform |
---|---|
In a Helix ITSM-to-JIRA flow, you want an escalated user service request in BMC Helix ITSM to be assigned to a specific user; for example, to Allen Albrook, whose JIRA username is aalbrook. To achieve this goal, you must set Escalated?=Yes and Incident Type=User Service Request to be mapped to Assignee=aalbrook, The following image illustrates the preceding example: |
|
To transform a source value by using the string transformation functions
By using this transformation type, you can apply string functions to a source field's value.
The following table provides an example of the String transformation type and describes the steps to transform.
Example | Steps to transform |
---|---|
Important: Functions are applied to the source string in the order you enter them. For example, if you have substring(0,250) followed by replace(legacyProject,newProject), the first function returns the first 250 characters of the source string, and the second function returns any occurrences of legacyProject found within those 250 characters with newProject. If you want to reorder the functions, you should remove and re-add them in the required order. |
To set up configuration-specific transformations
By default, transformations in BMC Helix Integration Studio flows are connector-specific. This means that transformations are automatically applied to all flows that use a particular connector.
You can set up configuration-specific transformations. In this case, transformations are applied to each connector configuration separately. For example, you might want to create two separate flows that are using a JIRA connector. In a JIRA-to-Helix ITSM flow, you might not need any transformations. But, in a JIRA-to-Salesforce flow, you might need to apply transformations to several mapped fields. To achieve this goal, you can use separate connector configurations for JIRA.
To tie transformations to a connector configuration, you must select an existing custom schema instead of a default schema while creating a flow, as shown in the following illustration:
If a connector that you use while designing a flow does not have a custom schema, the original connector-specific transformation functionality is retained. For information about how to create a custom schema for a connector, see Generating-custom-schema-for-connectors.
To remove the transformations
- Access the Transformations pane.
- Next to the required source field, click the transformations icon.
- Next to a transformation that you want to remove, click the
icon.
The transformation is removed.