# what should I use in product export template code to export fields of my custom table(last image)?

**URL:** <https://forum.shopware.com/t/what-should-i-use-in-product-export-template-code-to-export-fields-of-my-custom-table-last-image/36757>\
**Category:** Allgemein\
**Created:** [14. Mai 2016 um 15:15 UTC](https://forum.shopware.com/t/what-should-i-use-in-product-export-template-code-to-export-fields-of-my-custom-table-last-image/36757 "2016-05-14T15:15:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alirizvi](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@alirizvi](https://forum.shopware.com/u/alirizvi)\
**Post date:** [14. Mai 2016 um 15:15 UTC](https://forum.shopware.com/t/what-should-i-use-in-product-export-template-code-to-export-fields-of-my-custom-table-last-image/36757/1 "2016-05-14T15:15:03Z")

</div>

I have created a table named XYZ, which uses two foreign key articleID and articleDetailID as shown below:

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/a/a2dbcd8406cef66c6c499c3778e231af3ad3f522.png)

&nbsp;

Now, i want to export the fields of above table along with aricles.

&nbsp;

Now what should I use in export template code to export fields of my custom table?

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [14. Mai 2016 um 16:03 UTC](https://forum.shopware.com/t/what-should-i-use-in-product-export-template-code-to-export-fields-of-my-custom-table-last-image/36757/2 "2016-05-14T16:03:48Z")

</div>

Hello,

there is no other way&nbsp;than writing an own plugin that will provide your custom data to the product export.

Moritz

---

<div class="post-metadata">

**Author:** ![alirizvi](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@alirizvi](https://forum.shopware.com/u/alirizvi)\
**Post date:** [14. Mai 2016 um 16:19 UTC](https://forum.shopware.com/t/what-should-i-use-in-product-export-template-code-to-export-fields-of-my-custom-table-last-image/36757/3 "2016-05-14T16:19:45Z")

</div>

Hi Mortiz, thanks for the prompt reply. Can you please elaborate how to achieve it?
