Skip to content
Snippets Groups Projects
Commit adb18a67 authored by Martin Groppe's avatar Martin Groppe
Browse files

Merge branch 'bulkmail_continuemailing_action_fix' into '2021.2.3'

bulkmail_continuemailing_action_fix

See merge request xrm/basic!1569
parents 2793f127 ac4144b6
No related branches found
No related tags found
No related merge requests found
import("system.translate");
import("system.question");
import("Sql_lib");
import("system.neon");
import("system.vars");
import("Bulkmail_lib");
import("system.db");
import("KeywordRegistry_basic");
var send = question.askYesNo(translate.text("Bulk mail"), translate.text("Should the mail be sent now?"), false);
if (send)
{
//UPDATE BULKMAIL STATUS
newWhere("BULKMAIL.BULKMAILID", "$field.BULKMAILID")
.updateFields({"STATUS" : $KeywordRegistry.bulkMailStatus$beingSent()});
neon.refreshAll();
BulkMailUtils.sendBulkMailOnServer(vars.get("$field.BULKMAILID"));
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment