In this post, Rex Hansen provides a tip for determining the ID for a given layer: The SearchAttibutesTask and QueryAttributesTask controls are designed to use a layer ID to define the layer within a resource on which a query will execute. When both tasks