Create a transform in Service Exchange for Providers (legacy)
As a provider, create a transform in the Service Exchange for Providers application so that you can integrate tasks between a ServiceNow instance with your customer's instance.
Before you begin
Role required: admin
Procedure
- If you selected Simple, click New in the
Transform lines related list, and fill in the fields on the form.
Table 2. Transform lines form Field Description Provider label Option that designates the provider's choice label. For example, Open. Provider value Option that designates the provider's choice value. For example, 10. Customer label Option that designates the customer's choice label. For example, Progress. Customer value Option that designates the customer's choice value. For example, 2. - Click Submit.
- If you selected Simple, click New in the
Transform lines related list, and fill in the fields on the form.
- If you selected Advanced, use a script to define the outbound and inbound labels and values as shown in the following example:
output.value=input.value; output.label=input.label; var ci=new GlideRecord('cmdb_ci'); if(direction=='inbound'){ if(ci.get('correlation_id',input.value)){ output.value=ci.sys_id+"; output.label=ci.getDisplayValue(); } } if (direction=='outbound'){ if(ci.get(input.value)){ if(ci.correlation_id){ output.value=ci.correlation_id+"; output.label=input.label; } } } - Click Submit.
- If you selected Advanced, use a script to define the outbound and inbound labels and values as shown in the following example:
Result
A transform record is created on your ServiceNow® instance. Any Remote Task's inbound or outbound fields that match a transform will automatically use them. To learn more, see Create remote task definitions in Service Exchange for Providers (legacy).