SAP Open Connectors

Eloqua - How to POST a Custom Object

Working with Eloqua's Custom Objects can be tricky. This guide aims to clarify how to POST a CustomObject to Eloqua's API. 

Using the POST /{objectName} endpoint specify the custom object that you will being POSTing to. Create a JSON body with the records fields you wish to POST using the following template:

{
  "custom":{
    "99": "Sample Description 55555",
    "100": "Page Visit Activitia",
    "101": "ShiaLeWoof@cloud-elements.com",
    "102": "501"
  }
}

Note: You have to use the Custom Field Ids rather than their names, so instead of "email" you would use "101". Additionally, you have to wrap your fields inside of a "custom" object.