Get Ticket ID of a Request

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2017 12:31 AM
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
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2017 01:40 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2017 02:06 AM
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.