Getting the value of Catalog from Approval table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2018 07:04 AM
Hi All
For the RITM records in sysapproval_approver table, I'm trying to get the value of catalog that the item belongs to.
I'm using 'sysapproval.cat_item.sc_catalogs' (taskGR.addQuery('sysapproval.cat_item.sc_catalog','catalogs');) to get this value but that does not give me the correct value I guess because there is no change in the number of records queried after applying this filter.
Can anyone help me to know what query should be used to get the catalog name from sc_catalog table for a given approval record.
Thanks,
Nisha
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2018 09:52 AM
Can you post the current script you have now?
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2018 11:13 PM
Hello everyone,
The query that worked is:
taskGR.addEncodedQuery('sysapproval.ref_sc_req_item.u_request_type=PT');
The field u_request_type is created in sc_req_item table, and so we use the above syntax to access the reference table and field.
Thanks for all your replies.
Nisha