OBJECT
OpportunityEntity
Potential deal with a value and closing date that moves through the steps of a sales pipeline until it is won or lost.
link GraphQL Schema definition
- type OpportunityEntity {
- # Values of the record's custom fields as a JSON object keyed by custom field
- # apiName (camelCase).
- #
- # Arguments
- # apiNames: Api names of custom fields to retrieve. All are
- # returned if not set.
- (: [String!]): JSONString!
- # Filled only when a single record is read by its id; otherwise null or an empty
- # list.
- : Int
- # True when the record is protected against deletion because it must always exist
- # in the space. Deleting a record that is not protected can still fail on other
- # checks. Read-only.
- : Boolean!
- # Unique identifier of entity.
- : ID!
- # Specifies if the entity is considered deleted.
- : Boolean
- # Last modification time.
- : DateTime
- # Creation time.
- : DateTime
- # Quote currently used to drive the opportunity (e.g. for synchronisation of
- # monetary fields). Empty when no quote is active.
- : QuoteEntity
- # Currency exchange rate list used to convert monetary fields linked to this
- # opportunity. Empty to inherit the team space default.
- : CurrencyExchangeRatesListEntity
- # How the opportunity originated (e.g. Website, Referral, Trade Show).
- # Configurable per team space.
- : DataEntity
- # Opportunity type that classifies this opportunity. Each type maps to one
- # pipeline and drives which form, fields and stages apply.
- : OpportunityTypeEntity
- # Sales user who owns this opportunity.
- : ClientEntity
- # Currency used for product line-item prices on this opportunity.
- : CurrencyEntity
- # Product price list used to populate prices for product line items added to this
- # opportunity. Empty to use catalog defaults.
- : ProductPriceListEntity
- # Configurable reason recorded when the opportunity is archived (lost). Required
- # when the lost form mandates it.
- : DataEntity
- # Pipeline step the opportunity is currently sitting in. Reaching the last step in
- # the pipeline marks the opportunity as won; archiving sets it to lost.
- : StepEntity
- # Sales unit this opportunity is assigned to. Determines which team members can
- # see the record under unit-based sharing.
- : SalesUnitEntity
- # Id of the quote currently synchronized with this opportunity, or empty when no
- # quote is active. A quote can be active on only one opportunity at a time.
- : ID
- # Expected or actual closing date of the opportunity.
- : Date!
- # Id of the currency exchange rate list applied to this opportunity.
- : ID
- # Free-form description of the opportunity.
- : String
- # True when the opportunity has been archived (lost). Archived opportunities
- # remain readable but are hidden from active lists and cannot be edited until
- # reactivated.
- : Boolean
- # True when value is auto-calculated from the opportunity product line items.
- # False when the user enters value directly.
- : Boolean
- # User-set colored flag used to highlight the opportunity in lists and reports.
- : Int
- # Time when an AI-suggested buying center was last applied to this opportunity.
- : DateTime
- # Id of the lead source the opportunity originated from.
- : ID
- # Name of the entity and its default text representation.
- : String!
- # Id of the opportunity type.
- : ID
- # Id of the opportunity owner.
- : ID!
- # Id of the currency used for product line-item prices on this opportunity.
- : ID
- # Id of the price list that supplies prices for product line items added to this
- # opportunity, or empty to use catalog defaults.
- : ID
- # Product sections grouping the record's line items, as a JSON array of {"id":
- #
, "name": } objects. Validated on write. Full structure: - # https://api-doc.coevera.com/latest/graphql/space/productsection.doc.html This
- # payload conforms to the `ProductSection` JSON Schema:
- # https://api-doc.coevera.com/schemas/ProductSection.json
- : [ProductSection!]
- # Free-text company email captured at opportunity creation when no Account record
- # has been linked yet.
- : String
- # Free-text company name captured at opportunity creation when no Account record
- # has been linked yet.
- : String
- # Free-text company phone captured at opportunity creation when no Account record
- # has been linked yet.
- : String
- # Free-text contact name captured at opportunity creation when no Contact record
- # has been linked yet.
- : String
- # Free-text contact email captured at opportunity creation when no Contact record
- # has been linked yet.
- : String
- # Free-text contact phone captured at opportunity creation when no Contact record
- # has been linked yet.
- : String
- # Qualitative ranking score (1-10) the user assigns to indicate the strength of
- # the opportunity.
- : Int
- # Free-form note explaining why the opportunity was archived (lost).
- : String
- # Id of the reason of close option selected when the opportunity was archived
- # (lost).
- : ID
- # Sharing model applied on top of the owner/unit visibility (e.g. shared with
- # selected sales units or selected users). The matching sharingUnits /
- # sharingClients lists control who is granted access.
- : ShareModeEnum
- # Id of the pipeline step.
- : ID!
- # Discriminator identifying the concrete record type — always "opportunity" for
- # Opportunity records. Read-only; useful when consuming polymorphic LeadOppty
- # results.
- : String!
- # Id of the sales unit.
- : ID
- # True when the opportunity has gone through the qualification step at least once.
- : Boolean
- # Revision when entity was lastly changed.
- : Int
- # Monetary value of the opportunity in the team space base currency, with the
- # foreign value and currency code preserved alongside.
- : CurrencyForeignField
- # Number of email sequences this record is currently actively enrolled in
- # (soft-deleted or ended enrollments are not counted).
- : Int!
- # Recurrence schedule generating periodic copies of this opportunity, or empty
- # when no recurrence is set up.
- : OpptyRecurrenceEntity
- # Revenue schedule splitting the opportunity value across periods, or empty when
- # revenue scheduling is not enabled for this opportunity.
- : OpptyRevenueScheduleEntity
- # Product line items on this opportunity. Each entry holds the product, quantity,
- # price and discount that contribute to the opportunity value when
- # isValueAutoCalculate is true.
- #
- # Arguments
- # filter: Filter Product relations by target Product attributes.
- # filterEdge: Filter OpptyProductRelation relations by edge
- # (relation) OpptyProductRelation attributes.
- # orderBy: Order Product relations by target Product attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : ProductFilterInput,
- : OpptyProductRelationFilterInput,
- : [ProductOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): OpptyProductRelationEntityConnection
- # Primary contact of this opportunity. Set automatically from the contact relation
- # marked as primary.
- : ContactEntity
- # Primary account of this opportunity. Set automatically from the account relation
- # marked as primary.
- : AccountEntity
- # Contacts linked to this opportunity, including their roles and org-chart
- # positions.
- #
- # Arguments
- # filter: Filter Contact relations by target Contact attributes.
- # filterEdge: Filter LeadOpptyContactRelation relations by edge
- # (relation) LeadOpptyContactRelation attributes.
- # orderBy: Order Contact relations by target Contact attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : ContactFilterInput,
- : LeadOpptyContactRelationFilterInput,
- : [ContactOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): LeadOpptyContactRelationEntityConnection
- # Accounts linked to this opportunity, including the primary-account flag.
- #
- # Arguments
- # filter: Filter Account relations by target Account attributes.
- # filterEdge: Filter LeadOpptyAccountRelation relations by edge
- # (relation) LeadOpptyAccountRelation attributes.
- # orderBy: Order Account relations by target Account attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : AccountFilterInput,
- : LeadOpptyAccountRelationFilterInput,
- : [AccountOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): LeadOpptyAccountRelationEntityConnection
- # Documents linked to this opportunity.
- #
- # Arguments
- # filter: Filter CloudObject relations by target CloudObject
- # attributes.
- # filterEdge: Filter CloudObjectRelation relations by edge
- # (relation) CloudObjectRelation attributes.
- # orderBy: Order CloudObject relations by target CloudObject
- # attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : CloudObjectFilterInput,
- : CloudObjectRelationFilterInput,
- : [CloudObjectOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): CloudObjectRelationEntityConnection
- # Quotes prepared for this opportunity.
- #
- # Arguments
- # filter: Filter Quote relations by target Quote attributes.
- # orderBy: Order Quote relations by target Quote attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : QuoteFilterInput,
- : [QuoteOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): QuoteEntityConnection
- # Current status of the opportunity (Open, Won, Lost). Read-only; derived from the
- # current pipeline step and the archived flag.
- : OpptyStatusEnum!
- # Timestamp of when the opportunity was qualified, taken from the matching KPI
- # event. Empty for opportunities that have not been qualified. Read-only.
- : DateTime
- # Timestamp of when the opportunity was won. Setting it adjusts the underlying win
- # event; empty for opportunities that have not been won.
- : DateTime
- # Timestamp of when the opportunity was archived (lost). Setting it adjusts the
- # underlying loss event; empty for opportunities that have not been archived.
- : DateTime
- # Number of days the opportunity has been sitting in its current pipeline step.
- # Read-only; computed by Coevera from the most recent move event and per-step
- # timeframe history.
- : Int!
- # True when the current authenticated user has marked this opportunity as
- # favorite. Per-user.
- : Boolean!
- # Sales units that have been granted shared access to this opportunity. Editable
- # only when shareMode allows unit sharing.
- #
- # Arguments
- # filter: Filter SalesUnit relations by target SalesUnit
- # attributes.
- # filterEdge: Filter LeadOpptySharingSalesUnitRelation relations
- # by edge (relation) LeadOpptySharingSalesUnitRelation attributes.
- # orderBy: Order SalesUnit relations by target SalesUnit
- # attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : SalesUnitFilterInput,
- : LeadOpptySharingSalesUnitRelationFilterInput,
- : [SalesUnitOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): LeadOpptySharingSalesUnitRelationEntityConnection
- # Users that have been granted shared access to this opportunity. Editable only
- # when shareMode allows user sharing.
- #
- # Arguments
- # filter: Filter Client relations by target Client attributes.
- # filterEdge: Filter LeadOpptySharingClientRelation relations by
- # edge (relation) LeadOpptySharingClientRelation attributes.
- # orderBy: Order Client relations by target Client attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : ClientFilterInput,
- : LeadOpptySharingClientRelationFilterInput,
- : [ClientOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): LeadOpptySharingClientRelationEntityConnection
- # Tag labels applied to this opportunity.
- #
- # Arguments
- # filter: Filter Tag relations by target Tag attributes.
- # filterEdge: Filter TagRelation relations by edge (relation)
- # TagRelation attributes.
- # orderBy: Order Tag relations by target Tag attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : TagFilterInput,
- : TagRelationFilterInput,
- : [TagOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): TagRelationEntityConnection
- # Saved view profiles this opportunity currently matches.
- #
- # Arguments
- # filter: Filter Profile relations by target Profile attributes.
- # filterEdge: Filter ProfileRelation relations by edge (relation)
- # ProfileRelation attributes.
- # orderBy: Order Profile relations by target Profile attributes.
- # includeDeleted: Returns deleted target records as well. Default
- # is true.
- # before: Cursor until which to take entities to result set.
- # after: Cursor after which to start taking entities to result
- # set.
- # first: Number of entities to return from beginning of the
- # result set.
- # last: Return only the "last" number of entities from result
- # set.
- (
- : ProfileFilterInput,
- : ProfileRelationFilterInput,
- : [ProfileOrderByInput!],
- : Boolean,
- : String,
- : String,
- : Int,
- : Int
- ): ProfileRelationEntityConnection
- # Filled only when a single record is read by its id; otherwise null or an empty
- # list.
- : WarningLevelEnum
- # Filled only when a single record is read by its id; otherwise null or an empty
- # list.
- : FitnessDescription
- # Display version of the opportunity name, used in lists and references.
- : String!
- # Filled only when a single record is read by its id; otherwise null or an empty
- # list.
- : [UUID!]!
- # Timestamp of the most recent modification made by an end user (excluding system
- # changes). Read-only; computed by Coevera.
- : DateTime
- # Permissions the current user has on this record, out of the requested ones.
- #
- # Arguments
- # permissions: Permissions to check; the result lists those the
- # current user has.
- (: [EntityPermsEnum!]!): [EntityPermsEnum!]!
- # Records of the given entity type that are related to this record, as a drilldown
- # list.
- #
- # Arguments
- # entityType: Entity type of the related records to list.
- (: EntityNameEnum!): CompactViewDrilldownModel!
- # Data of the given preview pane charts and lists, computed for this record.
- #
- # Arguments
- # ids: Ids of the charts to compute, taken from the charts of the
- # record type's interface preview. Comment charts are not supported.
- (: [UUID!]!): [DashboardChartData!]
- # Records behind one preview pane chart of this record: all records of a list
- # chart, or the records of a single data point of a report chart.
- #
- # Arguments
- # id: Id of the chart, taken from the charts of the record type's
- # interface preview.
- # seriesIndex: Index of the series of the drilled-down data
- # point. Required for report charts; must not be set for list charts.
- # itemIndex: Index of the drilled-down data point within its
- # series. Required for report charts; must not be set for list charts.
- (: UUID!, : Int, : Int): CompactViewDrilldownModel!
- # Values of the fields shown in the record's preview pane, as configured for the
- # record's type.
- #
- # Arguments
- # ids: Ids of the fields to return. When not set, the fields
- # configured for the preview pane of the record's type are returned.
- # first: Maximum number of preview pane fields to return when ids
- # is not set; fields pinned by the current user come first.
- (: [UUID!], : Int): [InterfaceFieldData]!
- # Checklist items of the steps of the record's pipeline, with the completion state
- # of each item for this record.
- #
- # Arguments
- # stepChecklistIds: Ids of the step checklist items to return.
- # When not set, the items of all steps of the record's pipeline are returned.
- (: [UUID]): [StepChecklistActivityItem]!
- # Approval request of this record that is pending or was rejected; null when there
- # is none or it was approved.
- : ApprovalEntity
- }
link Require by
- ActivityRelationEntityLink of a task or an appointment to a record it concerns, such as an account, contact, lead, opportunity, project or quote.
- ApprovalEntityApproval request that an approval process raised for a record, such as a quote or an opportunity, waiting for the decision of its approvers.
- ArchiveOpportunityPayloadResult of the archiveOpportunity mutation.
- CallEntityPhone call logged in the space, linked to the user who made it and to the contact, account, lead or opportunity it concerns.
- ChangeLabelFlagOpportunityPayloadResult of the changeLabelFlagOpportunity mutation.
- ChangeOwnershipOpportunityPayloadResult of the changeOwnershipOpportunity mutation.
- ChangePipelineOpportunityPayloadResult of the changePipelineOpportunity mutation.
- ClientExcludedOpptyEntityChoice of a user to exclude an opportunity from their forecast and quota calculations, or to include it again.
- ClientFavoriteEntityRecord or screen profile that a user has marked as a favorite.
- CloudObjectRelationEntityAttachment of a file to a record, such as an account, contact, opportunity, activity or email template, optionally in a folder of that record.
- ConvertOpportunityPayloadResult of the convertOpportunity mutation.
- CreateOpportunityPayloadResult of the createOpportunity mutation.
- CustomEntityRelationDataEntityLink between two records made through a custom relation, such as an account linked to a custom entity record.
- DashboardListChartDataEntityOne record shown in a dashboard list chart, in the field matching its kind.
- DeleteOpportunityPayloadResult of the deleteOpportunity mutation.
- EmailSequenceEnrolledEntityRecord enrolled in an email sequence, such as a contact, lead or opportunity, with the run that enrolled it.
- GhostLeadOpptyContactRelationEntityPlacement of a ghost contact on the org chart of a lead or an opportunity.
- LeadOpportunityEntityEither a lead or an opportunity.
- LeadOpptyAccountRelationEntityLink between a lead or opportunity and an account, marking the primary account.
- LeadOpptyContactGroupRelationEntityGroup of contacts on the org chart of a lead or opportunity.
- LeadOpptyContactRelationEntityLink between a lead or opportunity and a contact, with the contact's sales roles and org-chart position.
- LeadOpptyDataExRelationEntityOption selected in a multi-select checkbox field of a lead or opportunity.
- LeadOpptyKPIEntityKPI event of a lead or opportunity (e.g. created, qualified, won, lost or moved to another step), used in activity reporting.
- LeadOpptySharingClientRelationEntityShare of a lead or opportunity with an individual user, with the access level granted.
- LeadOpptySharingSalesUnitRelationEntityShare of a lead or opportunity with a sales unit, with the access level granted.
- LeadOpptyStepCheckListRelationEntityCompletion of a step checklist item on a lead, opportunity or quote, with the activity, email, note or document that fulfils it.
- ManageSharingOpportunityPayloadResult of the manageSharingOpportunity mutation.
- MessageRelationEntityLink between a message (email or memo) and a record such as an account, contact, lead or opportunity.
- MoveOpportunityPayloadResult of the moveOpportunity mutation.
- NoteEntityNote a user wrote on a record such as an account, contact, lead, opportunity, project or quote.
- OnlineFormEntitySubmission (response) of an online form, with the answers and the records it created or updated.
- OnlineFormRelationEntityLink between an online form submission and a record it created or updated.
- OnlineFormTypeEmailRelationEntityEmail that sent an online form link to a recipient, with the record it was sent on.
- OpportunityAutoPrefillNew, unsaved opportunity pre-filled with the values of an AI suggestion, with the ids of the fields that were filled in.
- OpportunityEntityEdgeA Relay edge containing a `OpportunityEntity` and its cursor.
- OpportunityRepositoryRead operations for Opportunity records.
- OpptyProductRelationEntityProduct line item on an opportunity or quote, with its quantity, price and discount.
- OpptyRecurrenceEntityRecurrence rule that creates new copies of an opportunity on a schedule, e.g. for repeat deals once it is won or lost.
- ProfileRelationEntityRecord added explicitly to a static saved view (profile).
- QualifyLeadPayloadResult of the qualifyLead mutation.
- QuoteEntityPrice offer for a customer, usually prepared from an opportunity, with product line items; it moves through a quote process.
- RestoreOpportunityPayloadResult of the restoreOpportunity mutation.
- TagRelationEntityAssignment of a tag to a record.
- TextMessageConversationRelationsEntityLink between a text message conversation and a record such as an account, contact, lead or opportunity.
- TimeframeEntityTime a lead or opportunity has spent in a pipeline step.
- UpdateOpportunityPayloadResult of the updateOpportunity mutation.