INPUT_OBJECT

ApprovalFilterInput

Filter conditions for Approval records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.

link GraphQL Schema definition

  • input ApprovalFilterInput {
  • # Matches records that meet at least one of the listed filters.
  • OR: [ApprovalFilterInput!]
  • # Matches records that meet all of the listed filters.
  • AND: [ApprovalFilterInput!]
  • # Matches records that do not meet this filter.
  • NOT: ApprovalFilterInput
  • # Search term matched against the fields that the global search covers for this
  • # entity.
  • globalSearchQuery: String
  • # Unique identifier of entity.
  • id: EntityFilterStringField
  • # Specifies if the entity is considered deleted.
  • isDeleted: Boolean
  • # Last modification time.
  • modified: EntityFilterDateTimeField
  • # Creation time.
  • created: EntityFilterDateTimeField
  • # Id of the linked account.
  • accountId: EntityFilterStringField
  • # Id of the triggering user.
  • actorId: EntityFilterStringField
  • # Id of the application (e.g. browser, automation, third-party integration) the
  • # approval was triggered in.
  • applicationId: EntityFilterStringField
  • # Id of the approval process this approval was raised from.
  • approvalProcessId: EntityFilterStringField
  • # Decision state of the approval: Pending while waiting for the approvers, then
  • # Approved or Rejected. endTime is set once the decision is made.
  • approvalStatus: ApprovalStatusEnumFilterInput
  • # Comment the requester attached when raising the approval.
  • comment: EntityFilterStringField
  • # Id of the linked contact.
  • contactId: EntityFilterStringField
  • # Timestamp the approval reached a final status (Approved/Rejected/Cancelled).
  • # Empty while the approval is still pending.
  • endTime: EntityFilterDateTimeField
  • # Id of the linked lead or opportunity, or empty when not linked.
  • leadOpptyId: EntityFilterStringField
  • # Id of the linked quote.
  • quoteId: EntityFilterStringField
  • # Result of the approval process run: the most severe status among its activity
  • # log lines, Error when a step of the run failed. The decision itself is in
  • # approvalStatus.
  • status: ProcessStatusEnumFilterInput
  • # Revision when entity was lastly changed.
  • revision: EntityFilterNumberField
  • # Display name of the approval, derived from the underlying record being approved
  • # (e.g. the quote name). Empty when the underlying record has been deleted.
  • name: String
  • # Id of the user who owns the record being approved (the record's owner, not the
  • # approver). Empty when the underlying record has been deleted.
  • ownerId: UUID
  • # Type identifier (e.g. account type, quote type) of the underlying record being
  • # approved. Empty when the underlying record has no type or has been deleted.
  • entityType: BaseEntityTypeEnum
  • # Timestamp the approval was raised (alias of created).
  • startTime: EntityFilterDateTimeField
  • # Account the approval is requested on, when the trigger record is an Account.
  • # Matches records where a related record meets these conditions.
  • account: AccountFilterInput
  • # User who triggered the approval, or empty when triggered automatically. Matches
  • # records where a related record meets these conditions.
  • actor: ClientFilterInput
  • # Application context the approval was triggered in. Matches records where a
  • # related record meets these conditions.
  • application: ApplicationFilterInput
  • # Approval process this approval was raised from. Matches records where a related
  • # record meets these conditions.
  • approvalProcess: ApprovalProcessFilterInput
  • # Contact the approval is requested on, when the trigger record is a Contact.
  • # Matches records where a related record meets these conditions.
  • contact: ContactFilterInput
  • # Lead the approval is requested on. Set when leadOpptyId resolves to a Lead.
  • # Matches records where a related record meets these conditions.
  • lead: LeadFilterInput
  • # Opportunity the approval is requested on. Set when leadOpptyId resolves to an
  • # Opportunity. Matches records where a related record meets these conditions.
  • oppty: OpportunityFilterInput
  • # Quote the approval is requested on, when the trigger record is a Quote. Matches
  • # records where a related record meets these conditions.
  • quote: QuoteFilterInput
  • # Users who must respond to the approval, with their individual responses. Matches
  • # records where a related record meets these conditions.
  • approvers: ApprovalApproverFilterInput
  • # Activity log lines describing the steps taken on this approval (visible only).
  • # Matches records where a related record meets these conditions.
  • lines: ApprovalProcessActivityLogLineFilterInput
  • }