Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Alternative to Sub-query using ROQL

$
0
0

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 

  1. Get the prod/cat id values of passed incident #
  2. Invoke RunAnalyticsReport (or fire another ROQL) by passing the id parameters and get the result

Thanks,

MB

Version

14.11

Viewing all articles
Browse latest Browse all 2504

Trending Articles