AnsweredAssumed Answered

How to build URL query parameters in Web AppBuilder  for layer inside a group

Question asked by jsn on Jan 7, 2020
Latest reply on Jan 14, 2020 by jsn

Hello everyone,


I want to query a layer that is inside a group in a Web Map. I tried to follow the samples to query the first layer in the group, in ths case id="0".   This s the link I am following to build the URL query: -  but because the layer is in a group I am not able to make the query work.


Samples I have done:, PROJECTID='22209'

 or, PROJECTID='22209'



I do not know how to correctly build an url string with query parameters when the layer is in a group.

In this case the layer has  "id": 0,  


This is how the config,json file has the layers listed.


Config file.

            "id": "MyGroup_4686",     ********************************************  THIS IS THE GROUP
            "layerType": "ArcGISMapServiceLayer",
            "url": "https://................../MapServe",
            "visibility": true,
            "visibleLayers": [
            "opacity": 1,
            "title": "Projects",
            "layers": [
                    "id": 0,                   ********************************************* THIS IS THE LAYER I WANT TO SEARCH

                    "id": 1,
   "popupInfo": {
                        "title": "Future  Projects",