Skip to navigation

List opportunities

Returns a paginated collection of opportunities.

Arguments

archivedArchivedEnumOptional

The archived state of the records to return. The default is EXCLUDE.

Allowed values:
contactIdslist of StringsOptional
The IDs of the contacts linked to the records to return.
createdByUserIdslist of StringsOptional
The IDs of the users who created the records to return.
createdOnMaxStringOptional
The latest creation date to return.
createdOnMinStringOptional
The earliest creation date to return.
disclosureIdslist of StringsOptional
The IDs of the disclosures linked to the records to return.
displayEnumslist of OpportunityDisplayEnumsOptional
The display settings of the opportunities to return.
Allowed values:
limitIntegerOptional
The number of records returned. The default is 20, and the maximum is 500.
opportunityNumberStringOptional

The opportunity number to return. Matching is case-insensitive.

organizationIdslist of StringsOptional
The IDs of the organizations linked to the records to return.
pageIntegerOptional
The page number to return. Starts at 1.
qStringOptional
The text to search for. Matches opportunity number, title, and page title.
shareEnumslist of OpportunityShareEnumsOptional
The sharing settings of the opportunities to return.
Allowed values:
sortDirectionSortDirectionEnumOptional

The sort direction. The default is DESC.

Allowed values:
sortFieldStringOptional

The field to sort by. One of archived_at, created_at, disclosures_count, display_enum, expires_on, opportunity_number, page_title, share_enum, state_enum, title, trl_enum, and updated_at. The default is created_at.

stateEnumslist of OpportunityStateEnumsOptional
The states of the records to return.
Allowed values:
trlEnumslist of TrlEnumsOptional
The technology readiness levels of the records to return.
updatedByUserIdslist of StringsOptional
The IDs of the users who last updated the records to return.
updatedOnMaxStringOptional

The latest last-updated date to return.

updatedOnMinStringOptional

The earliest last-updated date to return.

Returns

an OpportunityCollection
collectionlist of Opportunities
A collection of paginated OpportunityCollection
Pagination Metadata for navigating the Pagination