I have the following API Call which is working fine with the tool postman. Bit I am stuck with the transfer of this into a web page.

The scenario should be: A user enters his email address on a third party website and when clicking the submit button the triggered email is sended.

How do I come from that working piece to the point that the email is send to any Emailaddress? Meaning the email address and Subscriber key changes dependet from what is typed into the subscription form?

"From": {
    "Address": "info@email.com",
    "Name": "Triggered Send"
"To": {
    "Address": "john.doe@email.com",
    "SubscriberKey": "john.doe@email.com",
    "ContactAttributes": {
        "SubscriberAttributes": {
            "First Name": "John",
            "Last Name": "Doe"



You need a developer to integrate your website with Salesforce Marketing Cloud:

  1. Create an API Integration app in the App Center
  2. Use the FuelSDK-Node-Auth for OAuth 2.0 key management. Be sure to store your CliendID & Client Secret in a secure server.
  3. Integrate your web form with the FuelSDK-Node-REST to send your email dynamically to the email inserted by the client in EmailAddress field.
  • Thank you. That help me already. So there is any way to simulate that process inside the Marketing Cloud with the Cloud Pages ?
    – crow_doe
    Nov 27 '17 at 13:57

You can simulate this process in Cloud page with a combination of Ampscript and SSIS. Note: AppCenter has been migrated into Marketing Cloud, Administration -> Install Packages, to get REST API credentials, you can create a new package, Add a "API Integration" Component, the settings are similar to the old AppCenter. Once you have the ClientID and ClientSecret for the BU.

  1. Create a data extension with two fields: ClientID and ClientSecret to store your rest API credentials so it is not hard coded in cloud page.
  2. Create Cloud page, retrieve API credentials from DE then use HTTPPost2 Ampscript function to make REST API calls e.g. Authentication, TriggerSend
  3. Use SSIS Platform.Function.ParseJSON to parse JSON result from Ampscript HTTPPost2 result to retrieve accessToken and TriggerSend result.
  • Thats a very great approach! Thanks for sharing that idea.
    – crow_doe
    Dec 4 '17 at 10:11

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.