# salesforceObjects

```graphql
query SalesforceObjects($input: SalesforceObjectsInput!) {
  salesforceObjects(input: $input) {
    data {
      name
      label
      custom
      queryable
      createable
      updateable
      deletable
      deprecatedAndHidden
    }
    total
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
      prev
    }
  }
}
```

List the objects of the Salesforce org connected to a project to choose the objects an integration may access; returns every object the connected user can see, or one page when a limit or cursor is sent. Requires project.integrations.read.

## Arguments

| Name                     | Type                    | Required | Description                                                                                          |
| ------------------------ | ----------------------- | -------- | ---------------------------------------------------------------------------------------------------- |
| `input`                  | SalesforceObjectsInput! | Yes      |                                                                                                      |
| `input.projectReference` | String!                 | Yes      | Project ID                                                                                           |
| `input.limit`            | Int                     |          | Opt in to paging: objects per page, 1 to 100. Omit limit and cursor to read every object.            |
| `input.cursor`           | String                  |          | Opaque continuation from pageInfo, at most 4096 characters. A cursor without limit reads 20 objects. |

## Variables

```json
{
  "input": {
    "projectReference": "string"
  }
}
```

## Responses

| Status | Description                                              |
| ------ | -------------------------------------------------------- |
| 200    | The SalesforceObjectsPayload! in data.salesforceObjects. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query SalesforceObjects($input: SalesforceObjectsInput!) {\n  salesforceObjects(input: $input) {\n    data {\n      name\n      label\n      custom\n      queryable\n      createable\n      updateable\n      deletable\n      deprecatedAndHidden\n    }\n    total\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n      prev\n    }\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "salesforceObjects": {
      "data": [
        {
          "name": "string",
          "label": "string",
          "custom": false,
          "queryable": false,
          "createable": false,
          "updateable": false,
          "deletable": false,
          "deprecatedAndHidden": false
        }
      ],
      "total": 0,
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string",
        "prev": "string"
      }
    }
  }
}
```
