0

This might seems to be an easy question but I have searched and found no solution for this query of mine.

I would like to know if it is possible to directly inject subscribers from a web page submit form which is built in java and where email and phone number are being captured, (we are not using cloud pages form)

Use that email address in journey builder to send email and SMS.

2

As API-Keys/Credentials are needed to do this, you should perform the injection from your website's backend. Depending on the programming language your website is written in, there are different libraries you can use to achieve this. However you can also do this completely on your own by just sending the correct payload to the Marketing Cloud API.

An example payload for triggering a journey builder entry event with event data can be found in the marketing cloud documentation: POST /interaction/v1/events

The request could look something like this:

Host: https://www.exacttargetapis.com
POST /interaction/v1/events
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN

{
    "ContactID": "CONTACTID_OF_SUBSCRIBER",
    "EventDefinitionKey":"EVENT_DEFINITION_KEY",
    "EstablishContactKey": true,
    "Data": {
        "email": "some@email.com",
        "phone": "555555555"
    }
}

Here you can find some of the available SDKs:

1

If you are using Cloud Pages for your form you can choose Cloud Pages Form Submit Event as your entry source. Here's a link to the Journey Builder Entry Source Documentation if you're looking for additional information. Cloud Pages Submit form

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.