<?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: Porting ArcGIS Portal logic in .NET Application from ArcGIS Runtime v10.2.7 to v100.0  in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/porting-arcgis-portal-logic-in-net-application/m-p/301283#M1894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; json = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"{ \"url\": \"&lt;A href="https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Counties/FeatureServer/"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Counties/FeatureServer\&lt;/A&gt;" }"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; portalItem = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #2b91af;"&gt;PortalItem&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;(json, portal);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; portalItem.Title = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"TEST_FS"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; portalItem.Type = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #2b91af;"&gt;PortalItemType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;.FeatureService;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; portalItem.Tags.Add("TES");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; portalItem.Tags.Add("Wakim National Forest");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; portalItem.Tags.Add("Endangered species");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; // Set all needed properties on the item&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; portal.User.AddPortalItemAsync(portalItem);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I guess the trick is to create the portal item from JSON that contains only the URL (could contain any other properties from the REST spec as well I suppose) and set all the other properties on the resulting portal item before adding it to the portal.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2017 17:37:34 GMT</pubDate>
    <dc:creator>TeddyMatinde</dc:creator>
    <dc:date>2017-02-17T17:37:34Z</dc:date>
    <item>
      <title>Porting ArcGIS Portal logic in .NET Application from ArcGIS Runtime v10.2.7 to v100.0</title>
      <link>https://community.esri.com/t5/developers-questions/porting-arcgis-portal-logic-in-net-application/m-p/301282#M1893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an existing application build using ArcGIS .NET Runtime 10.2.7. We are trying to port the logic to the new 'Quartz' release (v100.0).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue I'm facing is trying to port the following logic. We have a url to an existing feature service layer that I want to create an item for (with tags and description).&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/312926_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem here seems to be that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Tags and Url properties on PortalItem are now read-only&lt;/LI&gt;&lt;LI&gt;ArcGISPortal object doesn't seem to have a method for saving/creating items on portal (nor does there seem to be any equivalent method on ArcGISPortal&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map and FeatureCollection seem to have a 'SaveAs' method that allows you to save Maps and FeatureCollection as items in a Portal, but in this case I just want to create an item that is a link to an existing Feature Service (layer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 08:39:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/porting-arcgis-portal-logic-in-net-application/m-p/301282#M1893</guid>
      <dc:creator>Michaelvan_der_Veeken</dc:creator>
      <dc:date>2017-02-01T08:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Porting ArcGIS Portal logic in .NET Application from ArcGIS Runtime v10.2.7 to v100.0</title>
      <link>https://community.esri.com/t5/developers-questions/porting-arcgis-portal-logic-in-net-application/m-p/301283#M1894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this for now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; json = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"{ \"url\": \"&lt;A href="https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Counties/FeatureServer/"&gt;https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Counties/FeatureServer\&lt;/A&gt;" }"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; portalItem = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: #2b91af;"&gt;PortalItem&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;(json, portal);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; portalItem.Title = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"TEST_FS"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; portalItem.Type = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #2b91af;"&gt;PortalItemType&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;.FeatureService;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; portalItem.Tags.Add("TES");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; portalItem.Tags.Add("Wakim National Forest");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; portalItem.Tags.Add("Endangered species");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; // Set all needed properties on the item&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;await&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; portal.User.AddPortalItemAsync(portalItem);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;I guess the trick is to create the portal item from JSON that contains only the URL (could contain any other properties from the REST spec as well I suppose) and set all the other properties on the resulting portal item before adding it to the portal.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 17:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/porting-arcgis-portal-logic-in-net-application/m-p/301283#M1894</guid>
      <dc:creator>TeddyMatinde</dc:creator>
      <dc:date>2017-02-17T17:37:34Z</dc:date>
    </item>
  </channel>
</rss>

