Add Custom JavaScript
Custom fields may require more than static text or a direct mapping of a field value. Advanced custom fields that need more flexibility may require that you enter custom code.
Do the following to create custom fields using custom JavaScript code:
Follow these steps:
The CA Process Automation Client application starts.
The Folders pane opens.
The CreateTicket page opens.
For more information about the pane, see Configure Processes for HP Service Manager Integration (Configure Processes for BMC Remedy Integration, Configure Processes for HP Service Manager Integration).
Note: If the icon labels do not display, select Edit User Preferences, select Show icon information on the Configuration tab and click OK.
The Check Out icon is disabled and the process is checked out. Custom fields are stored as Keys and Value arrays.
The Properties of 'CreateHPSMParameters' pane opens.
The Source code page opens. This page contains the code that stores all of the custom field properties into the Process.keys variable and all of the custom field property values into Process.Values. These variables are used in the custom code.
The Properties of UserAddedCustom*Code pane opens.
The Source Code page opens.
The delimited string is of the format Property1=Value1<delimiter>Property2=Value2. By default the delimiter is &&.
Note: For available variables, see CA Process Automation HP Service Manager Gateway Variables (CA Process Automation Remedy Connector Variables, CA Process Automation HP Service Manager Gateway Variables).
The Source code pane closes and the code is saved.
The custom code is added to the process.
The Properties of 'Create_HP_SM_Incident' pane opens.
The variables are saved in the create incident process.
The Versions page opens.
The modified process is checked in.
|
Copyright © 2013 CA.
All rights reserved.
|
|