# Writing schema name to payload or header

**URL:** <https://forum.confluent.io/t/writing-schema-name-to-payload-or-header/3044>\
**Category:** Kafka Connect\
**Created:** [9 October 2021 17:19 UTC](https://forum.confluent.io/t/writing-schema-name-to-payload-or-header/3044 "2021-10-09T17:19:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satyauec](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@satyauec](https://forum.confluent.io/u/satyauec)\
**Post date:** [9 October 2021 17:19 UTC](https://forum.confluent.io/t/writing-schema-name-to-payload-or-header/3044/1 "2021-10-09T17:19:58Z")

</div>

Dear Confluent community,

We have a single jdbc source connector for multiple tables. There is a need to identify the schema to which the record belongs. We don’t want the complete schema to sync with each record. Schema name ( not the complete schema) is what we only need maybe in the payload or header. Is there a way to achieve this.

---

<div class="post-metadata">

**Author:** ![gklijs](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/gklijs/32/223_2.png) [@gklijs](https://forum.confluent.io/u/gklijs)\
**Post date:** [10 October 2021 22:02 UTC](https://forum.confluent.io/t/writing-schema-name-to-payload-or-header/3044/2 "2021-10-10T22:02:56Z")

</div>

If you use it with schema registry, it will only put a reference to the schema in the payload.  
You can also use custom converters, that for example store the schema name in the header.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [9 November 2021 22:03 UTC](https://forum.confluent.io/t/writing-schema-name-to-payload-or-header/3044/3 "2021-11-09T22:03:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
