Skip to content

heroku-reference-apps/heroku-appLink-datacloud-bookings-demo

Heroku AppLink DataCloud Bookings Demo

Deploy

This is a sample Heroku web application that connects to Salesforce Data Cloud to display booking information for a specified guest. It uses Heroku AppLink for secure authentication and connection.

After deploying the application using the button, you must authorize it to connect to your Salesforce Data Cloud organization.

Post-Deployment Configuration

After deploying the application, follow these steps to configure it.

  1. Install the Heroku AppLink CLI plugin:

    heroku plugins:install @heroku-cli/plugin-applink
  2. Set the Data Cloud Org Developer Name: If you didn't set this during the "Deploy to Heroku" button setup, you can set it manually. Replace <your-app-name> with the name of your Heroku app and <DEVELOPER_NAME> with the Developer Name of your Data Cloud org.

    heroku config:set DATA_CLOUD_ORG_DEVELOPER_NAME=<DEVELOPER_NAME> --app <your-app-name>
  3. Set the Heroku App ID: This is required for certain AppLink operations. This command requires jq (a command-line JSON processor) to be installed.

    heroku config:set HEROKU_APP_ID="$(heroku apps:info --json --app <your-app-name> | jq -r '.app.id')"
  4. Authorize the AppLink connection: Run the following command, replacing <your-app-name> and <DEVELOPER_NAME> with your specific values.

    heroku datacloud:authorizations:add --app <your-app-name> <DEVELOPER_NAME>

    This command will initiate a browser-based login to your Salesforce org to grant the necessary permissions.

Once authorized, your application will be able to query Data Cloud.

About

Heroku AppLink DataCloud Bookings Demo

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published