Salesforce Integration with Heroku
May 12, 2023
In this blog, we will learn What is Heroku and How to make a connection between Salesforce and Heroku.
What is Heroku?
Heroku is a cloud-based platform-as-a-service (PaaS) that enables developers to build, deploy, and manage applications quickly and easily. Heroku is a powerful and flexible platform that enables developers to build and deploy applications quickly and easily, while also providing the scalability and availability needed to support growing businesses.
With Heroku, developers can focus on building their applications without having to worry about infrastructure management, scalability, or availability. Heroku handles all the underlying infrastructure and automatically scales resources as needed to handle changes in traffic and usage.
Heroku also provides a range of features and add-ons that enable developers to add functionality to their applications quickly and easily. For example, developers can add databases, caching, email services, and other features to their applications with just a few clicks. Heroku is particularly popular among startups and small businesses that want to develop and deploy applications quickly without having to invest in expensive infrastructure or IT personnel. However, Heroku is also used by larger enterprises that want to take advantage of its scalability and ease of use.
Follow the below steps to make connection between Salesforce and Heroku:
1) Create Heroku App
2) Setup Connection
3) Create Mapping
4) Result
Create Heroku App
- Create an account on Heroku app : https://signup.heroku.com/login
- After creating an account, click on New button and then select Create new app button like the below figure.
- After clicking on the Create new app button, it will navigate you to the creation app page.
- Enter the App name and let the region be default as United States.
- Once the app creation is complete you will be navigated to the Heroku Dashboard.
- Click on the Resources tab on the Dashboard.
- In the Add-ons search box, type Heroku Postgres and then select the Hobby-Dev - Free in the Plan name box then click on the Submit order Form or Provision button.
- Repeat the step 7 for Heroku Connect in the Add-ons search box.
- After provisioning both the resources, click on the Heroku Connect add on which you just provisioned.
2 Setup Connection
- Now, it is time to establish a connection between our Salesforce org and Heroku app.
- After clicking on the Heroku Connect resource(which we just provisioned) you will be navigated to a page where we would need to set up our org connection. Click on the Setup Connection button.
- After clicking on the Setup button, we need to Select our Environment and Version. So, select your salesforce orgs Environment and Version.
- If you want to authorize a Sandbox/Org with a custom domain you can select and change the options from the environment list. API versions will be pre-populated as per Salesforces current Release.
- Clicking on the authorize button will navigate you to the login page for your Salesforce org. Enter the credentials for your salesforce org and click on login.
- Once you successfully authorize your org you will be able to see the connection status like the below figure:
3 Create Mapping
- Now click on the mappings tab. And then click on the Create Mapping button.
- This will initialize all your Salesforce Objects with your authorized org.
- In this scenario we will be choosing the contact object. So, search for Contact in the search box and click on the row.
- Next step for us would be to choose the fields that we want to be polled into our Heroku Apps database. We will be choosing the first name, last name, Mobile phone, phone and email fields. If you don�t have an external ID field in your contact, go ahead and create one. Finally click on the Save button on top.
- We can see the Status of our Mapping fields like the below figure
4 Result
- To see the result, click on the Contact.
- Now we will see the all Contact field we selected in previous step like :
- We can see the result by clicking on the Explorer tab.
Now we are done with this. This is the integration of Salesforce and Heroku which offers a powerful solution for businesses looking to streamline their operations, improve their customer engagement, and drive growth.
I hope this blog helped you!