Tags give the ability to mark specific points in history as being important
-
1.1.0
cae59fbb · ·## twenty_crm 1.1.0 Adds write access to Twenty people. Sites can now create and update persons from Drupal, not only reference existing ones. ### New features - **TwentyCrmPersonService: write methods** - `createPerson(array $fields): DynamicEntity` creates a person from fields in Twenty API format and returns it with its ID. - `updatePerson(string $person_id, array $fields): DynamicEntity` updates only the given fields. Other fields are left as they are. - `addPersonFieldValue(string $person_id, string $field, string $value): bool` adds a value to a multi-select field and keeps the existing values. It returns FALSE if the value is already there. - **Customer reference widget: "Create in Twenty"** Editors can create a new person (first and last name, email, phone, job title) right from the field widget. The new person is selected straight away. If Twenty rejects the person, the error appears as a form error, and submitting the form again does not create a duplicate. ### Improvements - `@property` annotations on `CustomerReferenceItem` and `CompanyReferenceItem` for PHPStan. - Unit tests for the new person service methods. - README updated. ### Upgrade notes - There are no schema or config changes, and no update hooks. - To create or update persons, the configured Twenty API key needs write access to People. Read-only keys still work for everything else. -