0

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!

2
  • Have you tried skip_on_empty before going the code route?
    – Hudri
    Jun 29, 2020 at 16:55
  • What do you mean by some of the fields change?
    – sonfd
    Jun 29, 2020 at 17:07

1 Answer 1

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.