How to find related records using a Dynamic layer

Discussion created by stevel on Sep 26, 2011
Latest reply on Sep 30, 2011 by DSwingley-esristaff
The sample here shows how to find related records when working with a Feature layer, using queryRelatedFeatures.

Is it possible to find related records when using a Dynamic layer?

Ideally I'd want to hook this up to an Identify task, or a QueryTask, both of which would run when clicking on the map.