ForestAdmin / forest-express

🧱 Dependency of Express Lianas for Forest Admin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customize the parameter used to map intercom users

Esya opened this issue · comments

Currently, the integration uses a field called "email" on the model provided by the mapping parameter to retrieve the associated user in Intercom :

./attributes-getter.js:        return intercom.users.find({ email: customer.email });
./conversations-getter.js:            email: customer.email,

This needs to be a parameter for when the email field has another name (like us), or we could just rely on the ID which is also stored on intercom.

Hi @Esya,

You're right. Other integrations can be configured this way.
We need to improve this but I can't give you any ETA.

Hi @Esya, @cice this improvement has been released in v7.1.0 of the package.

You can now upgrade your agent and configure you Intercom integration this way:
https://docs.forestadmin.com/documentation/reference-guide/integrations#intercom

🌲🌲🌲