Skip Navigation
Chat API and Custom Fields
Answer ID 8063   |   Last Review Date 01/14/2019

Why is a call to RequestChat to the Chat API that contains custom fields not populating the custom fields on the chat workspace?


Chat API


Ensure you are referring to the custom fields by their formal name.  For example, here is an excerpt from the soap envelope:


    <RequestChat xmlns="">
      <CustomFields dataType="STRING" name="c$chat_phone_no">
        <DataValue xmlns="">
      <CustomFields dataType="INTEGER" name="c$test">
        <DataValue xmlns="">


Note the naming convention (in bold) of the CustomFields "name" attribute for the custom fields.

For further information refer to Answer ID 5169: Technical Documentation and Sample Code.