Hi there! I am using RightNow's custom chat interface API to create a chat of my own which connects to their CRM. The chat is based on NodeJS and sends http request with the XML to RN. Everything was fine and it's working perfectly, but there's one problem - I cannot find a way to pass custom fields through the API, whatever I tried it always ignored it and started the chat with the basics - first,last name and email. Can someone help? (the WSDL isn't that clear and according to it it should be just
<ns1:CustomFieldsns2:dataType='???'ns2:name='???'><!-- I assume here you pass the datatype string in our case and custom field name c.username --><ns2:DataValue><ns2:StringValue>test_user</ns2:StringValue><ns2:DataValue></ns2:CustomFields>
Which doesn't work. After many tries this is the last version of the xml (still couldnt get the custom fields working) - everything else works. Thanks!
<s11:Envelopexmlns:s11='http://schemas.xmlsoap.org/soap/envelope/'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><s11:Header><ns1:ChatClientInfoHeaderxmlns:ns1='urn:messages.common.chat.ws.rightnow.com/v1'><ns1:AppID>chhhh</ns1:AppID></ns1:ChatClientInfoHeader><wsse:Securitys11:mustUnderstand="1"xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:UsernameTokenwsu:Id="WssUsernameToken10"xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:Username>api_user</wsse:Username><wsse:PasswordType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password></wsse:UsernameToken></wsse:Security></s11:Header><s11:Body><ns1:RequestChatxmlns:ns1='urn:messages.enduser.chat.ws.rightnow.com/v1'><ns1:TransactionRequestData><ns1:ClientRequestTime>322323</ns1:ClientRequestTime><ns1:ClientTransactionID>4234234234</ns1:ClientTransactionID><ns1:SiteName>mansion</ns1:SiteName></ns1:TransactionRequestData><ns1:CustomFieldsxmlns:ns2='urn:messages.common.chat.ws.rightnow.com/v1'ns2:dataType='OBJECT'ns2:name='C'xsi:type="ns2:GenericObject"><ns2:GenericFieldsdataType="OBJECT"name="c"><ns2:DataValue><ns2:GenericFieldsdataType="STRING"name="username"><ns2:DataValue><ns2:StringValue>test</ns2:StringValue></ns2:DataValue></ns2:GenericFields></ns2:DataValue></ns2:GenericFields></ns1:CustomFields><ns1:CustomerInformation><ns2:EMailAddressxmlns:ns2='urn:messages.common.chat.ws.rightnow.com/v1'>dasd@mansion.com</ns2:EMailAddress><ns2:FirstNamexmlns:ns2='urn:messages.common.chat.ws.rightnow.com/v1'>dsds</ns2:FirstName><ns2:LastNamexmlns:ns2='urn:messages.common.chat.ws.rightnow.com/v1'>dsd</ns2:LastName><ns2:InterfaceIDxmlns:ns2='urn:messages.common.chat.ws.rightnow.com/v1'><ns2:IDid='15'/><ns2:Name>mansion-en</ns2:Name></ns2:InterfaceID></ns1:CustomerInformation><ns1:ChatSessionToken>b087cca6-7102-49f6-b519-c359bcee58b4</ns1:ChatSessionToken></ns1:RequestChat></s11:Body></s11:Envelope>