<?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 Get portal item in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-portal-item/m-p/379908#M35260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I get a portal item in JSAPI? I have a url to my portal and also the item id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Silverlight API has a ESRI.ArcGIS.Client.WebMap.WebMap.FromPortalItemAsync utility function which works great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anything similar in JSAPI?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2013 22:10:49 GMT</pubDate>
    <dc:creator>danbonab</dc:creator>
    <dc:date>2013-11-19T22:10:49Z</dc:date>
    <item>
      <title>Get portal item</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-portal-item/m-p/379908#M35260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I get a portal item in JSAPI? I have a url to my portal and also the item id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Silverlight API has a ESRI.ArcGIS.Client.WebMap.WebMap.FromPortalItemAsync utility function which works great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anything similar in JSAPI?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 22:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-portal-item/m-p/379908#M35260</guid>
      <dc:creator>danbonab</dc:creator>
      <dc:date>2013-11-19T22:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get portal item</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-portal-item/m-p/379909#M35261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the queryItems method of Portal class&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/portal-amd.html#queryitems"&gt;https://developers.arcgis.com/en/javascript/jsapi/portal-amd.html#queryitems&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This method takes a PortalQueryParams parameter. &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/portalqueryparams-amd.html"&gt;https://developers.arcgis.com/en/javascript/jsapi/portalqueryparams-amd.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The PortalQueryParams class exposes the q parameter which is the query string to search with. View the ArcGIS REST API Search Reference for details on constructing a valid query (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000mn000000"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000mn000000&lt;/A&gt;&lt;SPAN&gt;). You will be able to set the item id by using this q parameter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 23:38:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-portal-item/m-p/379909#M35261</guid>
      <dc:creator>ArtemisFili</dc:creator>
      <dc:date>2013-11-19T23:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get portal item</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-portal-item/m-p/379910#M35262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks artemisfili,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is what I'm doing right now but the problem is that queryItems only returns web map item, then I have to get itemDataUrl and make another call (through esri.request or similar ajax call) to get actual web map data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question basically was that is there any utility function so I don't have to make two calls to get web map data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 20:02:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-portal-item/m-p/379910#M35262</guid>
      <dc:creator>danbonab</dc:creator>
      <dc:date>2013-11-20T20:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get portal item</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-portal-item/m-p/379911#M35263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see. What about the arcgisUtils.getItem(itemId) method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jsapi/namespace_esri.arcgis.utils-amd.html#getItem"&gt;https://developers.arcgis.com/en/javascript/jsapi/namespace_esri.arcgis.utils-amd.html#getItem&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 22:08:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-portal-item/m-p/379911#M35263</guid>
      <dc:creator>ArtemisFili</dc:creator>
      <dc:date>2013-11-20T22:08:02Z</dc:date>
    </item>
  </channel>
</rss>

