Hey Bubblers!
Having an issue with using the API Connector to interact with the SendGrid API to send dynamic email content using a SendGrid template.
Problem:
When using the API Connector to send dynamic emails, the email gets sent and the correct (202) response is received, but the dynamic data is not populated in the email.
What I’m trying to do:
I’m wanting to use the API Connector (and NOT the plugin), because none of the plugins cater for two fields which are available in the API which I want to use, but none of the plugins have inputs for, namely:
-
custom_args
and categories
However, when I setup the SendGrid API in the API Connector using the V3 API docs from here, the actual email that gets sent is not correct.
Things I’ve tried:
-
I’ve tried using the same credentials with the CoPilot SendGrid plugin. This obviously omits the two fields I want added. The email is sent correctly and the dynamic content populates. All good.
-
I’ve tried using the Make.com SendGrid integration to send the email. Works fine. Although I did note that when inspecting the API request that Make sends, it’s of a very different format than the API docs that are stipulated in the link above (and it is using the most up to date - V3 - API version). Maybe that’s just the way the integration has been setup.
-
I’ve tried stripping down the request in the API connector only the required fields from the API. Still, no dynamic content is pulled through (not even the subject field).
-
I’ve tried moving the custom_args value out of the main request data object and nested it inside the
personalizations
array. Didn’t work.
What I thought might work:
- Trying to intercept the API call from CoPilot SendGrid’s Plugin request and copying the curl of that request and modifying it to include the two values I want. I can’t seem to actually isolate that request though using Developer Tools.
- Trying to inspect the source code of the CoPilot plugin to see if I can find the request body and structure in the code somewhere. No luck in finding that.
Any help much appreciated.