<?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 Fetch the group content items. in Kotlin Maps SDK Questions</title>
    <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/fetch-the-group-content-items/m-p/1305475#M85</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have tried the below code to fetch the group info. Which was successful. But I couldn't able to fetch the contents of the Group.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;portalQueryParameters =&lt;BR /&gt;    PortalQueryParameters(&lt;SPAN&gt;query = &lt;/SPAN&gt;getString(R.string.&lt;SPAN&gt;group_id&lt;/SPAN&gt;), &lt;SPAN&gt;limit = &lt;/SPAN&gt;&lt;SPAN&gt;20 &lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;groups = &lt;SPAN&gt;portal&lt;/SPAN&gt;.findGroups(portalQueryParameters)&lt;/PRE&gt;&lt;P&gt;I can fetch the group info such as Title which is all good. but I tried to below codes to fetch the item of a particular group based on Id.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;groupId = groups.getOrNull()?.&lt;SPAN&gt;results&lt;/SPAN&gt;?.get(&lt;SPAN&gt;0&lt;/SPAN&gt;)?.&lt;SPAN&gt;id&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;portalGroupContentSearchParameters = PortalGroupContentSearchParameters.query(&lt;SPAN&gt;query = &lt;/SPAN&gt;groupId ?: &lt;SPAN&gt;""&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;items = groups.getOrNull()?.&lt;SPAN&gt;results&lt;/SPAN&gt;?.get(&lt;SPAN&gt;0&lt;/SPAN&gt;)?.findItems(portalGroupContentSearchParameters)&lt;/PRE&gt;&lt;P&gt;Is that something I am missing. result is success but the item count is 0. But I can view the content items from a ArcGIS web login. I can see 2 items.&lt;BR /&gt;&lt;BR /&gt;I also tried the below code snippet. Items are 0.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;portalQueryParameters =&lt;BR /&gt;    PortalQueryParameters(&lt;SPAN&gt;query = &lt;/SPAN&gt;getString(R.string.&lt;SPAN&gt;group_id&lt;/SPAN&gt;), &lt;SPAN&gt;limit = &lt;/SPAN&gt;&lt;SPAN&gt;20 &lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;items = &lt;SPAN&gt;portal&lt;/SPAN&gt;.findItems(portalQueryParameters)&lt;/PRE&gt;&lt;P&gt;Is that something related to user access to group items?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Need your help in understanding the flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2023 02:18:40 GMT</pubDate>
    <dc:creator>DeepamPalaniswami</dc:creator>
    <dc:date>2023-07-04T02:18:40Z</dc:date>
    <item>
      <title>Fetch the group content items.</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/fetch-the-group-content-items/m-p/1305475#M85</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have tried the below code to fetch the group info. Which was successful. But I couldn't able to fetch the contents of the Group.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;portalQueryParameters =&lt;BR /&gt;    PortalQueryParameters(&lt;SPAN&gt;query = &lt;/SPAN&gt;getString(R.string.&lt;SPAN&gt;group_id&lt;/SPAN&gt;), &lt;SPAN&gt;limit = &lt;/SPAN&gt;&lt;SPAN&gt;20 &lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;groups = &lt;SPAN&gt;portal&lt;/SPAN&gt;.findGroups(portalQueryParameters)&lt;/PRE&gt;&lt;P&gt;I can fetch the group info such as Title which is all good. but I tried to below codes to fetch the item of a particular group based on Id.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;groupId = groups.getOrNull()?.&lt;SPAN&gt;results&lt;/SPAN&gt;?.get(&lt;SPAN&gt;0&lt;/SPAN&gt;)?.&lt;SPAN&gt;id&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;portalGroupContentSearchParameters = PortalGroupContentSearchParameters.query(&lt;SPAN&gt;query = &lt;/SPAN&gt;groupId ?: &lt;SPAN&gt;""&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;items = groups.getOrNull()?.&lt;SPAN&gt;results&lt;/SPAN&gt;?.get(&lt;SPAN&gt;0&lt;/SPAN&gt;)?.findItems(portalGroupContentSearchParameters)&lt;/PRE&gt;&lt;P&gt;Is that something I am missing. result is success but the item count is 0. But I can view the content items from a ArcGIS web login. I can see 2 items.&lt;BR /&gt;&lt;BR /&gt;I also tried the below code snippet. Items are 0.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;portalQueryParameters =&lt;BR /&gt;    PortalQueryParameters(&lt;SPAN&gt;query = &lt;/SPAN&gt;getString(R.string.&lt;SPAN&gt;group_id&lt;/SPAN&gt;), &lt;SPAN&gt;limit = &lt;/SPAN&gt;&lt;SPAN&gt;20 &lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;items = &lt;SPAN&gt;portal&lt;/SPAN&gt;.findItems(portalQueryParameters)&lt;/PRE&gt;&lt;P&gt;Is that something related to user access to group items?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Need your help in understanding the flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 02:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/fetch-the-group-content-items/m-p/1305475#M85</guid>
      <dc:creator>DeepamPalaniswami</dc:creator>
      <dc:date>2023-07-04T02:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the group content items.</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/fetch-the-group-content-items/m-p/1305627#M86</link>
      <description>&lt;P&gt;Hi ArcGIS,&lt;/P&gt;&lt;P&gt;I am able to fetch all the items in the group passing empty string in PortalGroupContentSearchParameters.&lt;/P&gt;&lt;P&gt;Thanks for your support. refer below code snippet if anyone needs to know.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;portalGroupContentSearchParameters = PortalGroupContentSearchParameters.query(&lt;SPAN&gt;""&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;val &lt;/SPAN&gt;items = groupinfo?.&lt;SPAN&gt;results&lt;/SPAN&gt;?.get(&lt;SPAN&gt;0&lt;/SPAN&gt;)?.findItems(portalGroupContentSearchParameters)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 01:06:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/fetch-the-group-content-items/m-p/1305627#M86</guid>
      <dc:creator>DeepamPalaniswami</dc:creator>
      <dc:date>2023-07-05T01:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the group content items.</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/fetch-the-group-content-items/m-p/1306253#M88</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am glad you found a workaround. To query specifically for your group items, you can use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;val groupId: String = ...&lt;BR /&gt;val &lt;/SPAN&gt;portalGroupContentSearchParameters = PortalGroupContentSearchParameters.query(&lt;SPAN&gt;"id:$groupId"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is documentation on the query syntax &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 16:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/fetch-the-group-content-items/m-p/1306253#M88</guid>
      <dc:creator>SorenRoth</dc:creator>
      <dc:date>2023-07-06T16:38:41Z</dc:date>
    </item>
  </channel>
</rss>

