Topic by Heath Langreck
Content
Has anyone successfully done a create of RightNow custom objects data using XML request? Are there any examples (sample code)?
I have used the RightNow documentation Sample Code XML snippets to successfully invoke different types of creates and updates, even an update of a custom field (system attribute) added to "contacts"; however, I am stuck on getting it to do a create of a different custom object. This custom object was created in RightNow by our admin as a full object (as opposed to the system attribute). It is in the same package "Eloqua" as the system attribute I can update. Whenever I attempt to create using XML over soap via Soap UI tester, I receive the error:
Could not find property for given key: ActivityDetails
While processing GenericField: Eloqua
While processing GenericFields[0]: Eloqua
While processing Contact->CustomFields(rng_v1_2::GenericObject)
I've tried every combination I can think of to put in these various field names (keys it's looking for) of the request, but it's consistent on the error message as long as I have the valid package "Eloqua" named where it should be.
Please help. I've searched these forums and Google for some good working code sample for the custom objects, but I can't seem to locate any like RightNow provides for other scenarios.
Thanks!
Code snipped of XML request attached in code block.
Full error msg:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Sender</faultcode>
<faultstring>Could not find property for given key: ActivityDetails
While processing GenericField: Eloqua
While processing GenericFields[0]: Eloqua
While processing Contact->CustomFields(rng_v1_2::GenericObject).</faultstring>
<detail>
<n0:RequestErrorFault xmlns:n0="urn:faults.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<n0:exceptionCode>INVALID_REQUEST</n0:exceptionCode>
<n0:exceptionMessage>Could not find property for given key: ActivityDetails
While processing GenericField: Eloqua
While processing GenericFields[0]: Eloqua
While processing Contact->CustomFields(rng_v1_2::GenericObject).</n0:exceptionMessage>
</n0:RequestErrorFault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>