Given following jsons file
{
"data": {
"uuid": {
"value": "ed64784-cjjhd6",
"patient": false
},
"name": {
"value": "Name",
"patient": false
},
how to select the uuid value and set it as ids in the migratin definition yml file?
here is my migration yml file: I really don't know how to select the value of the uuid as ids
id: migrate_json_file
label: Migrate content from local json file
source:
plugin: source_url
data_fetcher_plugin: file
data_parser_plugin: json
urls: data/data.json
ids:
value:
selector: uuid/value
type: string
item_selector: /data
fields:
- name: uuid
label: 'uuid'
selector: uuid
- name: title
label: 'title'
selector: name
destination:
plugin: entity:node
process:
type:
plugin: default_value
bundle: produkt
title: name
field_uuid: uuid
sticky:
plugin: default_value
default_value: 0
uid:
plugin: default_value
default_value: 0
migration_dependencies:
required: {}
optional: {}
dependencies:
enforced:
module:
- migration_json_file
Thank you in advance
Sincerely
Hermann
process
section in your migration yml. Should include top levelsource
,process
anddestination
– David Thomas Jan 3 at 23:17