Follow

Data Collection Steps for Troubleshooting Objects and Transforms

In order for Cloud Elements Support to best assist you with your question or issue with Objects and Transforms, it is helpful for the customer to supply us with the following important information.

Object Definitions

Please provide the output from the

GET /organizations/objects/definitions

Call:

Example output:

{
  "myContactOne": {
    "fields": [
      {
        "type": "string",
        "path": "fullName"
      }
    ],
    "level": "organization"
  },
  "myChildObject1": {
    "fields": [],
    "level": "organization"
  },
  "Advocate": {
    "fields": [
      {
        "type": "string",
        "path": "name"
      },
      {
        "type": "string",
        "path": "first_name"
      },
      {
        "type": "string",
        "path": "last_name"
      }
    ],
    "level": "organization"
  },
  "Prospect": {
    "fields": [
      {
        "type": "string",
        "path": "email"
      },
      {
        "type": "string",
        "path": "name"
      },
      {
        "type": "string",
        "path": "first_name"
      },
      {
        "type": "string",
        "path": "last_name"
      }
    ],
    "level": "organization"
  },
  "Referral": {
    "fields": [
      {
        "type": "Prospect",
        "path": "prospect"
      },
      {
        "type": "Advocate",
        "path": "advocate"
      }
    ],
    "level": "organization"
  }
}


Transform Definitions (Org Level)

If you've defined your transformations at the Organization Level:

Please use the:

GET /organizations/elements/{key}/transformations

Call:

To provide a summary of your Organization-level Transforms for a specific Element key (for example, {key} might be sfdc, jira, etc.)

Example output:

{
  "Referral": {
    "level": "organization",
    "vendorName": "contact",
    "startDate": "2015-01-27 13:57:35.8111",
    "fields": [
      {
        "path": "prospect.email",
        "vendorPath": "emailAddress"
      },
      {
        "path": "prospect.name",
        "vendorPath": "firstName"
      },
      {
        "path": "prospect.first_name",
        "vendorPath": ""
      },
      {
        "path": "prospect.last_name",
        "vendorPath": ""
      },
      {
        "path": "advocate.name",
        "vendorPath": "salesPerson"
      },
      {
        "path": "advocate.first_name",
        "vendorPath": ""
      },
      {
        "path": "advocate.last_name",
        "vendorPath": ""
      }
    ],
    "configuration": [
      {
        "type": "passThrough",
        "properties": {
          "fromVendor": false,
          "toVendor": false
        }
      }
    ]
  }
}

Transform Definitions (Instance Level)

If you've defined your transformations at the Instance Level:



Please provide the output from the following call:

GET /instances/{id}/transformations

Example output:

{
  "myContactOne": {
    "level": "instance",
    "vendorName": "companies",
    "startDate": "2015-03-02 10:11:48.904344",
    "fields": [
      {
        "path": "fullName",
        "vendorPath": "properties.name"
      },
      {
        "path": "numberEmployees",
        "vendorPath": "properties.numberofemployees"
      }
    ],
    "configuration": [
      {
        "type": "passThrough",
        "properties": {
          "fromVendor": false,
          "toVendor": false
        }
      }
    ]
  }
}

An Example of the Call you are Making and the Full Cloud Elements Response

Finally, please provide an example of the call you are making. If you are doing a post, please include the full POST body, as well as the Cloud Elements Response.

Example

POST https://console.cloud-elements.com:443/elements/api-v2/hubs/marketing/myContactOne

BODY:

{
  "n_employees": "10",
  "fullName": "companyOne"
}

RESPONSE BODY:

{
  "message": "Bad request.",
  "requestId": "54f47f7f0cf2a1989ec8ade9",
  "providerMessage": "400 - Invalid JSON input: Unknown field 'n_employees' - Bad Request - Request ID: f628332d-9325-491a-8f1f-1e9663917b84"
}



Thanks for providing this information! This will best help us assist you with your question or issue concerning Objects and Transforms.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments