Skip to main content
Skip table of contents

Connecting to SendGrid via SQL

You can use SQL to connect to SendGrid in the CData Virtuality Studio or the Code Editor in the Web UI.

Pre-requisites

  • You need the AccessToken.

How to Connect

Run the following statements in the CData Virtuality Studio or the Web UI (remember to enter your credentials):

SQL
CALL SYSADMIN.createConnection (
     name => 'sendgrid_src',
     jbossCliTemplateName => 'ws',
     connectionOrResourceAdapterProperties => 'EndPoint=<EndPoint>,AccessToken=<AccessToken>',
     encryptedProperties => ''
);;

CALL SYSADMIN.createDatasource (
     name => 'sendgrid_src',
     translator => 'sendgrid',
     modelProperties => '',
     translatorProperties => '',
     encryptedModelProperties => '',
     encryptedTranslatorProperties => ''
);;
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.