<?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 Re: How do I get a collection of operational layers from a QuickCapture Project? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-a-collection-of-operational-layers/m-p/1414002#M9922</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573916"&gt;@Dirk_Vandervoort&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try out the following. Note: This was performed in a Notebook in ArcGIS Pro 3.2, with API version 2.2.0.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
import json

## connect to agol
agol = GIS("home")

## get QC item
qcap_item = agol.content.get("ITEM_ID")

## You dont need to run this but look for qc.project.json file in list returned.
for resource in qcap_item.resources.list():
    print(resource)

## get json
qcap_json = qcap_item.resources.get("qc.project.json")

## print json
print(json.dumps(qcap_json, indent=4))
## or just get dataSources
print(json.dumps(qcap_json["dataSources"], indent=4))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 11:05:37 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2024-04-23T11:05:37Z</dc:date>
    <item>
      <title>How do I get a collection of operational layers from a QuickCapture Project?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-a-collection-of-operational-layers/m-p/1413762#M9918</link>
      <description>&lt;P&gt;Hello friends:&lt;/P&gt;&lt;P&gt;My question is: In the Python API, how do I get a collection of Operational Layers given a QuickCapture Project obtained in a query.&lt;/P&gt;&lt;P&gt;The objective is to do something with each operational layer in a QuickCapture Project Here is some code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    myQCs = gis.content.search(query="type: 'QuickCapture Project'", max_items=1000) # "QuickCapture Project" guarantees a QC Project
    for aQC in myQCs:
        qcProjectItem = gis.content.get(aQC.id)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, I can get the QuickCapture Project as a Python object. I am hoping I can use this object to obtain the operational layers. Unfortunately this is as far as the breadcrumbs lead.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notably: '&lt;/P&gt;&lt;LI-CODE lang="python"&gt;qcProjectItem.get_data()&lt;/LI-CODE&gt;&lt;P&gt;returns an empty object {}.&lt;/P&gt;&lt;P&gt;Here's hoping you can help.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 01:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-a-collection-of-operational-layers/m-p/1413762#M9918</guid>
      <dc:creator>Dirk_Vandervoort</dc:creator>
      <dc:date>2024-04-23T01:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a collection of operational layers from a QuickCapture Project?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-a-collection-of-operational-layers/m-p/1414002#M9922</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/573916"&gt;@Dirk_Vandervoort&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try out the following. Note: This was performed in a Notebook in ArcGIS Pro 3.2, with API version 2.2.0.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
import json

## connect to agol
agol = GIS("home")

## get QC item
qcap_item = agol.content.get("ITEM_ID")

## You dont need to run this but look for qc.project.json file in list returned.
for resource in qcap_item.resources.list():
    print(resource)

## get json
qcap_json = qcap_item.resources.get("qc.project.json")

## print json
print(json.dumps(qcap_json, indent=4))
## or just get dataSources
print(json.dumps(qcap_json["dataSources"], indent=4))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 11:05:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-a-collection-of-operational-layers/m-p/1414002#M9922</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-04-23T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a collection of operational layers from a QuickCapture Project?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-a-collection-of-operational-layers/m-p/1414097#M9924</link>
      <description>&lt;P&gt;My friend, you have been saving me a lot of work lately! Thank you so much.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 13:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-get-a-collection-of-operational-layers/m-p/1414097#M9924</guid>
      <dc:creator>Dirk_Vandervoort</dc:creator>
      <dc:date>2024-04-23T13:30:51Z</dc:date>
    </item>
  </channel>
</rss>

