Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IObjectManager.QueryCommunitiesForPortlet Method

Returns an array of IDs of Communities that contain the Portlet with the specified ID.

int[] QueryCommunitiesForPortlet(
int portletID
);

#### Parameters

portletID
  Portlet ID

#### Return Value

array of IDs of Communities that contain the Portlet

#### Exceptions

Exception Type | Condition
--- | ---
HttpException | if the query interface URL is not valid
PortalException | if the operation resulted in an error on the portal

#### See Also

IObjectManager Interface | Plumtree.Remote.PRC Namespace