Create Organization
affinity.create_organization
ActionCRM & salesconnection required
Calls the Affinity API with the connection's credentials.
Create a company in Affinity with its name and website domain.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Affinity
- Secret shape
- the API key, or {"api_key": "…"}
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
name The company's name, which Affinity requires on create. | string | Yes | — | — | Acme Corp |
domain The company's primary website domain, which Affinity requires on create. | string | Yes | — | — | acme.com |
domains Any further website domains that belong to the same company. | array | No | — | array of string | ["acme.io"] |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"domain": "acme.com",
"domains": [
"acme.io"
],
"name": "Acme Corp"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The organization's numeric id. | number | — |
name The organization's name. | string | — |
domain The organization's primary website domain. | string | — |
domains Every website domain associated with the organization. | array | — |
global True when the record comes from Affinity's global dataset. | boolean | — |
person_ids Ids of the people linked to the organization. | array | — |
list_entries The list entries pointing at this organization. | array | — |
{
"domain": "",
"domains": [],
"global": false,
"id": 0,
"list_entries": [],
"name": "",
"person_ids": []
}See Create Organization run in a workflow.
In a technical demo we add the Affinity connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.