# Get customFields from parent variante article

**URL:** <https://forum.shopware.com/t/get-customfields-from-parent-variante-article/64625>\
**Category:** Programming (EN)\
**Created:** [11. Februar 2020 um 22:04 UTC](https://forum.shopware.com/t/get-customfields-from-parent-variante-article/64625 "2020-02-11T22:04:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![onveda\_ak](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@onveda\_ak](https://forum.shopware.com/u/onveda_ak)\
**Post date:** [11. Februar 2020 um 22:04 UTC](https://forum.shopware.com/t/get-customfields-from-parent-variante-article/64625/1 "2020-02-11T22:04:16Z")

</div>

How did I get&nbsp;customFields from my parent variant article?

---

<div class="post-metadata">

**Author:** ![alexbatenburg](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@alexbatenburg](https://forum.shopware.com/u/alexbatenburg)\
**Post date:** [12. Februar 2020 um 12:18 UTC](https://forum.shopware.com/t/get-customfields-from-parent-variante-article/64625/2 "2020-02-12T12:18:28Z")

</div>

In the product entity endpoint there is an array ‚customFields‘ that contain the custom fields.

---

<div class="post-metadata">

**Author:** ![onveda\_ak](https://avatars.discourse-cdn.com/v4/letter/o/e8c25b/32.png) [@onveda\_ak](https://forum.shopware.com/u/onveda_ak)\
**Post date:** [12. Februar 2020 um 17:30 UTC](https://forum.shopware.com/t/get-customfields-from-parent-variante-article/64625/3 "2020-02-12T17:30:47Z")

</div>

@alexbatenburg Yes but this is only the value of current product not of the parent product

---

<div class="post-metadata">

**Author:** ![kzap](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/kzap/32/23038_2.png) [@kzap](https://forum.shopware.com/u/kzap)\
**Post date:** [30. März 2020 um 15:53 UTC](https://forum.shopware.com/t/get-customfields-from-parent-variante-article/64625/4 "2020-03-30T15:53:27Z")

</div>

Hi onveda\_ak,

have you found a solution? I 've got the same problem and would be happy to hear your solution.

Bye

Karina

---

<div class="post-metadata">

**Author:** ![donderda](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/donderda/32/13045_2.png) [@donderda](https://forum.shopware.com/u/donderda)\
**Post date:** [27. Mai 2020 um 09:09 UTC](https://forum.shopware.com/t/get-customfields-from-parent-variante-article/64625/5 "2020-05-27T09:09:01Z")

</div>

Just pushing. Has anybody an example on how to achieve this?

---

<div class="post-metadata">

**Author:** ![donderda](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/donderda/32/13045_2.png) [@donderda](https://forum.shopware.com/u/donderda)\
**Post date:** [27. Mai 2020 um 10:02 UTC](https://forum.shopware.com/t/get-customfields-from-parent-variante-article/64625/6 "2020-05-27T10:02:45Z")

</div>

Ok, so I found a way to make it work. Although I’m not sure if this is the best way to do it. Feedback is highly appreciated:

[https://gist.github.com/Donderda/29378e2168156028c2883154e8b689a4](https://gist.github.com/Donderda/29378e2168156028c2883154e8b689a4)
