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!

  • Have you tried skip_on_empty before going the code route? – Hudri Jun 29 at 16:55
  • What do you mean by some of the fields change? – sonfd Jun 29 at 17:07
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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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