I created my own Yaml file with fields inside to migrate nodes.
I run into this problem. If I use the feeds module, I can set (during mappings) that a given field (taxonomy term reference field) can be referenced by any other field from my site. The term name is therefore assigned based on the value in the reference field.
If I use Migrate CSV module, how do I set this in Yaml file? This is my Yaml:
uuid: bf1e53ae-6a95-48f2-8888-4b928e6e33ea
id: testovacimigrace2
label: My own migration !!!!!!!
migration_group: migration
source:
plugin: 'csv'
# Full path to the file.
path: 'modules/custom/migrace/assets/csv/upload1.csv'
delimiter: ','
enclosure: '"'
header_row_count: 1
ids:
- ID
process:
title: title
field_email: email
type:
plugin: default_value
default_value: submitlawyer
destination:
plugin: entity:node
Every term in my taxonomy called "fishes" has its own field with a unique number.
My CSV contains a column called fish that does not contain a term name but its unique number (ad.1)
I need to assign the correct term by using this unique number.