Update entities based on a selected unique field rather than entity id.

Created on 20 July 2019, over 5 years ago
Updated 10 September 2024, 7 months ago

I am submitting a patch here which adds a select box from which to choose an entity's fields to use as a unique value on import.

This enables someone to export data to CSV from one system, not knowing the entity ID and update entities based on a chosen unique field.

Sample data

field_memberid, title,	                field_name, field_system_id
COBALT,             Cobalt Co Pty Ltd,	Cobalt Co,   COBALT01

field_system_id is unique, so field_system_id can be specified as a unique field and used to switch between update or add.

Would be nice to read the first row of the CSV and reduce the listed fields to those occuring in the CSV, but I can't see a safe way to do so
without putting the CSV in a separate form and submitting before rendering the entity type/bundle selection form.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia thursday_bw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024