AnsweredAssumed Answered

How do I configure a dynamic email response integration with SendGrid?

Question asked by Adam_Martin-esristaff Employee on Aug 22, 2019
Latest reply on Aug 22, 2019 by ichivite-esristaff

I'd like to send users who have made a Survey123 submission an auto-email (if they were logged in) with their EDIT Link and some other information in the email body that pulls dynamically from the Survey123 response itself.

 

Using SendGrid Transactional template which requires providing a TEST Data in JSON format... I'm not a JSON expert and not sure how to back into the JSON format that would corresond to the dynamic variables that are provided via Integromat to the SendGrid Module. Sample flow below.

 

 

SendGrid has some documentation but not sure how to structure the test data to point to the Survey JSON

But not sure how to get from: {{8.userInfo.firstName}} (which I see in Integromat as a variable) to something like....

 

https://sendgrid.com/docs/for-developers/sending-email/using-handlebars/#basic-replacement 

https://sendgrid.com/docs/for-developers/sending-email/using-handlebars/#basic-replacementTest Data should contain:

{    "user":{       "profile":{          "firstName":"Ben"       }    } }

May be there's a doc gap if the JSON is generated by Integromat, not ArcGIS?

Outcomes