Database view - how to link sc_task and sc_req_item for survey

Vladi1
Kilo Guru

I am trying to create database view for surveys. I need to add catalog task table to the view and I need help with "Where Clause". Catalog task is needed to show "assignment group" and "assigned to".

Any advice is much appreciated.

Screen Shot 2017-04-14 at 09.09.00.png

1 ACCEPTED SOLUTION

thank you very much for you help. I added "parent" field to sc_task table and setup "Where Clause" to read ct_parent= ri_sys_id


View solution in original post

4 REPLIES 4

rlatorre
Kilo Sage

ct_request_item = ri_sys_id


Thank you for the reply. Unfortunately it does not work. It could be related to our settings...


Where clause in view u_catalog_task_survey_detail_vlady has an invalid field or a field that is not visible (ct_request_item)


What reference field on the sc_task table is the parent item (sc_req_item) stored on your instance?


thank you very much for you help. I added "parent" field to sc_task table and setup "Where Clause" to read ct_parent= ri_sys_id