Dynamically add destination fields to migration - importing data when fields on destination entity are not know I am trying to import content from JSON from an API call. This API call has different source data depending on what the call is.
For my migration from this JSON, there are set fields that I have coded into the YAML migration file under the process section. The issue I am running into is, some of the fields change, so I need a way to dynamically add these fields to the process section if they exists. Is this possible with Migration?
I think there must be some way to do if with derivers, but I am struggling at how to implement this.
Any insight would be greatly appreciated!
I think you could try to implement something similar https://www.webomelette.com/dynamic-migrations-using-templates-drupal-8. This is a good example of dynamic migration.