Topic by Christopher Farmer
Content
Hi,
I'm trying to create a new incident and link it to an existing custom object, which is a parent of the incident.
There is a child field property, which links an incident to this custom object, called (for the purpose of this question) "ChildField".
I'm setting the GenericObject object type's typename to "IncidentCustomFieldsc", which I've determined from one of the examples in the documentation which indicates how to link custom objects to contact records through the "ContactCustomFieldsc" property.
When I run this code, I receive the following error:
"Could not find property for given key: TypeName
While processing Incident->CustomFields(rng_v1_2::GenericObject)."
To confirm, if I comment out these lines and do not set any custom fields for the new incident, no error is thrown and the incident is successfully created.
Any ideas where I'm going wrong with this? The child field property is definitely set correctly, so I think the problem may lie around the typename of the GenericObject's object type.
Any help is greatly appreciated.
Many thanks.
Version
Feb '13Code Block
Image
Image may be NSFW.Clik here to view.
