# How to Pass the Custom Field values while creating Contacts

**URL:** https://integration.keap.com/t/how-to-pass-the-custom-field-values-while-creating-contacts/54861
**Category:** API Q&A
**Created:** [October 17, 2018, 7:16am UTC](https://integration.keap.com/t/how-to-pass-the-custom-field-values-while-creating-contacts/54861 "2018-10-17T07:16:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![SRINI\_VASU](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SRINI\_VASU](https://integration.keap.com/u/SRINI_VASU)
#### Post date: [October 17, 2018, 7:16am UTC](https://integration.keap.com/t/how-to-pass-the-custom-field-values-while-creating-contacts/54861/1 "2018-10-17T07:16:00Z")

</div>

In Documentation create contact code, through this how can send custom field values

\<?xml version='1.0' encoding='UTF-8'?\> ContactService.add privateKey FirstName John LastName Doe Email there\_he\_go@itsjohndoe.com

---

<div class="post-metadata">

### Author: ![Nicholas\_Trecina](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/nicholas_trecina/32/5338_2.png) [@Nicholas\_Trecina](https://integration.keap.com/u/Nicholas_Trecina)
#### Post date: [October 17, 2018, 5:51pm UTC](https://integration.keap.com/t/how-to-pass-the-custom-field-values-while-creating-contacts/54861/2 "2018-10-17T17:51:11Z")

</div>

Hi @SRINI_VASU, when using the XML-RPC API you will need to reference custom fields via their “Database name”. This can be found under Admin \> Settings \> General \> Set up custom fields for: Contact \> View the field database names (for the API). You also need to prepend the database name with an underscore which indicates that it is a custom field like this: `_CustomFieldName`.

---

<div class="post-metadata">

### Author: ![SRINI\_VASU](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SRINI\_VASU](https://integration.keap.com/u/SRINI_VASU)
#### Post date: [October 17, 2018, 7:00pm UTC](https://integration.keap.com/t/how-to-pass-the-custom-field-values-while-creating-contacts/54861/3 "2018-10-17T19:00:04Z")

</div>

thanks Nicholas it’s working

---

<div class="post-metadata">

### Author: ![SRINI\_VASU](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SRINI\_VASU](https://integration.keap.com/u/SRINI_VASU)
#### Post date: [October 18, 2018, 7:39am UTC](https://integration.keap.com/t/how-to-pass-the-custom-field-values-while-creating-contacts/54861/4 "2018-10-18T07:39:13Z")

</div>

Then how to pass the Phone field values
