# Salesforce integration in closed community?

**URL:** https://meta.discourse.org/t/salesforce-integration-in-closed-community/72763
**Category:** Support
**Created:** [2017年十月25日 14:51 UTC](https://meta.discourse.org/t/salesforce-integration-in-closed-community/72763 "2017-10-25T14:51:41Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![markus9876](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markus9876/32/81185_2.png) [@markus9876](https://meta.discourse.org/u/markus9876)
#### Post date: [2017年十月25日 14:51 UTC](https://meta.discourse.org/t/salesforce-integration-in-closed-community/72763/1 "2017-10-25T14:51:41Z")

</div>

I am interested if it is possible to integrate Salesforce into Discourse or vice versa.  
This is specifically of interest if Salesforce and Discourse are both using SSO, thus the similar user base.

Examples:

- Lead generation out of forum discussion (links back to discussion forum)
- Sales people can see activity of customer/partner in community (to immediately what is of concern for the customer/partner)

I am not a Salesforce expert, thus I don’t know what other use cases are of interest, but I am quite sure that there are some more.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017年十月25日 18:55 UTC](https://meta.discourse.org/t/salesforce-integration-in-closed-community/72763/2 "2017-10-25T18:55:26Z")

</div>

Sure. You should be able to have Discourse use the same SSO master and that should do pretty much what you’re looking for.

---

<div class="post-metadata">

### Author: ![markus9876](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markus9876/32/81185_2.png) [@markus9876](https://meta.discourse.org/u/markus9876)
#### Post date: [2017年十月25日 19:35 UTC](https://meta.discourse.org/t/salesforce-integration-in-closed-community/72763/3 "2017-10-25T19:35:27Z")

</div>

I still cannot imagine how it could work. It’s always difficult to estimate such things before you actually have set up the system. However, at the end such knowledge is often the basis for the decision if you install the system at all.

First of all I assume as Salesforce offers an API and discourse offers an open API almost everything is theoretically possible, right?

However, do your really think it is possible to list the latest or all Discourse forum discussions of a Salesforce account within Salesforce? For this there must be probably some add-on on Salesforce’s side.

On the other hand if I want to generate a Salesforce lead right out of a Discourse discussion I assume it needs some add-on on the side of Discourse to allow that.

It’s still difficult for me to imagine how it could work.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017年十月25日 20:07 UTC](https://meta.discourse.org/t/salesforce-integration-in-closed-community/72763/4 "2017-10-25T20:07:02Z")

</div>

> [@markus9876](#):
>
> I am interested if it is possible to integrate Salesforce into Discourse or vice versa.

Re-reading your question, my definition of “integrate” was a bit simpler than yours.

> [@markus9876](#):
>
> Lead generation out of forum discussion (links back to discussion forum)

Does that mean that the person in the Discussion doesn’t have an account in Salesforce? That does seem complicated, though the [https://meta.discourse.org/t/the-github-linkback-plugin/66081](https://meta.discourse.org/t/the-github-linkback-plugin/66081) might be a starting place to solve that.

> [@markus9876](#):
>
> First of all I assume as Salesforce offers an API and discourse offers an open API almost everything is theoretically possible, right?

That much is true!

I’m not clear exactly what you’re trying to accomplish (I probably don’t know enough about Salesforce enough to understand the question).

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [2017年十月26日 16:20 UTC](https://meta.discourse.org/t/salesforce-integration-in-closed-community/72763/5 "2017-10-26T16:20:26Z")

</div>

We do something similar on our wordpress site, using zapier. When people download a file from our resource library, add their organization or sign up in the community, an email is sent to zapier which then adds new contacts, organizations or website actions. We can then follow up via salesforce.

Since zapier just uses the API of salesforce, it should be possible for a programmer to do the same without zapier. But using zapier is a good quick and dirty solution too, perhaps using a dedicated subscribed user who is notified by email by discourse or something like that.

That said, salesforce is complex and hard to use for us, and we’ve had some issues with zapier imported data not being reliable, so we’ve been devoting our time ad energy instead towards moving our workflow out of salesforce and other tools and into discourse. Discourse is central to my community, so my approach is to try to instead contribute to improving discourse functionality that makes this possible, like group inboxes, tagging personal messages, staged users and the like.

More on that over here:

> [@Discourse as a private email support portal](https://meta.discourse.org/t/discourse-as-a-private-email-support-portal/34444):
>
> Purpose We would like to set it up so Discourse can act as a private email support portal for a team. In this mode a single email address will be mapped to a category, all incoming mail will create new messages in that category that can be viewed by all the users with permission on the category. Users will be automatically provisioned as emails come in. Advantages over central email box Historically we have used a central email box for our team “support” this has proven to have quite a few draw…

---

<div class="post-metadata">

### Author: ![Roksolana\_Kerych](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roksolana_kerych/32/234716_2.png) [@Roksolana\_Kerych](https://meta.discourse.org/u/Roksolana_Kerych)
#### Post date: [2021年九月22日 12:07 UTC](https://meta.discourse.org/t/salesforce-integration-in-closed-community/72763/9 "2021-09-22T12:07:22Z")

</div>

没有自动化解决方案的集成比预期更难实现 😊  
例如，可以通过 Zapier 的连接器将 Discourse 与 ActiveCampaign 集成（相关文档见[此处](https://zapier.com/apps/activecampaign/integrations/discourse?referrer=ActiveCampaignCLIAPI%401.9.9%5Cu0026utm_campaign=App+Directory+Partner+API%5Cu0026utm_source=partners%5Cu0026utm_medium=api+app+directory)），但关于 Salesforce 的相关资源却很难找到。  
要通过 API 实现 Salesforce 集成（尤其是双向集成），建议先明确以下几点：

1. 您的 Salesforce 云是否支持此类集成？
2. 如果支持，Salesforce 中是否有字段可用于映射您希望与 Discourse 同步的数据？
3. 对于双向集成，这些字段在两个系统中是否已正确映射，以确保持续同步时能够被正确识别？  
无论如何，您仍可通过 [Salesforce 集成顾问](https://www.ergonized.com/salesforce-integration-services/) 实现定制化的 API 数据同步。
