<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Retrieving the comanyid in a portlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=35863" />
  <subtitle>Retrieving the comanyid in a portlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=35863</id>
  <updated>2026-06-14T20:56:55Z</updated>
  <dc:date>2026-06-14T20:56:55Z</dc:date>
  <entry>
    <title>Retrieving the comanyid in a portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=35865" />
    <author>
      <name>Brian Chan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=35865</id>
    <updated>2004-08-26T16:24:14Z</updated>
    <published>2004-08-26T16:24:14Z</published>
    <summary type="html">PortalUtill.getCompanyId(req) if you&amp;amp;#39;re using a bundled portlet&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt;If you&amp;amp;#39;re using a hot deploy portlet, there&amp;amp;#39;s only one company id.&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt;String companyId = PortalInstances.getDefaultCompanyId();</summary>
    <dc:creator>Brian Chan</dc:creator>
    <dc:date>2004-08-26T16:24:14Z</dc:date>
  </entry>
  <entry>
    <title>Retrieving the comanyid in a portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=35862" />
    <author>
      <name>opfau opfau</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=35862</id>
    <updated>2004-08-26T14:44:49Z</updated>
    <published>2004-08-26T14:44:49Z</published>
    <summary type="html">Hi,&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;is it possible to retrieve the companyid in a portlet in liferay ?&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Thanks,&amp;lt;br /&amp;gt;Oliver</summary>
    <dc:creator>opfau opfau</dc:creator>
    <dc:date>2004-08-26T14:44:49Z</dc:date>
  </entry>
</feed>
