:man-raising-hand: Hey all! I have a question: Do...
# support
g
🙋‍♂️ Hey all! I have a question: Does anyone know how to push new identify users through to Intercom as leads rather than users. (Intercom’s API docs on the lead contact type are found here. It’s specified by setting the role type to
lead
rather than
user
). My gut is telling me that this could be accomplished with a Transformation in Rudderstack, but I’m unsure how to do it. Ideas?
p
Hi Luke, the Intercom destination is using the v1.4 API version, which doesn't support the contact model, it's instead using the User model, you can still identify leads through the anonymous or custom_attributes fields. https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/#using-identify-calls
👍 1
g
Thanks, @plain-parrot-49913! That’s helpful. Can you clarify what it means to identify leads through the anonymous field?
p
in the user object fields, one field that can be used to interpret lead in the anonymous field, see table for reference: https://developers.intercom.com/intercom-api-reference/v1.4/reference/user-model#user-object
this can be passed from a Rudderstack identify call as an additional trait like in this code sample how
unsubscribedFromEmails: true
, was used. https://www.rudderstack.com/docs/destinations/streaming-destinations/intercom/#using-identify-calls