Contact
A Contact is a saved record for auto-complete and quick reference when sending documents. Contacts belong to the currently logged-in user's scope within a Group and can be organised into ContactGroups.
note
You can only access contacts for the user you are logged in as. Attempting to view other users' contacts returns no results.
Fields
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier |
name | String | Full preferred name |
firstName | String | First name |
lastName | String | Last name |
email | String | Email address |
timeZone | String | Time zone |
phoneNumber | String | Phone number for SMS |
Query
Contacts are accessed via Group.contactConnection:
query GetGroupContacts {
group(id: "Z3JwbGVnYWxlc2lnbxRldg==") {
contactConnection(first: 100) {
contacts {
id
firstName
lastName
email
phoneNumber
}
}
}
}
contactConnection Arguments
| Argument | Type | Description |
|---|---|---|
first | Int | Number of items |
after | ID | Pagination cursor |
filter | AWSJSON | Field-level filter (e.g. {"email":{"beginsWith":"al"}}) |
Related
- ContactGroup — organise contacts into groups
- Group — the group these contacts belong to