<?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: How can I open the tool &amp;quot;Share as Web Layer&amp;quot; in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/1652434#M13142</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried this workflow it's not working. Also, How can I use Geoprocessing.OpenToolDialog() method because there is no geoprocessing tool present there for sharing as web layer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;private ICommand _cmdOpen;&lt;BR /&gt;public ICommand CmdOpen&lt;BR /&gt;{&lt;BR /&gt;get&lt;BR /&gt;{&lt;BR /&gt;return _cmdOpen ??= new RelayCommand(() =&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;var commandId = "esri_sharing_SharingAsWEBLayerCXMUBtn";&lt;BR /&gt;var wrapper = FrameworkApplication.GetPlugInWrapper(commandId);&lt;BR /&gt;var command = wrapper as ICommand;&lt;/P&gt;&lt;P&gt;if (command != null &amp;amp;&amp;amp; command.CanExecute(null))&lt;BR /&gt;command.Execute(null);&lt;BR /&gt;else&lt;BR /&gt;ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show(&lt;BR /&gt;"Cannot execute 'Share As Web Layer' command in this context.");&lt;BR /&gt;});&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijeet&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Sep 2025 14:10:26 GMT</pubDate>
    <dc:creator>AbhijeetNandeshwar1</dc:creator>
    <dc:date>2025-09-23T14:10:26Z</dc:date>
    <item>
      <title>How can I open the tool "Share as Web Layer"</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/793128#M1669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ArcGIS Pro 2.0(1) SDK, how can I initiate the command "Share as Web Layer" as I do from the popup menu on the layer from the content dialog:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="380284" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/380284_pastedImage_1.png" style="width: 339px; height: 369px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, how can I pre-populate the parameters of the tool:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="380288" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/380288_pastedImage_2.png" style="width: 367px; height: 540px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the user just to check and click Publish...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 18:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/793128#M1669</guid>
      <dc:creator>HoriaTudosie</dc:creator>
      <dc:date>2017-10-17T18:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I open the tool "Share as Web Layer"</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/1577160#M12509</link>
      <description>&lt;P&gt;Any way to access this in 3.x?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 11:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/1577160#M12509</guid>
      <dc:creator>KristianLarsen1</dc:creator>
      <dc:date>2025-01-20T11:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I open the tool "Share as Web Layer"</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/1577332#M12514</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can open "New WEB layer" using ID (esri_sharing_SharingAsWEBLayerCXMUBtn)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GKmieliauskas_0-1737442211484.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123642iED73328EE57ECCD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GKmieliauskas_0-1737442211484.png" alt="GKmieliauskas_0-1737442211484.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var commandId = "esri_sharing_SharingAsWEBLayerCXMUBtn";
IPlugInWrapper wrapper = FrameworkApplication.GetPlugInWrapper(commandId);
var command = wrapper as ICommand; 

if ((command != null) &amp;amp;&amp;amp; command.CanExecute(null))
  command.Execute(null);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another way is to open geoprocessing tool dialog using&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic9389.html" target="_self"&gt;&lt;SPAN&gt;Geoprocessing.OpenToolDialog&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 06:57:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/1577332#M12514</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-01-21T06:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I open the tool "Share as Web Layer"</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/1577740#M12521</link>
      <description>&lt;P&gt;Hi and thanks for the swift help!&lt;/P&gt;&lt;P&gt;I'm using the 3.2 SDK, and i can't get any of these to work.&lt;BR /&gt;Command is null, and OpenToolDialog returns "tool not found".&lt;/P&gt;&lt;P&gt;Is there any documentation available for the "&lt;SPAN&gt;esri_sharing_SharingAsWEBLayerCXMUBtn&lt;/SPAN&gt;" command?&lt;/P&gt;&lt;P&gt;Right now i'm calling a share script from a py toolbox using&amp;nbsp;Geoprocessing.ExecuteToolAsync, but i really don't want to rewrite the whole shareAsWebLayer dialog.. So the idea is to do some checks, filtering, metadata and database-stuff before passing the args to the shareAsWebLayer tool.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 10:00:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/1577740#M12521</guid>
      <dc:creator>KristianLarsen1</dc:creator>
      <dc:date>2025-01-22T10:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I open the tool "Share as Web Layer"</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/1579177#M12538</link>
      <description>&lt;P&gt;ICommand.Execute didn't work because i had no selected layer, or the layer selected was not the correct type. Still it only opens the dialog, i guess it doesn't support args..&lt;/P&gt;&lt;P&gt;Some documentation for this would be nice.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 18:01:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/1579177#M12538</guid>
      <dc:creator>KristianLarsen1</dc:creator>
      <dc:date>2025-01-27T18:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I open the tool "Share as Web Layer"</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/1652434#M13142</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried this workflow it's not working. Also, How can I use Geoprocessing.OpenToolDialog() method because there is no geoprocessing tool present there for sharing as web layer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;private ICommand _cmdOpen;&lt;BR /&gt;public ICommand CmdOpen&lt;BR /&gt;{&lt;BR /&gt;get&lt;BR /&gt;{&lt;BR /&gt;return _cmdOpen ??= new RelayCommand(() =&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;var commandId = "esri_sharing_SharingAsWEBLayerCXMUBtn";&lt;BR /&gt;var wrapper = FrameworkApplication.GetPlugInWrapper(commandId);&lt;BR /&gt;var command = wrapper as ICommand;&lt;/P&gt;&lt;P&gt;if (command != null &amp;amp;&amp;amp; command.CanExecute(null))&lt;BR /&gt;command.Execute(null);&lt;BR /&gt;else&lt;BR /&gt;ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show(&lt;BR /&gt;"Cannot execute 'Share As Web Layer' command in this context.");&lt;BR /&gt;});&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijeet&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 14:10:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-open-the-tool-quot-share-as-web-layer/m-p/1652434#M13142</guid>
      <dc:creator>AbhijeetNandeshwar1</dc:creator>
      <dc:date>2025-09-23T14:10:26Z</dc:date>
    </item>
  </channel>
</rss>

