MassLOOP: Automatically Set Email Notification Preference


Each time you run a MassLOOP in Drawloop Document Generation you will automatically receive email notifications that the process has:

  • Began
  • Completed
  • Encountered an error for one or more records

Many users prefer to customize this setting to only receive an email notification when an error is received or when the process ends rather than receiving all three of these emails.

Who receive these notifications? The owner of the Document Package (DDP record) and the User running the MassLOOP.


In order to adjust this setting you will need to add the ‘&batchnotification=’ parameter to your custom button along with the appropriate value (listed below). The entire string should look like this: &batchnotification=ON_ERROR.

BEGIN_AND_COMPLETE  –  Only receive emails when the MassLOOP begins and compeletes.
ON_COMPLETE  –  Only receive an email when the MassLOOP compeletes.
ON_ERROR  –  Only receive an email when the MassLOOP has an error.
NONE  –  Never receive emails.

Sample Code:

{!REQUIRESCRIPT(“/soap/ajax/26.0/connection.js”)}{!REQUIRESCRIPT(“/support/console/26.0/integration.js”)} var ids = {!GETRECORDIDS($ObjectType.Opportunity)};if (!ids || ids.length < 1)alert(“Please select at least one record.”);else{var redirectUrl = “/apex/loop__masslooplus?&batchnotification=ON_ERROR&retURL=” + encodeURI(;redirectUrl += “&recordIds=”+ids.join(“,”);redirectUrl += “&sessionId={!$Api.Session_ID}”;window.location.href = redirectUrl;}

Scroll to top