Get Ticket ID of a Request

Sandaru1
Tera Expert

Hi,

I'm in a need of creating a client script that uses the ticket id as a parameter. The procedure is as follow.

"Create New" order guide runs a workflow while submitting it . Wen i submit the order guide, it should pass its ticket id to the workflow as a parameter.

In this case how can i get the Ticket ID while submitting the order guide ?

Thanks and regards,

/Sandaru

2 REPLIES 2

amaradiswamy
Kilo Sage

Hi Pushpitha,



What is your exact requirement, you can get the ticket number by using current.sys_id and query the table sc_req_item.



Thanks and regards


Swamy


sagarsharma
Giga Guru

Hi Pushpitha,



You can retrieve your current record's ticket id by writing a small script in your workflow. You can use current.number or alternatively task.number to fetch your ticket number.



Regards,


Sagar Sharma



Hit like, helpful or correct depending on the impact.