This would be better than mine
This template for Marketing Cloud Journey Builder Custom Activity. It is hosted on Heroku and running on NodeJS
This application is to be hosted on Heroku with specific credentials set up in the environment variables for it to be linked with Marketing Cloud. The application has a function that authenticates according the enhanced package Oauth2.
Drag and drop it into the Journey Builder Canvas. Set up the application if necessary through the UI.
After uploading into Heroku and allowing the HTTPS to be set up, fill in the application URL within config.json
Necessary steps thats required to set up the application.
- Create an package within Marketing Cloud.
- Add the API integration component making sure it's a Server - Server integration.
- Add the Journey Builder Activity component.
- Grab the
unique key
from the journey builder activity and place it withinconfig.json
. - Grab the client ID, client secret, JWT Signing Secret and place it within Heroku as a env variables.
jwtSecret
clientId
clientSecret
- Grab the Authentication Base URI and place it within the environment variable in Heroku.
authenticationUrl
- Grab the HTTPS URL that is created by Heroku and place it within config.json replacing
<HTTPS_URL_OF_APP>
.
- 1.0.0
- Initial Push with overall working template
- 1.0.1
- Updated package json
Theon Thai Yun Tang – Portfolio – theonthai@gmail.com
- Fork it (https://github.com/theonthai45/SFMC-custom-activity-template/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request