salesforceObjectFields

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. Requires project.integrations.read.

Arguments

  • projectReferenceString!required

  • objectNameString!required

    Salesforce object API name.

  • limitInt

    Opt in to paging: fields per page, 1 to 100. Omit limit and cursor to read every field.

  • cursorString

    Opaque continuation from pageInfo.endCursor, at most 4096 characters. A cursor without limit reads 20 fields.

Responses

query SalesforceObjectFields($projectReference: String!, $objectName: String!) {  salesforceObjectFields(projectReference: $projectReference, objectName: $objectName) {    data {      name      label      type      referenceTo      relationshipName      nillable      createable      updateable      filterable      sortable      idLookup      externalId      calculated      nameField    }    total    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor      prev    }  }}
{  "data": {    "salesforceObjectFields": {      "data": [        {          "name": "string",          "label": "string",          "type": "string",          "referenceTo": [            "string"          ],          "relationshipName": "string",          "nillable": false,          "createable": false,          "updateable": false,          "filterable": false,          "sortable": false,          "idLookup": false,          "externalId": false,          "calculated": false,          "nameField": false        }      ],      "total": 0,      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string",        "prev": "string"      }    }  }}

The SalesforceObjectFieldList! in data.salesforceObjectFields.