<?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: Programmatically Open Portal on My Organization? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-open-portal-on-my-organization/m-p/1629668#M13019</link>
    <description>&lt;P&gt;This has been added for &lt;STRONG&gt;3.6&lt;/STRONG&gt;. You will be able to write code similar to:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var catalogWindow = Project.GetCatalogPane() as ICatalogWindow;
if (!catalogWindow.IsActiveWindow)
  return;

var catContentType = catalogWindow.GetCurrentContentType();
if (catContentType != CatalogContentType.Portal)
{
   //show the portal tab
   catalogWindow.SetContentTypeAsync(CatalogContentType.Portal);
}
catalogWindow.SetSecondaryPortalContentTypeAsync(
  CatalogSecondaryPortalContentType.UserOrganization);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 22:50:55 GMT</pubDate>
    <dc:creator>CharlesMacleod</dc:creator>
    <dc:date>2025-07-02T22:50:55Z</dc:date>
    <item>
      <title>Programmatically Open Portal on My Organization?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-open-portal-on-my-organization/m-p/1628679#M13008</link>
      <description>&lt;P&gt;I've seen code online that is super basic that can open the Catalog pane on the Project tab. I'm curious if there is a similar way to open the Catalog pane onto the Portal tab and auto-select "My Organization".&lt;/P&gt;&lt;P&gt;Code is below. Can something be placed into the parameters of the Execute method?&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override void OnClick()
{
    var commandId = "esri_core_showProjectDockPane";
    var iCommand = FrameworkApplication.GetPlugInWrapper(commandId) as ICommand;
    if (iCommand != null)
    {
        iCommand.Execute(null);
    }
    else
    {
        MessageBox.Show("Command not found: " + commandId, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 22:46:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-open-portal-on-my-organization/m-p/1628679#M13008</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2025-06-30T22:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Open Portal on My Organization?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-open-portal-on-my-organization/m-p/1629668#M13019</link>
      <description>&lt;P&gt;This has been added for &lt;STRONG&gt;3.6&lt;/STRONG&gt;. You will be able to write code similar to:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var catalogWindow = Project.GetCatalogPane() as ICatalogWindow;
if (!catalogWindow.IsActiveWindow)
  return;

var catContentType = catalogWindow.GetCurrentContentType();
if (catContentType != CatalogContentType.Portal)
{
   //show the portal tab
   catalogWindow.SetContentTypeAsync(CatalogContentType.Portal);
}
catalogWindow.SetSecondaryPortalContentTypeAsync(
  CatalogSecondaryPortalContentType.UserOrganization);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 22:50:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-open-portal-on-my-organization/m-p/1629668#M13019</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2025-07-02T22:50:55Z</dc:date>
    </item>
  </channel>
</rss>

