Topic by MB
Content
Hi,
Since sub-queries aren't supported in ROQL, is there a way to meet the requirement where one wants to list all incidents where products and category is same as passed incident ref #? Something like
select ref_no from incident where prod_id=(
select prod_id from Incident where ref_no='xxxxxx-xxxxxx') and cat_id=(
select cat_id from Incident where ref_no='xxxxxx-xxxxxx')
Or one has to go through the code logic approach i.e
- Get the prod/cat id values of passed incident #
- Invoke RunAnalyticsReport (or fire another ROQL) by passing the id parameters and get the result
Thanks,
MB