How can I use dynamic value for woocommerce product gallery?

I’m trying to create woocommerce product via n8n. I see there have single image option and add images. example in first product have 4 images and second product 3. in this case I can’t control this. what is the solution. Help me please. I’m a learner.

Hey @Sujon_ahmed !

I just watched some YouTube tutorials, and I remember that it expects an array … so in src field try this expression:

{{ $json.ProductGallery.split(‘,’).map(url => ({ src: url.trim() })) }}

It should populate the field with url’s only.

Hope it helps !

Cheers!