I am trying to create a doclist based on a dynamic DQL.
Based on the object select I need to view the set of documents.
Below is the query I am using
select $value(r_object_id),$value(default_attributes) from dm_document where r_object_id in (select child_id from dm_relation where parent_id='$value(r_object_id)' and relation_name='D2 Workflow Document')
It does not resolve the $value(r_object_id) to the selected object's ID.