<?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 General Question about Getting Item Information in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/general-question-about-getting-item-information/m-p/824191#M2949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting into ArcGIS API for Python,and I have a general, hand-wavy kind of question. Why do layers sometimes have certain information and sometimes don't?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the "layerDefinition" object has a property called,"fields."&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/web-map-specification/objects/layerDefinition/"&gt;https://developers.arcgis.com/web-map-specification/objects/layerDefinition/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my code below, I can get a layer definition for a feature layer, but there is no "fields" attribute. I can get the field names through the popupInfo.fieldInfos property, but I'm confused by why the "fields" attribute just doesn't seem to be there. I won't go into details, but I'm finding the properties associated with objects are inconsistently available. I have another notebook that I had to add a few lines to test for the property because some objects had it and some didn't. All the same type object. It lists field names and ALL layers I was checking do have fields, some just didn't have that information in there JSON file and some did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this question is too general, I can focus, but I think I'm missing a general concept and a (simple?) explanation would help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy McGregor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/441407_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Apr 2019 13:28:18 GMT</pubDate>
    <dc:creator>RandyMcGregor_Home</dc:creator>
    <dc:date>2019-04-06T13:28:18Z</dc:date>
    <item>
      <title>General Question about Getting Item Information</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/general-question-about-getting-item-information/m-p/824191#M2949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting into ArcGIS API for Python,and I have a general, hand-wavy kind of question. Why do layers sometimes have certain information and sometimes don't?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the "layerDefinition" object has a property called,"fields."&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/web-map-specification/objects/layerDefinition/"&gt;https://developers.arcgis.com/web-map-specification/objects/layerDefinition/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my code below, I can get a layer definition for a feature layer, but there is no "fields" attribute. I can get the field names through the popupInfo.fieldInfos property, but I'm confused by why the "fields" attribute just doesn't seem to be there. I won't go into details, but I'm finding the properties associated with objects are inconsistently available. I have another notebook that I had to add a few lines to test for the property because some objects had it and some didn't. All the same type object. It lists field names and ALL layers I was checking do have fields, some just didn't have that information in there JSON file and some did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this question is too general, I can focus, but I think I'm missing a general concept and a (simple?) explanation would help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy McGregor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/441407_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2019 13:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/general-question-about-getting-item-information/m-p/824191#M2949</guid>
      <dc:creator>RandyMcGregor_Home</dc:creator>
      <dc:date>2019-04-06T13:28:18Z</dc:date>
    </item>
  </channel>
</rss>

