> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List Salesforce object fields

> List the fields of one Salesforce object in the org connected to a project to map or filter its data; returns every field the connected user can see, or one page when a limit or cursor is sent.

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

Requires project.integrations.read.

## Arguments

| Argument | Type | Required | Description |
| - | - | - | - |
| `projectReference` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | |
| `objectName` | [`String!`](https://veryfront.com/docs/cloud/graphql/types/string) | Yes | Salesforce object API name. |
| `limit` | [`Int`](https://veryfront.com/docs/cloud/graphql/types/int) | No | Opt in to paging: fields per page, 1 to 100. Omit limit and cursor to read every field. |
| `cursor` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Opaque continuation from pageInfo.endCursor, at most 4096 characters. A cursor without limit reads 20 fields. |

## Response

Returns [`SalesforceObjectFieldList!`](https://veryfront.com/docs/cloud/graphql/types/salesforceobjectfieldlist). Open the type for its fields and nested types.

| Field | Type |
| - | - |
| `data` | [`[SalesforceObjectField!]!`](https://veryfront.com/docs/cloud/graphql/types/salesforceobjectfield) |
| `total` | [`Int`](https://veryfront.com/docs/cloud/graphql/types/int) |
| `pageInfo` | [`ConnectionPagination`](https://veryfront.com/docs/cloud/graphql/types/connectionpagination) |

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
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 title="variables.json" theme={null}
{
  "projectReference": "00000000-0000-4000-8000-000000000001",
  "objectName": "example"
}
```

<details>
  <summary>Try this query</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Query

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.