<?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: item.groupDesignations and item.url (for web maps) not pulling information in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/item-groupdesignations-and-item-url-for-web-maps/m-p/1351567#M9314</link>
    <description>&lt;P&gt;I observe the same thing on my end. Perhaps the best course of action might be to open a case with Technical Support to gain a better understanding of when the groupDesignations and url property values are populated and what they are supposed to be. My guess is this functionality may just be broken and a defect should be logged.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the groups, maybe you can do:&lt;/P&gt;&lt;PRE&gt;", ".join([group.Title for group in item.shared_with["groups"]])&lt;/PRE&gt;&lt;P&gt;And this would handle cases where the an item is shared to multiple groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the WebMap url, if you're okay with linking to the Item Details page, then you can get that from "item.homepage". This will return something like:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'https://www.arcgis.com/home/item.html?id=d4d5c81e0ejkt4f68ac1aa77452a3338'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If, however, you're after a direct link to the map I think you'll need to do some string interpolation/concatenation. Something like this if you are using the new Map Viewer:&lt;/P&gt;&lt;PRE&gt;map_url = f"{gis.url}/apps/mapviewer/index.html?webmap={item.id}"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2023 21:32:26 GMT</pubDate>
    <dc:creator>EarlMedina</dc:creator>
    <dc:date>2023-11-21T21:32:26Z</dc:date>
    <item>
      <title>item.groupDesignations and item.url (for web maps) not pulling information</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/item-groupdesignations-and-item-url-for-web-maps/m-p/1351115#M9311</link>
      <description>&lt;P&gt;I am having trouble pulling specific set of properties from various items via the api.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a script that ingests a lists of jurisdictions and then creates a group, view layer, web map, and application (based on templates) for each jurisdiction. As part of the process I am also including an output table of all created items with their ids, url's, ownerFolder, title, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;All properties can be pulled successfully&amp;nbsp;&lt;STRONG&gt;with the exception of&lt;/STRONG&gt;&amp;nbsp;'groupDesignations' and the 'url' for web maps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Group Designations&lt;/U&gt;&lt;/P&gt;&lt;P&gt;It appears that however Esri has intended this to function the groups that an item is shared with is not recorded in the item's properties.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the item's JSON via the assistant below, where there are no values for groupDesignations (even though this is in fact shared).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SFM_TravisBott_1-1700259165026.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86447iDF94FB78F4B0FEC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SFM_TravisBott_1-1700259165026.png" alt="SFM_TravisBott_1-1700259165026.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And below, where there is a workaround to call it via .shared_with(), but it requires pulling it out of a list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SFM_TravisBott_0-1700259079507.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86446i107CFD9FDAE33594/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SFM_TravisBott_0-1700259079507.png" alt="SFM_TravisBott_0-1700259079507.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Web Map URL&lt;/U&gt;&lt;/P&gt;&lt;P&gt;How else can one pull the web map's URL? item.url pulls nothing. And scanning the item's JSON it doesn't appear that the URL that it lives at is stored anywhere. What other methods are there to capture and store the map's url in a table? (Calling .url for the other item types works just fine).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SFM_TravisBott_2-1700259312689.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86452i08498C7860EEA3C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SFM_TravisBott_2-1700259312689.png" alt="SFM_TravisBott_2-1700259312689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 22:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/item-groupdesignations-and-item-url-for-web-maps/m-p/1351115#M9311</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2023-11-17T22:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: item.groupDesignations and item.url (for web maps) not pulling information</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/item-groupdesignations-and-item-url-for-web-maps/m-p/1351567#M9314</link>
      <description>&lt;P&gt;I observe the same thing on my end. Perhaps the best course of action might be to open a case with Technical Support to gain a better understanding of when the groupDesignations and url property values are populated and what they are supposed to be. My guess is this functionality may just be broken and a defect should be logged.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the groups, maybe you can do:&lt;/P&gt;&lt;PRE&gt;", ".join([group.Title for group in item.shared_with["groups"]])&lt;/PRE&gt;&lt;P&gt;And this would handle cases where the an item is shared to multiple groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the WebMap url, if you're okay with linking to the Item Details page, then you can get that from "item.homepage". This will return something like:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'https://www.arcgis.com/home/item.html?id=d4d5c81e0ejkt4f68ac1aa77452a3338'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If, however, you're after a direct link to the map I think you'll need to do some string interpolation/concatenation. Something like this if you are using the new Map Viewer:&lt;/P&gt;&lt;PRE&gt;map_url = f"{gis.url}/apps/mapviewer/index.html?webmap={item.id}"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 21:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/item-groupdesignations-and-item-url-for-web-maps/m-p/1351567#M9314</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2023-11-21T21:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: item.groupDesignations and item.url (for web maps) not pulling information</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/item-groupdesignations-and-item-url-for-web-maps/m-p/1351588#M9315</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/86309"&gt;@EarlMedina&lt;/a&gt;&amp;nbsp;. Those are perfectly good workarounds and I'll use them instead.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a follow-up question, just out of curiosity around Esri as an organization. You work for them. You've observed the problem and acknowledge it as an issue. Why, then, is there not a more direct line to getting it fixed internally, seeing as you're part of the team? It doesn't make sense that I should now work with my administrator to open a case, wait to get a call back,&amp;nbsp;&lt;EM&gt;maybe&amp;nbsp;&lt;/EM&gt;get assigned a competent tech, just to log a bug that sits around and is never resolved. You're asking a customer who pays for this service to spend their time helping fix the thing that, based on the company's documentation, should already work.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 18:01:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/item-groupdesignations-and-item-url-for-web-maps/m-p/1351588#M9315</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2023-11-20T18:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: item.groupDesignations and item.url (for web maps) not pulling information</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/item-groupdesignations-and-item-url-for-web-maps/m-p/1351591#M9316</link>
      <description>&lt;P&gt;Hey, glad those workarounds help.&lt;/P&gt;&lt;P&gt;That's a fair question! The truth is, I'm just an enthusiast and I am in no way affiliated with the ArcGIS API for Python team. I understand your frustration - that's why I'm on these boards answering the questions I can as my time allows. Generally, it is preferable to open a case with Technical Support so the issue can be tracked both externally and internally. You may not be the only person running into this problem, so it is helpful to everyone to be able to add additional cases onto the defect log. Alternatively, you could post an issue on the public-facing github:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-python-api" target="_blank"&gt;https://github.com/Esri/arcgis-python-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You may or may not be able to get some more direct information on the expected behavior. In any case, it's still a good idea to log a formal defect and/or enhancement as the case may be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 18:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/item-groupdesignations-and-item-url-for-web-maps/m-p/1351591#M9316</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2023-11-20T18:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: item.groupDesignations and item.url (for web maps) not pulling information</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/item-groupdesignations-and-item-url-for-web-maps/m-p/1364740#M9461</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/106199"&gt;@SFM_TravisBott&lt;/a&gt;&amp;nbsp;- thanks for the great question and thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/86309"&gt;@EarlMedina&lt;/a&gt;&amp;nbsp;for the workarounds.&amp;nbsp; &amp;nbsp;For questions about the Python API and for help writing/using the code, this Esri Community is probably the best place to go.&amp;nbsp; As you might observe, the Community is very active in helping answer questions and has contributions both Esri internal staff and our customers.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that said, if you identify a bug or have an enhancement request, we do encourage you to submit it to our public facing github repo.&amp;nbsp; This is actively monitored by the team and we appreciate your ideas and feedback!&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-python-api/issues" target="_blank"&gt;https://github.com/Esri/arcgis-python-api/issues&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Nick Giner, Product Manager - ArcGIS API for Python&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 15:28:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/item-groupdesignations-and-item-url-for-web-maps/m-p/1364740#M9461</guid>
      <dc:creator>NicholasGiner1</dc:creator>
      <dc:date>2023-12-28T15:28:10Z</dc:date>
    </item>
  </channel>
</rss>

