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
11-29-2018 07:12 AM
I'm not sure I understand you code at all. But if you are querying the sysapproval_approver table you should can look at the approval_for field which is a reference to the sc_req_item table and from there you should be able to dot walk to item.name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2018 08:30 AM
Hi Brian,
The name for column 'Approval For' is sysapproval, so here I'm querying the sysapproval_approver table against sysapproval and dot walking to the item and from item I need to find the catalog for that the item belongs to.
so that is how I used dot walking here - sysapproval.cat_item.sc_catalog
Hope I'm clearer now.
Thanks,
Nisha

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2018 08:43 AM
Yes that sounds right is sysapproval is the approval_for column.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2018 09:39 AM