<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic The list of feature layers containing specific layers are not listed. in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/the-list-of-feature-layers-containing-specific/m-p/1136910#M7040</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have many feature service in my portal which contains 4 to 6 layers in each of them, I wanted to list all the feature service which contain a specific layer called&amp;nbsp;&lt;STRONG&gt;WETTBEWER&lt;/STRONG&gt; which is &lt;STRONG&gt;layer (0)&lt;/STRONG&gt; in all the feature services. I have the following code, but nothing is returned in the results, What Am I doing wrong ?? The specific process is done in the &lt;STRONG&gt;json_writer.py&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;**config.json**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"url": "&lt;A href="https://url/portal/" target="_blank"&gt;https://url/portal/&lt;/A&gt;",&lt;BR /&gt;"username": "user",&lt;BR /&gt;"password":"pass",&lt;BR /&gt;"query": "title: WETTBEWER",&lt;BR /&gt;"item_type": "Feature Service",&lt;BR /&gt;"max_items": 400&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**json_reader.py**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;import json&lt;BR /&gt;&lt;BR /&gt;class JsonReader:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; def __init__(self, filename):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.filename = filename&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def read_json_file(self):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; with open(self.filename) as file:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data = json.load(file)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return data&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; def get_config(self, config):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;loaded_json = self.read_json_file()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;config = loaded_json[config]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return config&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**portal_connection.py**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;&lt;BR /&gt;class PortalConnection:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; def __init__(self, url, username, password):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.url = url&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.username = username&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.password = password&lt;BR /&gt;&lt;BR /&gt;def connect(self, query, layer, max_items):&lt;BR /&gt;# Connection to ArcGIS Enterprise using a built-in account&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print("Portal for ArcGIS as a built in user")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; gis_portal = GIS(self.url, self.username, self.password)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print("Logged in as: " + gis_portal.properties.user.username)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return gis_portal, query, layer, max_items&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**Esri_api.py**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;class EsriApi:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def __init__(self, portal, item_type, query, max_items):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.item_type = item_type&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.query_ = query&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.portal = portal&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.max_items = max_items&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def query(self):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; api_query_result = self.portal.content.search(query=self.query_,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; item_type=self.item_type, max_items=self.max_items)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return api_query_result&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**json_writer.py**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;class JsonWriter:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def __init__(self,api_query_result):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.api_query_result = api_query_result&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def printResults(self):&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for item in self.api_query_result:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layers = item.layers&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for lyr in layers:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print(item.id, item.url, lyr.properties["id"],&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lyr.properties["name"])&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; except Exception as e:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print(e)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**Main.py**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;from json_reader import JsonReader&lt;BR /&gt;from portal_connection import PortalConnection&lt;BR /&gt;from esri_api import EsriApi&lt;BR /&gt;from json_writer import JsonWriter&lt;BR /&gt;&lt;BR /&gt;jreader = JsonReader('config.json')&lt;BR /&gt;url = jreader.get_config("url")&lt;BR /&gt;username = jreader.get_config("username")&lt;BR /&gt;password = jreader.get_config("password")&lt;BR /&gt;query = jreader.get_config("query")&lt;BR /&gt;layer = jreader.get_config("item_type")&lt;BR /&gt;max_items = jreader.get_config("max_items")&lt;BR /&gt;&lt;BR /&gt;con = PortalConnection(url, username, password)&lt;BR /&gt;portal, query, layer, max_items = con.connect(query, layer, max_items)&lt;BR /&gt;&lt;BR /&gt;esri_api = EsriApi(portal, layer, query, max_items)&lt;BR /&gt;results = esri_api.query()&lt;BR /&gt;&lt;BR /&gt;jsonWriter = JsonWriter(results)&lt;BR /&gt;jsonWriter.printResults()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the insights...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 25 Jan 2022 16:10:37 GMT</pubDate>
    <dc:creator>Aravinthkumar</dc:creator>
    <dc:date>2022-01-25T16:10:37Z</dc:date>
    <item>
      <title>The list of feature layers containing specific layers are not listed.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/the-list-of-feature-layers-containing-specific/m-p/1136910#M7040</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have many feature service in my portal which contains 4 to 6 layers in each of them, I wanted to list all the feature service which contain a specific layer called&amp;nbsp;&lt;STRONG&gt;WETTBEWER&lt;/STRONG&gt; which is &lt;STRONG&gt;layer (0)&lt;/STRONG&gt; in all the feature services. I have the following code, but nothing is returned in the results, What Am I doing wrong ?? The specific process is done in the &lt;STRONG&gt;json_writer.py&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;**config.json**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"url": "&lt;A href="https://url/portal/" target="_blank"&gt;https://url/portal/&lt;/A&gt;",&lt;BR /&gt;"username": "user",&lt;BR /&gt;"password":"pass",&lt;BR /&gt;"query": "title: WETTBEWER",&lt;BR /&gt;"item_type": "Feature Service",&lt;BR /&gt;"max_items": 400&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**json_reader.py**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;import json&lt;BR /&gt;&lt;BR /&gt;class JsonReader:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; def __init__(self, filename):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.filename = filename&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def read_json_file(self):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; with open(self.filename) as file:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data = json.load(file)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return data&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; def get_config(self, config):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;loaded_json = self.read_json_file()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;config = loaded_json[config]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return config&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**portal_connection.py**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;&lt;BR /&gt;class PortalConnection:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; def __init__(self, url, username, password):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.url = url&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.username = username&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.password = password&lt;BR /&gt;&lt;BR /&gt;def connect(self, query, layer, max_items):&lt;BR /&gt;# Connection to ArcGIS Enterprise using a built-in account&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print("Portal for ArcGIS as a built in user")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; gis_portal = GIS(self.url, self.username, self.password)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print("Logged in as: " + gis_portal.properties.user.username)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return gis_portal, query, layer, max_items&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**Esri_api.py**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;class EsriApi:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def __init__(self, portal, item_type, query, max_items):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.item_type = item_type&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.query_ = query&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.portal = portal&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.max_items = max_items&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def query(self):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; api_query_result = self.portal.content.search(query=self.query_,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; item_type=self.item_type, max_items=self.max_items)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return api_query_result&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**json_writer.py**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;class JsonWriter:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def __init__(self,api_query_result):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.api_query_result = api_query_result&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;def printResults(self):&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for item in self.api_query_result:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; layers = item.layers&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for lyr in layers:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print(item.id, item.url, lyr.properties["id"],&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lyr.properties["name"])&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; except Exception as e:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print(e)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;**Main.py**&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;from json_reader import JsonReader&lt;BR /&gt;from portal_connection import PortalConnection&lt;BR /&gt;from esri_api import EsriApi&lt;BR /&gt;from json_writer import JsonWriter&lt;BR /&gt;&lt;BR /&gt;jreader = JsonReader('config.json')&lt;BR /&gt;url = jreader.get_config("url")&lt;BR /&gt;username = jreader.get_config("username")&lt;BR /&gt;password = jreader.get_config("password")&lt;BR /&gt;query = jreader.get_config("query")&lt;BR /&gt;layer = jreader.get_config("item_type")&lt;BR /&gt;max_items = jreader.get_config("max_items")&lt;BR /&gt;&lt;BR /&gt;con = PortalConnection(url, username, password)&lt;BR /&gt;portal, query, layer, max_items = con.connect(query, layer, max_items)&lt;BR /&gt;&lt;BR /&gt;esri_api = EsriApi(portal, layer, query, max_items)&lt;BR /&gt;results = esri_api.query()&lt;BR /&gt;&lt;BR /&gt;jsonWriter = JsonWriter(results)&lt;BR /&gt;jsonWriter.printResults()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the insights...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 25 Jan 2022 16:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/the-list-of-feature-layers-containing-specific/m-p/1136910#M7040</guid>
      <dc:creator>Aravinthkumar</dc:creator>
      <dc:date>2022-01-25T16:10:37Z</dc:date>
    </item>
  </channel>
</rss>

