Get Current ticket sysid in uipath

Hi all,

I need assistance with following.

I have integrated service now with UiPath via integration service. But the issue is I was feeding sysid manually.

I need to get current incident sysid that I am submitting in the UiPath flow. Is there a way to get dynamic sysid in the workflow?

Bhavani Srinivasan

Hi @Kalki

Yes, there is a way to obtain the dynamic sysid (incident sysid) within your UiPath workflow when integrating with ServiceNow.

To achieve this, you can follow these steps:

  1. After submitting the incident to ServiceNow, you can use the “Get Output Properties” activity in UiPath to retrieve the response from the integration service.
  2. The response obtained from the integration service will typically contain information about the created incident, including the sysid. You can extract the sysid from the response using JSON manipulation techniques.
  3. Use the appropriate JSON activities in UiPath (such as Deserialize JSON or Deserialize JSON Array) to parse the response and extract the sysid value.
  4. Once you have extracted the sysid, you can store it in a variable for further use within your workflow or pass it to other activities as needed.


Sure, will try that and update here @Nitya1


1 Like

Hi ,

Could you tell me how to get the activity?
I could not find the activity from studio and the package, get output properties.


hi @Kalki

  1. Make sure you have a variable defined to store the sysid. Let’s call it incidentSysID.
  2. After submitting the incident to ServiceNow, you can use the “Get Output” activity to retrieve the dynamic sysid.
  3. In the properties panel of the “Get Output” activity, set the following values:
  • Target: Select the ServiceNow integration service you have configured.
  • Output: Select the variable incidentSysID where you want to store the sysid.
  1. Specify the correct output property in the Output field. The specific property will depend on the response structure returned by the ServiceNow integration service. For example, if the sysid is returned as part of the “Create Incident” response, the output property might be responseContent.result.sys_id.
  2. After executing the “Get Output” activity, the sysid will be stored in the incidentSysID variable. You can use this variable later in your workflow as needed.

By retrieving the sysid dynamically in this manner, you won’t have to manually input it in the workflow. Instead, it will be obtained from the ServiceNow integration service response and stored in the incidentSysID variable for further use within the UiPath flow.

Hope it helps!!

Thank you so much for quick response… I got it, the dynamic sysid and able to update ticket as well.

Bhavani Srinivasan

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.