DEV Community

Mariela Dimitrova for Software AG Tech Community

Posted on • Originally published at tech.forums.softwareag.com on

Send Email using the SendGrid dynamic template in webMethods.io Integration Workflow

Summary:

This article describes the step-by-step process of creating the Integration Workflow for sending email using the SendGrid Connector in webMethods.io Integration

Pre-requisites:

  • The user needs to have a working SendGrid account to access the SendGrid Email API
  • Working webMethods.io Integration cloud tenant

Contents:

Section 1: Create API Key in SendGrid settings required for authentication to access the SendGrid Email API

Section 2: Create Dynamic Template in SendGrid which can be used to send emails using the dynamic templates

Section 3: Creating the integration workflow for sending email using the dynamic template in webMethods.io Integration

Steps:

Section 1. Create API Key in SendGrid settings required for authentication to access the SendGrid Email API

  1. Login to the SendGrid using your SendGrid credentials
  2. Once you logged in, navigate to Settings > API Keys
  3. Click Create API Key , enter the API Key Name and select Full Access under API Key Permissions image
  4. Click Create & View , copy the API Key value generated and click Done image

Section 2. Create Dynamic Template in SendGrid which can be used to send emails using the dynamic templates

  1. Navigate to Email API > Dynamic templates
  2. Click Create a Dynamic Template , enter the name and click Create image
  3. Click Add Version to select or add email design to the template image
  4. Create Dynamic Template Version by selecting the email design image
  5. Edit to design the email dynamic template and test your email image
  6. Save your changes and copy the Template ID to use it later for testing the send email API using the dynamic template image

Section 3. Creating the integration workflow for sending email using the dynamic template in webMethods.io Integration

  1. Create new Workflow, edit Workflow Name, enter the name and click Done
  2. From the Connectors palette, select the SendGrid connector and drag it onto the panel image
  3. Click Settings to edit, select Action sendMail and click + to add account for SendGrid connection image
  4. Enter API Key and click Add to add the account image
  5. Click Next to configure the Action by entering the required input parameters
  6. Enter the values for the required input parameters as shown below, personalizations > to(list): Enter the list of user email addresses and names to receive the email from: Enter the from email address and name subject: Enter the email subject template_id: Enter the template ID of the dynamic template created image image image
  7. Click Next and click Test to test the action and verify image
  8. If Test is successful, click Done and Save the workflow
  9. Click Run to execute the workflow and verify if the email is sent image

Read full topic

Image of Datadog

Master Mobile Monitoring for iOS Apps

Monitor your app’s health with real-time insights into crash-free rates, start times, and more. Optimize performance and prevent user churn by addressing critical issues like app hangs, and ANRs. Learn how to keep your iOS app running smoothly across all devices by downloading this eBook.

Get The eBook

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series