Gets the service request parameter value as part of a workflow.
For a description of the business object categories, see Notes on "Enabled For".
|Business Object Category||Yes/No|
|Business Rules: Before-Save Rules||Yes|
|Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load)||Yes|
|Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load)||Yes|
|Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load)||Yes|
|Business Rules: Editing Rules||Yes1|
|Business Rules: Initialization Rules||Yes|
|Business Rules: Read Only Rules||No|
|Business Rules: Required Rules||Yes1|
|Business Rules: Validation Rules||Yes|
|Quick Actions (except UI Quick Actions)||Yes|
|UI Quick Actions||No|
|Search/Dashboard without field references||Yes|
|Search/Dashboard with field references||No|
|1. Except when this field appears on a form or is triggered by such a field.|
|recId||The RecID of the service request instance.|
|parameterFieldName||The name of the service request field on the Parameter tab for which to return the value.|
The same type as the value of the parameterFieldName parameter. For example, if the parameterFieldName parameter is a DateTime value, this function returns a DateTime value.
$(GetSRPValue(RecId, "RequesterDepartment") != "IT")
Use the example above to retrieve the value of a parameter in a service request. In this example, the GetSRPValue function retrieves the RequesterDepartment parameter from the service request and determines if the requester is not in the IT department. This example might be used in a triggered action to send a notification to the user if they are not in IT and would therefore not see the service request as a normal course of business.
This function is often used in conjunction with the summary field of the service request to identify which service request is in use to know which parameters are available.