findItems method

Future<PortalGroupContentSearchResultSet> findItems({
  1. required PortalGroupContentSearchParameters searchParams,
})

Finds portal items that belong to this group and match the given search parameters.

This method uses a Group Content Search operation that's designed specifically for finding items that belong to a group. It differs from the Portal.findItems method which uses a general-purpose Search operation that's suitable for searching all items stored on a portal.

The behavior of this method differs from the Portal.findItems method in the following ways:

  • If the PortalGroupContentSearchParameters.categories property is used, the categories specified there will be matched with group categories that have been specified by the group owner/administrator, as opposed to the organization-level categories that the general-purpose Search operation matches against
  • An extra PortalGroupContentSearchParameters.sortField option is available, "added", to sort the results on the time the items were added to the group