BeyondERP.Newsletter
Menu

Setup step on the Send email notification page · Retail and Commerce

Run the order email notification job every minute

Send the transactional order emails set up in the email notification profiles.

See how to set it up Back to Retail and Commerce

Used by
Retail operations manager, Retail service
Business process
Create B2C eCommerce sales channel in Dynamics 365 Commerce
Menu item
RetailEventNotificationProcessor
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Order confirmation email is sent”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA page that sets up the Process retail order email notification batch job, which sends transactional order emails to customers.
What you do hereUse this page to schedule the job that sends order notification emails (such as order created, packed or invoiced) defined in the email notification profile.
ExampleFor example, BEAT schedules the job every minute. A web order confirmed at 10:02 gets its Order confirmed email by about 10:03, and the log shows it as sent.
Send email notification page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

When to run it

When to run itWhen you start sending transactional order emails from a channel, and again whenever the job has to be recreated, for example after you enable optimized notification processing on headquarters older than 10.0.31.
How oftenContinuously: Microsoft recommends a recurrence of every 1 minute with no end date.
Batch settingsOne recurring batch job with no end date that repeats every minute, so emails for new order events go out within minutes.
What the output showsEmails to customers for each active notification type in the email notification profile, such as order created, order confirmed, packing completed or order invoiced, each with an entry in the email notification logs. When customers get no email, the job has usually stopped, the notification type isn't active, or the type has no email template.

Source: Microsoft Learn

Setup steps on this page

Run the order email notification job every minute

Send the transactional order emails set up in the email notification profiles.

Steps from Microsoft

  1. Go to Retail and Commerce > Retail and Commerce IT > Email and notifications > Send email notification.
  2. Before you schedule the job, make sure the channel (or Commerce parameters > General) has an active email notification profile whose notification types each point to an organization email template. The job only sends emails for those types.
  3. In the Process retail order email notification dialog, select Recurrence and then No end date, so the job keeps running.
  4. Under Recurrence pattern, select Minutes and set Count to 1, so new order events are emailed as quickly as possible.
  5. If you turn on the Optimized order notifications processing feature, the job runs several tasks in parallel. On headquarters older than 10.0.31, first delete the running job under System administration > Inquiries > Batch jobs and then create it again here.
  6. Confirm both dialogs, then create a test order in the channel and check that the customer receives the order created email.

Source: Microsoft Learn

Common errors and fixes

MessageWhat to do
Before 10.0.31, the optimized feature doesn't speed up sendingOn headquarters versions older than 10.0.31, delete the running Process retail order email notification batch job and create it again after turning on the feature. Microsoft Learn

Test checklist

  1. A test sales order in a channel with an active notification profile triggers the order created email.
  2. The email notification logs show the email as sent successfully.
  3. The batch job repeats every minute and has no end date.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Run the order email notification job every minuteSchedule Send email notification with no end date, recurring every 1 minute.Order emails are only sent while the Process retail order email notification job runs; a 1-minute recurrence sends them as fast as possible.Should the optimized processing feature be turned on?Setting up profiles and templates but never scheduling the job, so customers get no order emails.Test: Order confirmation email is sent

Feature management and licence

Feature to turn onOptimized order notifications processing (Optional: turn it on in Feature management)
Licence or add-inIn this system 2 roles can open this page, among them Retail service and Retail operations manager.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: the notifications it sends are logged per legal entity in the Commerce email notification log. Microsoft data model
Can it be undoneIrreversible: A sent email can't be recalled.
If you change it laterSends order emails to customers and writes email notification log entries. On headquarters versions older than 10.0.31, turning on optimized notification processing requires deleting and recreating this batch job. Microsoft Learn
Technical architect

6Technical

Menu itemRetailEventNotificationProcessor Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Who can open it

2 security roles. Select a role to see its duties and privileges.

  • RoleRetail operations managerRetailOperationsManager
    • DutyView Email notification formsRetailEventNotification
      • PrivilegeView Email notification formsRetailEventNotification
  • RoleRetail serviceRetailService
    • DutyView Email notification formsRetailEventNotification
      • PrivilegeView Email notification formsRetailEventNotification
Roles worked out from Microsoft's standard security setup and checked in a working Dynamics 365 system (version 10.0.49)
Roles to set it up and use itTo use itRetail service RetailServiceRetail operations manager RetailOperationsManagerGive people one of these roles. On this system, 2 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=RetailEventNotificationProcessor
Data migrationLoad order: Send email notification has no data entity in Data management, so it can't be loaded from a file or a configuration template. It works on data that is already in the system, so there is nothing to load.Checked in Dynamics 365
Everyone

8Sources

To cite this step: RC-ITJ-080, Run the order email notification job every minute. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/RC-ITJ-080