Score:1

The migration of a list field doesn't work

th flag

In Drupal 10 I have a field of type List (text) configured with key|label that I need to populate with a migration.

My yml file seems not to work, in the 'process' block I tried with:

  process:
    field_select: key
  process:
    field_select/key: key
 process:
    field_select:
      plugin: get
      source: key

Note that the source field names here (key) were defined by the 'fields' configuration for the source plugin above.

I'm looking for full documentation or some examples with the various field types.

ru flag
The first and the third are correct, they do both exactly the same. The 2nd one would fill the `key` sub-column of the `field_select` field, which does not exist for this field type.
nicola avatar
th flag
Thanks @hudri, maybe it's my _json api_ that has something wrong... Is there a documentation somewhere about the various types of fields?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.