List Salesforce object fields

salesforceObjectFields(projectReference: String!, objectName: String!, limit: Int, cursor: String): SalesforceObjectFieldList!

Requires project.integrations.read.

Arguments

ArgumentTypeRequiredDescription
projectReferenceString!Yes
objectNameString!YesSalesforce object API name.
limitIntNoOpt in to paging: fields per page, 1 to 100. Omit limit and cursor to read every field.
cursorStringNoOpaque continuation from pageInfo.endCursor, at most 4096 characters. A cursor without limit reads 20 fields.

Response

Returns SalesforceObjectFieldList!. Open the type for its fields and nested types.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query SalesforceObjectFields($projectReference: String!, $objectName: String!, $limit: Int, $cursor: String) {
  salesforceObjectFields(projectReference: $projectReference, objectName: $objectName, limit: $limit, cursor: $cursor) {
    total
    data {
      name
      calculated
      createable
      externalId
      filterable
    }
    pageInfo {
      hasNextPage
      endCursor
      hasPreviousPage
      prev
      startCursor
    }
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001",
  "objectName": "example"
}