Skip to content

salesforceObjects

The objects in the Salesforce organization.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String An opaque cursor returned from a previous query's endCursor field. Pass this value verbatim to retrieve the next page of results.
last Int Returns the last n elements from the list.
before String An opaque cursor returned from a previous query's startCursor field. Pass this value verbatim to retrieve the previous page of results.
orgId (required) UUID! Rubrik ID of the Salesforce organization.
sortBy HierarchySortByField Sort hierarchy objects according to the hierarchy field.
filter (required) [Filter!]! The hierarchy object filter.
sortOrder SortOrder Sorts the order of results.

Returns

SalesforceObjectConnection!

Sample

query SalesforceObjects($orgId: UUID!, $filter: [Filter!]!) {
  salesforceObjects(
    orgId: $orgId
    filter: $filter
    first: 10
  ) {
    nodes {
      authorizedOperations
      id
      isRelic
      label
      legallyHeldSnapshotCount
      name
      naturalId
      numWorkloadDescendants
      objectBackupType
      objectType
      onDemandSnapshotCount
      rscPendingObjectPauseAssignment
      salesforceObjectType
      slaAssignment
      slaPauseStatus
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "orgId": "00000000-0000-0000-0000-000000000000",
  "filter": [
    {}
  ]
}
{
  "data": {
    "salesforceObjects": {
      "nodes": [
        [
          {
            "authorizedOperations": [
              "ACCESS_CDM_CLUSTER"
            ],
            "id": "00000000-0000-0000-0000-000000000000",
            "isRelic": true,
            "label": "example-string",
            "legallyHeldSnapshotCount": 0,
            "name": "example-string"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}