Connections > Eloqua Bulk API connection > Adding fields which are not part of fields API to the custom objects
  

Adding fields which are not part of fields API to the custom objects

Perform the following steps to add the fields that are not part of standard fields in a custom object.
    1Edit the Eloqua Bulk connection.
    2In the Activities or Custom fields Configuration connection attribute, add the following JSON element to the JSON template available in the connection attribute:
    "CustomObjects" :{
    "CO_CustomObject1": ["MappedEntityId","UniqueId"],
    "CO_CustomObject2": ["MappedEntityId","UniqueId"]
    }
    where CO_CustomObject1 and CO_CustomObject2 are the names of custom objects and MappedEntityId and UniqueId are the fields.
    3Now add the following field details to the JSON template:
    These are the details of the fields that you defined in the CustomObjects element added in the previous step.
    "CustomItem": [
    {
    "name": "MappedEntityId",
    "internalName": "MappedEntityId",
    "dataType": "integer",
    "hasReadOnlyConstraint": true,
    "hasNotNullConstraint": false,
    "hasUniquenessConstraint": true,
    "statement": "{{CustomObject[id].MappedEntityId}}"
    },
    {
    "name": "UniqueId",
    "internalName": "UniqueId",
    "dataType": "integer",
    "hasReadOnlyConstraint": true,
    "hasNotNullConstraint": false,
    "hasUniquenessConstraint": true,
    "statement": "{{CustomObject[id].UniqueId}}"
    }
    ]
    After adding the above details, confirm that the JSON structure is valid.
    4Click Test Connection.
    5Click Save.