Getting email status through api
Refer to code below for getitng status of mail sent through CRM any modules.
You can get the subject as a key in each response, so if you want to filter a specific email you just put an if condition for that.
Note that the status will be given as a JSON array, you will have to get the exact value from "type" key
{
updater = invokeurl
[
type :GET
connection:"<connection" //header field in case of external apis
];
emailList = updater.get("Emails");
for each email in emailList
{
//if(email.get("subject") == "Congratulations")
emailStatus = email.get("status");
info emailStatus;
}
}