Invoking Heroku AppLink Apps
Last updated July 14, 2025
Invoke your app’s APIs using various methods after publishing your app with Heroku AppLink. This article describes the different options for invoking your published apps.
You can invoke your app in Salesforce with:
Permissions
If you set the --authorizationPermissionSetName
flag when you published the app, before invoking your published app, assign users the permission set generated.
See Working with AppLink for more information on permissions.
Apex
Apex is a strongly typed, object-oriented programming language on the Salesforce platform. You can make synchronous and asynchronous invocations to the Apex classes and methods the external service generated when you publish your app. Invoking with Apex calls out to your Heroku app from your Salesforce org.
Resources
Type | Resource |
---|---|
Getting Started Guide | Getting Started with Heroku AppLink and Salesforce |
Node.js Sample App | Extending Apex, Flow and Agentforce - Node.js |
Java Sample App | Extending Apex, Flow and Agentforce - Java |
Salesforce Flow
Salesforce Flow is a declarative tool for creating, managing, and running automations in your Salesforce org. You can add the external service action generated from publishing your app to your flow. Using flows makes it easy to call your Heroku app without writing code.
Resources
Type | Resource |
---|---|
Getting Started Guide | Getting Started with Heroku AppLink and Salesforce |
Node.js Sample App | Extending Apex, Flow and Agentforce - Node.js |
Java Sample App | Extending Apex, Flow and Agentforce - Java |
Data Action Target
A Data Cloud data action enables different types of event-driven integrations and orchestrations in Salesforce and Data Cloud. You can create your Heroku app as a data action target to send events to when certain actions happen, such as customer interactions on an app, decreasing customer satisfaction scores, or more.
To create a webhook data action target, run the command:
$ heroku datacloud:data-action-target Example_DAT -a applink-dc-app -o productionOrg
Creating ⬢ example-app as 'Example_DAT' data action target webhook to productionOrg... Created
Resources
Type | Resource |
---|---|
Getting Started Guide | Getting Started with Heroku AppLink and Data Cloud |
Agentforce
Agentforce lets you build intelligent, customizable, and conversational AI agents in Salesforce for assisting employees and customers. Configure your app’s OpenAPI spec so you can generate custom Agentforce actions for your agent to perform specific tasks and perform dynamic calculations on your data.
Resources
Type | Resource |
---|---|
Getting Started Guide | Getting Started with Heroku AppLink and Agentforce |
Python and Java Sample App | Creating Agentforce Custom Actions with Heroku |
Java Sample App | Supercharging Agentforce with Heroku |