Qlik Community

Knowledge

Search or browse our knowledge base to find answers to your questions ranging from account questions to troubleshooting error messages. The content is curated and updated by our global Support team

Announcements
Support Case Portal has moved to Qlik Community! Read the FAQs to start exploring Support resources.

SendGrid - How to get started with SendGrid in Automations

hervebiey
Support
Support

SendGrid - How to get started with SendGrid in Automations

This article gives an overview of the available blocks in the SendGrid connector in Qlik Application Automation. It will also go over some basic examples of creating an email, adding a contact, and using a Raw API Request block.

For more information about how to authenticate the SendGrid connector, see SendGrid - How to Authenticate.

Creating an email

Let’s start with the example of a simple email.

After creating an automation:

1. From the left menu, select the "SendGrid" connector.

2. Drag and drop the "Send Email" block and fill in the necessary fields.

Screenshot 2021-09-16 at 18.32.25.png

3. Click on "Run" to send  the email.

Screenshot 2021-09-17 at 11.55.09.png


Adding a contact

To add a contact to your SendGrid account:

1. From the left menu, select the "SendGrid" connector.

2. Drag and drop the "Upsert Contact" block and fill in the necessary fields.

Screenshot 2021-09-17 at 11.57.14.png

3. Click on "Run". 

Screenshot 2021-09-17 at 12.14.06.png

Using a Raw API Request block

This example shows how to create a Raw API Request to get the amount of contacts in a specific contact list.

The SendGrid documentation for this can be found here.

In this case the URL path is "/marketing/lists/{id}/contacts/count". Notice that part of the path is before the ID and the other part after it.

1. From the left menu, select the "SendGrid" connector.

2. Drag and drop the "Raw API Get Request" block.

3. Select the "Method". Here we will select "GET".

4. Fill in the "Path Pre ID". This is the part of the path that comes before the ID (without the leading and trailing forward slash). In our case this is "marketing/lists".

5. Fill in the "ID" of the list. You can eventually use the "List Contact Lists" block to retrieve this ID.

6. Fill in the "Path Post ID". This is the part of the part that comes after the ID (without the leading forward slash). This field is optional because not all endpoints require this, but in this case it should be filled in, and it's "contacts/count".

7. Click on "Run".

Screenshot 2021-09-20 at 14.40.47.png

Labels (2)
Version history
Revision #:
4 of 4
Last update:
‎2021-09-20 08:42 AM
Updated by:
 
Contributors