> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getCurrentChangeRequest

> The getCurrentChangeRequest operation retrieves a single Change\ Request record from ServiceNow. You must pass in the table name of the record you wan

The getCurrentChangeRequest operation retrieves a single Change\_Request record from ServiceNow. You must pass in the table name of the record you want to retrieve, and a Change Request must be present in the deployment or utility step to use this operation. It is not suitable for deployment through a release.

This operation is probably best suited for projects that require a Change Management Ticket. In other cases, the ticket will not be found.

This operation will return a result that is an array with one record in it.

> [!NOTE]
>
> You must configure at least one ServiceNow Instance to use this operation.

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>ServiceNow Instance Code</td><td>`FDSN_INSTANCE_CODE`</td><td>Yes</td><td>The instance Code of the ServiceNow Instance created under Topology that you will connect to.The URL, PORT, USERNAME, and PASSWORD are taken from the instance.</td></tr><tr><td>Request Media Type</td><td>`FDR_REQUEST_MEDIA_TYPE`</td><td>Yes</td><td>Choose to return the data in JSON or XML format.If you select JSON, then use JSONPATH notation in the path expression inputs(see [[https://github.com/json-path/JsonPath](https://github.com/json-path/JsonPath)](https://github.com/json-path/JsonPath))If you select XML, then use XPATH notation in the path expression inputs.</td></tr><tr><td>Fail workflow if http response code over 200</td><td>`FDSN_FAIL_IF_HTTP_CODE_OVER_200`</td><td>No</td><td>If true, any http code over 200 will fail the step and the workflow.</td></tr><tr><td>Path Expression 1</td><td>`FDSN_PATH_EXPRESSION_1`</td><td>No</td><td>Use XPATH or JSONPATH notation to return part of the response back to the workflow as `FDSN_OUTPUT_1`. See `FDR_REQUEST_MEDIA_TYPE` for more information</td></tr><tr><td>Path Expression 2</td><td>`FDSN_PATH_EXPRESSION_2`</td><td>No</td><td>Use XPATH or JSONPATH notation to return part of the response back to the workflow as `FDSN_OUTPUT_2`. See `FDR_REQUEST_MEDIA_TYPE` for more information</td></tr><tr><td>Path Expression 3</td><td>`FDSN_PATH_EXPRESSION_3`</td><td>No</td><td>Use XPATH or JSONPATH notation to return part of the response back to the workflow as `FDSN_OUTPUT_3`. See `FDR_REQUEST_MEDIA_TYPE` for more information</td></tr><tr><td>Path Expression 4</td><td>`FDSN_PATH_EXPRESSION_4`</td><td>No</td><td>Use XPATH or JSONPATH notation to return part of the response back to the workflow as `FDSN_OUTPUT_4`. See `FDR_REQUEST_MEDIA_TYPE` for more information</td></tr><tr><td>Path Expression 5</td><td>`FDSN_PATH_EXPRESSION_5`</td><td>No</td><td>Use XPATH or JSONPATH notation to return part of the response back to the workflow as `FDSN_OUTPUT_5`. See `FDR_REQUEST_MEDIA_TYPE` for more information</td></tr></tbody></table>

# Outputs

<table><colgroup><col /><col /><col /></colgroup><tbody><tr><th>**Output Name**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>`FDR_RESPONSE_CODE`</td><td>\
</td><td>Returns the integer HTTP response code such as 200, 400, 500.</td></tr><tr><td>`FDR_RESPONSE_STRING`</td><td>\
</td><td>Returns the complete JSON or XML response from the ServiceNow instance.</td></tr><tr><td>`FDSN_OUTPUT_1`</td><td>\
</td><td>Returns the value returned by `FDSN_PATH_EXPRESSION_1` if it is not null</td></tr><tr><td>`FDSN_OUTPUT_2`</td><td>\
</td><td>Returns the value returned by `FDSN_PATH_EXPRESSION_2` if it is not null</td></tr><tr><td>`FDSN_OUTPUT_3`</td><td>\
</td><td>Returns the value returned by `FDSN_PATH_EXPRESSION_3` if it is not null</td></tr><tr><td>`FDSN_OUTPUT_4`</td><td>\
</td><td>Returns the value returned by `FDSN_PATH_EXPRESSION_4` if it is not null</td></tr><tr><td>`FDSN_OUTPUT_5`</td><td>\
</td><td>Returns the value returned by `FDSN_PATH_EXPRESSION_5` if it is not null</td></tr></tbody></table>

# Artifacts

This operation doesn’t consume or produce any artifacts.

# Endpoint Selection

This operation will select all available endpoints associated to the Target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.

# Example

![image-20240604-105526.png](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596421222.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=a371780e425219c77451e39991f05d2e)
