function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Zoran IlievskiZoran Ilievski 

Custom journey builder activity

Hello.

I'm looking to create a custom journey builder activity which passes the contacts email and region.
This is for a new lead journey and after 30 days we send them a discount code if they aren't converted.

I'm to make so the custom activity:
  1. Get's passed the email and region field, which determines the type of code.
  2. Uses the fields to make an HTTP request to our internal API which will:
    1. Generate a code.
    2. Use the MC API to populate a DE, which will mark it for that specific email.
My question is is there a way of making the activity just run as a step without any front end configuration?
Every example I have found, uses the customActivity.js file to change the parameters passed to the activity endpoint.

And does anyone have an example activity code template besides the first 2 that pop up on google?

This article explains the process exactly, but doesn't provide any examples.
https://tech.just-eat.com/2016/04/04/customising-salesforce-marketing-cloud/

Much appreciated.