thankful-gpu-70135
07/25/2023, 1:30 AMsubscribe: true prop like this:
rudderanalytics.identify('1235', { 'email': 'test_user@foo.com', properties: { subscribe: true } } )
This works great and gets the user added to Klaviyo. However, now we then tried to add Intercom as a destination we we are getting a 400 error:
{
"response": "{\"type\":\"error.list\",\"request_id\":\"004dg7kgn9885bte0cs0\",\"errors\":[{\"code\":\"nested_custom_attributes\",\"message\":\"Cannot submit an object as a custom attribute value\"}]}",
"firstAttemptedAt": "2023-07-25T01:24:22.206Z",
"content-type": "application/json; charset=utf-8"
}
This is the actual request to Intercom from the event explorer. Notice subscribe attribute that's nested:
{
"body": {
"XML": {},
"FORM": {},
"JSON": {
"email": "test_user@foo.com",
"user_id": "1235",
"custom_attributes": {
"properties": {
"subscribe": true
}
},
"last_seen_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
"update_last_request_at": true
},
"JSON_ARRAY": {}
},
"type": "REST",
"files": {},
"method": "POST",
"params": {},
"userId": "b7996d98-96cb-46da-8162-8dcb27f07d73",
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"Authorization": "Bearer ******OjA=",
"Intercom-Version": "1.4"
},
"version": "1",
"endpoint": "https://api.intercom.io/users"
}
This seems strange to me that by default, an important attribute like subscribe is not automatically handled by Rudderstack in the translation for Intercom.
Am I missing something or is the only ways around this to be:
1. Write a transformation to strip out any nested properties
2. call rudderstack's identify call twice, specifying different integrations on each, and modifying the props we send in each?
#2 seems ridiculous, and #1 seems like something that should be automatically handled?millions-activity-52391
07/25/2023, 1:30 AMmillions-activity-52391
07/27/2023, 12:18 PMmillions-activity-52391
08/01/2023, 11:14 AM