Getting the value of Catalog from Approval table

n20
Kilo Explorer

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

21 REPLIES 21

Can you post the current script you have now?


Please mark this response as correct or helpful if it assisted you with your question.

n20
Kilo Explorer

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