- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 11:52 PM
Hi developers, How to get catalog item sysid in runscript of workflow for that item. Any suggestions is appreciated. Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 12:21 AM
Yes,
Using current.sys_id will provide the sys_id of the record to which the workflow is attached. Typically, when a catalog item is submitted, a new record is created in the 'sc_req_item' table. To obtain the sys_id from the 'sc_req_item' table, you can use current.cat_item.
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 11:59 PM
I hope your workflow is on RITM table and you can get the sys_id of cat item as
current.cat_item
if your workflow is on sc_cat_item
You can use current.sys_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 12:01 AM - edited 11-30-2023 12:02 AM
Hi @Prince Arora thanks for quick reply, workflow is on catalog item so i can use current.sys_id as per the suggestion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 12:21 AM
Yes,
Using current.sys_id will provide the sys_id of the record to which the workflow is attached. Typically, when a catalog item is submitted, a new record is created in the 'sc_req_item' table. To obtain the sys_id from the 'sc_req_item' table, you can use current.cat_item.
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.