Office integration tutorial
Applies to these Dynamics 365 apps:
Commerce, Finance, Human Resources, Supply Chain Management
In this tutorial, you will use and build Office integration experiences that involve Excel, Word, document management, and email.
Overview
In this tutorial, you will use and build Microsoft Office integration experiences that involve Microsoft Excel, Microsoft Word, the document management capabilities of finance and operations apps, and email. You will see how Excel and Word use data entities as an entry point into the system, how Excel can become a core part of the user experience, and how Excel and Word can be used for ad-hoc lightweight reporting. You will also see how files can be stored and shared by using the document management and email capabilities.
Key concepts
- Entities and OData – You will use the Microsoft Dynamics Excel Data Connector App (Excel App) to create, read, update, and delete. The connector uses OData services that are created for any entity that is left in the default state of "public" (DataEntity.Public=Yes).
- Apps for Office – The Excel App is built by using the Apps for Office framework (which is also known as the Office Web API). The Excel App is web-based, and therefore shares technology with the client and will run inside both on-premises Excel instances and Microsoft Excel Online (Microsoft 365). The app runs inside Excel in a task pane.
- Microsoft Office 2016 – The Excel and Word Apps use advances in the Apps for Office framework that were introduced in Office 2016. Therefore, Office 2016 is required in order to run the Excel and Word Apps.
- Authentication – The Excel and Word apps run in a browser window inside Excel and Word. For details about which browser will be used for your configuration, see Browsers used by Office Add-ins. The specified browser is used even if the user is running the client in an InPrivate browsing session in Microsoft Edge, or in a different browser such as Google Chrome. Authentication is facilitated by OAuth, and the user can select accounts and sign in within the app. The browser will first try to automatically sign the user in, so if you aren't signed in as the correct user or if you have trouble signing in, you might need to force a sign-out from the app by using the sign-out link. After signing out, try to sign in again to the app.
- Excel App – In addition to facilitating refresh and publish data operations, the Excel App also provides source and field information, lookups, filtering, error messaging, and a design experience for adding or removing fields, table columns, or labels from entity data sources.
Setup
Load the Fleet data set
During this tutorial, we will mainly use forms, entities, and data in the Fleet Management model. Therefore, we must first load the Fleet data set.
- Go to Fleet Management > Setup > Fleet setup.
- Select Create.
Static Export to Excel experiences
Static Export to Excel
Static Export to Excel provides a quick mechanism for getting data into grids on a page. The standard mechanism for triggering Export to Excel is the Open in Microsoft Office menu. Static Export to Excel is also available via a shortcut menu on the grid.
- Go to Fleet Management > Customers > Customer.
- Select Open in Microsoft Office > Export to Excel > Customers.
- Download and open the workbook that is generated. Note that the columns in the workbook match the columns in the grid.
- Select ("mark") the first two rows by clicking in the left edge of the row, below the "Select all" check mark.
- Right-click the grid header to open the shortcut menu. Note that both Export all rows and Export marked rows are available as commands.
- Select Export marked rows. Note that the columns in the workbook match the columns in the grid, and that the rows that are exported match the rows that you marked.
Modify the static Export to Excel experience
You can suppress the static Export to Excel mechanism for a grid or change the label that appears on the Open in Microsoft Office menu.
- Start Visual Studio. Make sure that it's running as an administrator.
- Select View > Application Explorer (or press Ctrl+E, Ctrl+E).
- Go to AOT > User Interface > Forms > FMCustomer.
- Right-click FMCustomer, and then click Add to new project.
- In Solution Explorer, double-click the FMCustomer form to open the designer view.
- Select FMCustomerDesignTab(Tab)TabPageGrid(TabPage)MainGrid(Grid).
- In the Properties window, find the Export Label property.
- Set the Export Label property to Fleet Customers.
- Save the form. If you're asked whether you want to overwrite the existing form or save it as a new form, click Overwrite.
- Build the solution (press Ctrl+Shift+B).
- In the browser, go to Fleet Management > Customers > Customer.
- Select Open in Microsoft Office. Note that the Customers option has changed to Fleet Customers.
Generated Open in Excel experiences
Generated Open in Excel
Generated Open in Excel options are automatically added to forms when the system finds data entities that have the same root data source as the form. The workbook that is generated will contain a single table data source where the data from that entity is loaded. The Open in Excel experiences are listed on the Open in Microsoft Office menu. (When an entity has the same root data source as a form, it's added as an option in the Open in Excel section of the Open in Microsoft Office menu. This option is referred to as a “generated” option.)
- Go to Fleet Management > Customers > Customer.
- Select Open in Microsoft Office > Open in Excel > Fleet Management Customers (unfiltered).
- Download and open the workbook that is generated. This workbook contains the Excel Data Connector App, a binding to the Fleet Management Customer entity, and a pointer to the server that the workbook was generated from.
- Select Enable editing to enable the Excel Data Connector App to load. Customer data is read from the OData service on the server and added to the table.
- In the browser on the Customer page, click Edit (or press F2), and change the email address of one of the customers.
- In the Excel App, click Refresh. Note that the new email address is shown in Excel.
- In Excel, change the email address of one of the customers.
- In the Excel App, click Publish.
- In the browser, click Refresh in the upper right of the page (or press Shift+F5). Note that the new email address is shown on the Customer page.
- In Excel, click the Settings (gear) button in the lower-right corner of the Excel App. You can use the dialog box that appears to adjust the settings in the current workbook. Note that the Server URL value matches the start of the URL that is shown in the browser. Also note that the data refresh and data publish operations are listed.
- Select Cancel to close the Settings dialog box.
- Select the Message Center (flag) button in the lower-right corner of the Excel App. The message center dialog box that appears provides information about what is occurring in the Excel App.
Add and remove table columns from an existing table data source in the Excel App
The Excel App has a design experience that lets users add and edit bindings to entity data sources and labels. To add and remove fields from an existing binding, you use the edit experience that is outlined in the following steps.
Get a workbook that has an existing table data source:
- Go to Fleet Management > Customers > Customer.
- Select Open in Microsoft Office > Open in Excel > Fleet Management Customers (unfiltered).
- Download and open the workbook that is generated. This workbook contains the Excel Data Connector App, a binding to the Fleet Management Customer entity, and a pointer to the server that the workbook was generated from.
- Select Enable editing to enable the Excel Data Connector App to load. Customer data is read from the OData service on the server and added to the table.
Open the data source for editing:
- In Excel, in the Excel App, click Design. A list of table and field data sources appears.
- Select the Edit (pencil) button next to the existing table data source. The data source details are shown.
Remove fields. In the Selected list, double-click a field. Alternatively, click a field, and then click Remove. To select multiple fields, keep the Ctrl key held down while you click them. To select all fields, press Ctrl+A.
Add fields. In the Available list, double-click a field. Alternatively, click a field, and then click Add. To select multiple fields, keep the Ctrl key held down while you click them. To select all fields, press Ctrl+A.
Change the field order. In the Selected list, click a field, and then click Up or Down.
Change a field label. In the Selected list, click a field, and then click in the Column label field below the list. You can change the label to either a static string or a label identifier that will be translated to the active language (for example, @SYS129977).
Apply the changes that you made to data source fields:
- Select Update to return to the data source list.
- Select Refresh to make sure that any new fields are filled with data.
Change an automatically generated Open in Excel experience
The automatically generated Open in Excel experiences that are created for entities have a single table binding. The list of fields that are added to that table binding is defined by the AutoReport field group if the table binding contains fields. Otherwise, the key and mandatory fields for the entity are automatically added. The order of fields in the AutoReport group determines the order of fields in the table binding.
- Start Visual Studio. Make sure that it's running as an administrator.
- Select View > Application Explorer (or press Ctrl+E, Ctrl+E).
- Go to AOT > Data Model > Data Entities > FMCustomerEntity.
- Right-click FMCustomerEntity, and then click Add to project.
- Expand FMCustomerEntity > Field Groups > AutoReport.
- Reverse the order of the First name and Last name fields by clicking the Last name field and moving it up (press Alt+Up arrow key).
- Save the entity. If you're asked whether you want to overwrite the existing entity or save it as a new entity, click Overwrite.
- Build the solution (press Ctrl+Shift+B).
- In the browser, go to Fleet Management > Customers > Customer.
- Select Open in Microsoft Office > Open in Excel > Fleet Management Customers.
- Open the workbook that is generated.
- Select Enable editing to enable the Excel Data Connector App to load. Note that the Last name column appears before the First name column.
Open in Excel Online
The Excel App is built by using a new Apps for Office framework. This framework provides a JavaScript-based web application programming interface (API) that enables apps to communicate with Office applications. The biggest advantage of this new framework is that apps can run in on-premises Excel instances (Win32), Excel Online (Microsoft 365), and Excel on the Apple iPad. They will also be able to run in other Excel apps in the future.
- Go to Fleet Management > Customers > Customer.
- Select Open in Microsoft Office > Open in Excel > Fleet Management Customers.
- Select SharePoint.
- Browse to the desired Microsoft SharePoint folder.
- Select Save. The default behavior is to open the file after it's saved. Note that the workbook opens in Excel Online. In Excel Online, capabilities of the Excel App, such as refresh and publish, and the design experience, should work just as they work in on-premises Excel instances.
Template Open in Excel experiences
Template Open in Excel
Template options resemble the generated Open in Excel options. They are automatically added to forms when the system finds templates that have the same first data source as the root data source in the form. A workbook template can have multiple data sources. It can also have unbound content. The Open in Excel experiences are listed on the Open in Microsoft Office menu. The Excel workbook designer page provides an easy way to get a generated Open in Excel experience for an entity. It also provides a mechanism getting a blank workbook that contains just the Excel App and a pointer to the server.
- Go to Common > Common > Office integration > Excel workbook designer.
- Select the FleetCustomer entity.
- Add all fields in the list of available fields to the list of selected fields.
- Select Create workbook.
- Open the workbook that is generated. This workbook contains the Excel Data Connector App, a binding to the Fleet Management Customer entity, and a pointer to the server that the workbook was generated from.
- Select Enable editing to enable the Excel Data Connector App to load. Customer data is read from the OData service on the server and added to the table.
- Insert a blank row above the table, and enter Fleet Customers as the title.
- Rename the worksheet FleetCustomers.
- Rearrange some of the fields in the table. Select Design to open the design experience.
- Next to the FleetCustomer data source, there are buttons for editing and deleting the data source. Select Edit to see the field list.
- Select fields, and move them as you require. Set the order for the first three fields to FirstName, LastName, and DriverLicense.
- Select Update. Note that the field order is changed.
- Select Done.
- Select the Settings (gear) button.
- Select Clear binding data so that the workbook contains no bound data.
- Select OK.
- Save the workbook as FleetCustomersBasic.xlsx.
- In the browser, go to Common > Common > Office integration > Document templates.
- Select New.
- Browse to the file that you just saved.
- Select OK. The template is added as a line in the templates table.
- In the FleetCustomersBasic row, clear the Apply current record filter check box, so that an unfiltered list of customers will be loaded after the template is opened.
- Change the Template display name value to Fleet Customers Basic.
- Go to Fleet Management > Customers > Customer.
- Select Open in Microsoft Office. Note that Fleet Customers Basic is now an option in the Open in Excel section. Select that option.
- Open the workbook that is generated.
- Select Enable editing to enable the Excel Data Connector App to load. Customer data is read from the OData service on the server and added to the table binding that you created.
Register a template as a system-defined template
Templates that are registered as system-defined templates are loaded at deployment. This behavior is useful for independent software vendors (ISVs) and partners that want to package templates together with other model artifacts.
Start Visual Studio by opening the previously created project where the model is set to Fleet Management, or create a new project.
Right-click the project, and then click Add > New item.
Select the Resource item type.
Set the name to FleetCustomersBasicTemplate.
Make sure that the FleetCustomersBasic.xlsx file is closed.
Select Add.
Select the FleetCustomersBasic.xlsx file. Note that the resource is added to the project.
Select View > Application Explorer (or press Ctrl+E, Ctrl+E).
Go to AOT > Classes > Code > FMTemplateRegistrations.
Right-click FMTemplateRegistrations, and then click Add to project.
Open FMTemplateRegistrations. The FMTemplateRegistrations.xpp code file should be shown.
Copy one of the existing lines, and change it by providing the template name, resource name, description, display name, and Apply current record filter and List in Open in Office menu values. The display name is the text that appears as an Open in Excel option. The description appears when the user holds the pointer over that item. The display name and description can be either labels or static strings. The code should resemble the following example.
this.addTemplate( OfficeAppApplicationType::Excel, resourceStr(FleetCustomersBasicTemplate), resourceStr(FleetCustomersBasicTemplate), "Template for fleet customers", "Fleet customers basic", NoYes::No, NoYes::Yes);
Save the code. If you're asked whether you want to overwrite the existing code or save it as a new file, click Overwrite.
Build the solution (press Ctrl+Shift+B).
Verify that the change was successful. In the browser, go to Common > Common > Office integration > Document templates.
Select Reload system templates.
Select Yes to confirm that you want to reload the system templates.
Verify that the new system-defined template is loaded, and that the template name is FleetCustomersBasicTemplate.
Journal Entry in Excel experience powered by a template
- Go to General ledger > Journal entries > General journals.
- Make sure that you're in company USMF.
- Create a new journal by clicking New.
- Set the name to GenJrn.
- Select Open lines in Excel.
- Open the workbook that is generated, and enable editing as required. Note that header fields are filled with data.
- Enter a new line, and set the MainAccount field to 110110. Enter a description, a currency, and a debit amount. Note that lookups are provided for the company and currency fields, because those relationships are defined for this entity.
- Select Publish. Note that the line is updated with the current date and a debit amount of 0 (zero).
- In the browser, click Lines. Note that line that you entered in Excel is shown.
Lookups in Excel experiences
Lookups in the Excel App
To facilitate data entry, the Excel App provides lookups and data assistance. Date fields provide a date picker, enumeration (enum) fields provide an enum list, and relationships provide a relationship lookup.
- Go to Fleet Management > Rentals > Rental.
- Select Open in Microsoft Office > Open in Excel > Fleet Management Rentals.
- Open the workbook that is generated.
- Select Enable editing to enable the Excel Data Connector App to load and read in data.
- Select a Drivers license value. Note that a relationship lookup now appears in the Excel App and shows a list of customers. Because relationship lookups are in their first generation, no filtering or sorting is currently supported.
- Select another customer in the lookup, and note that the Drivers license value changes. Because this field is part of the key, click the original Drivers license value to reset it. Note that the Drivers license, First name, and Last name fields form a multi-part key, but the Excel App doesn’t immediately change all parts of the multi-part key.
- Select a Start date value. Note that a date picker now appears in the Excel App.
- Select another date to change the Start date value.
- Select Design, and edit the FleetRental data source by adding the Status field as a column in the table binding.
- When you've finished adding the Status column, click a Status value. Note that an enum list now appears in the Excel App.
- While focus is in the Status column, move up and down the list of rentals to see how quickly the enum list changes to reflect the current value. The whole enum list is shown, so that the user can quickly see all the available values.
- Select a different Status value to see how an enum value can be changed by using a single click.
Create a relationship lookup
When relationships exist between entities, a relationship lookup is shown.
- Start Visual Studio by opening the previously created project where the model is set to Fleet Management, or create a new project.
- Select View > Application Explorer (or press Ctrl+E, Ctrl+E).
- Go to AOT > Data Model > Tables > FMCustGroup.
- Right-click, and then click Open designer.
- In the designer, right-click FMCustGroup, and then click Add-ins > Create data entity. Artifacts are added to the project.
- Open the designer view for FMCustGroupEntity.
- In the property sheet for FMCustGroupEntity, set Public Collection Name to FleetCustomerGroups and Public Entity Name to FleetCustomerGroup.
- Add the CustGroup and Description fields to the AutoLookup field group.
- If FMCustomerEntity isn't already in the project, add it.
- Open the designer view for FMCustomerEntity.
- Right-click Relations, and then click New > Relation.
- On the new relation, set Name to CustomerGroup, Cardinality to ZeroMore, RelatedDataEntity to FMCustGroupEntity, RelatedDataEntityCardinality to ZeroOne, RelationshipType to Association, Role to CustomerGroupSource, and RelatedDataEntityRole to CustomerGroupTarget.
- Build the solution (press Ctrl+Shift+B).
- Verify that the change was successful. In the browser, go to Fleet Management > Customers > Customer.
- Select Open in Microsoft Office > Open in Excel > Fleet Management Customers.
- Open the workbook that is generated.
- Select a Customer group value.
- Change the Customer group value for a customer.
- Publish the change.
- Change the value back, and publish that change.
Create a custom lookup
You can create custom lookups to show data options when an enum or relationship isn't sufficient. The main use case is when data must be retrieved from an external service and presented in real time.
Start Visual Studio by opening the previously created project where the model is set to Fleet Management, or create a new project.
Open the designer view for FMCustomerEntity.
Right-click Methods, and then click New Method.
Add the lookup_Country code from the following example.
public class FMCustomerEntity extends common { [SysODataAction("FMCustomerEntityCountryCustomLookup", false), //Name in $metadata SysODataCollection("_fields", Types::String), //Types in context SysODataFieldLookup(fieldStr(FMCustomerEntity, Country))] //Name of field public static str lookup_Country(Array _fields) { OfficeAppCustomLookupListResult result = new OfficeAppCustomLookupListResult(); result.items().value(1, "US"); result.items().value(2, "AU"); result.items().value(3, "FR"); result.items().value(4, "GR"); result.items().value(5, "NZ"); return result.serialize(); } }
Save the code. If you're asked whether you want to overwrite the existing code or save is as a new file, click Overwrite.
Build the solution (press Ctrl+Shift+B).
Verify that the change was successful. In the browser, go to Fleet Management > Customers > Customer.
Select Open in Microsoft Office > Open in Excel > Fleet Management Customers.
Open the workbook that is generated.
Select a Country/region value.
Change the Country/region value for a customer.
Publish the change.
Change the value back, and publish that change.
Export to Word experiences
Export to Word
Export to Word experiences can be used for lightweight reporting. They are powered by pre-built templates. The Export to Word experiences are listed on the Open in Microsoft Office menu. Let's look at an example experience that has been created for Fleet Management Customers.
- Go to Fleet Management > Customers > Customer.
- Select Open in Microsoft Office > Export to Word > Customer information Fleet Management Customers (unfiltered).
- Download and open the document that is generated. The document contains data from the record that is currently selected.
Create a Word template
The Microsoft Dynamics App for Office can be run in Word to enable the creation of templates that can then be used for document generation.
Create a blank document
- Go to Common > Common > Excel workbook designer.
- Select Create blank document.
- Download and open the document that is generated.
Sign in to the app:
- Select Sign In. The Microsoft Entra sign-in screen should provide a list of credentials. If you encounter an error, force a sign-out (by using the sign-out link), and then sign in again.
- Select the appropriate account, or click Use another account.
- Enter the credentials for that environment, and then click Sign in.
Follow one of these steps:
- Add a fields data source:
- In the app, click Design.
- Select Add fields.
- Select FleetCustomer.
- Select Next to go to the field selection page.
- In the document, add a title and/or some blank lines at the top of the document.
- In the app, in the Available list, select the FirstName field.
- Select Add label to add a content control that references the "First name" label.
- In the document, click to put focus into the document, click again to put focus at the end of the label, and then press the Right arrow key until the cursor is outside the content control (the control box will disappear).
- Add a separator, such as space+hyphen+space (" - ") or space+colon+space (" : ").
- In the app, click Add value to add a content control that references the FirstName field.
- Repeat the process for the LastName field label and value.
- Continue to add fields as desired.
- Add a table data source:
- In the app, click Design.
- Select Add table.
- Select FleetCustomer.
- Select Next to go to the field selection page.
- In the document, add a title and/or some blank lines at the top of the document.
- In the app, in the Available fields list, add the FirstName, LastName, and City fields.
- Select Done.
- Add a fields data source:
In Word, save the template document.
Create a Word template and use it for document generation
After you've built a Word template, you can upload it to create an Export to Word experience.
Upload a template:
- Go to Common > Common > Office integration > Document templates. Alternatively, search for the page.
- Select New.
- Select Browse.
- In the dialog box, select a previously created template, and then click Open. Note that the Root data entity is obtained from the template and appears near the bottom of the dialog box.
- Select OK.
- Scroll down the list of templates to confirm that the template was added.
- Optional: If the template should not be filtered to the user's current record, clear the Apply current record filter check box.
- Optional: If the template should not be filtered to the user's current company, clear the Apply company filter check box.
Use the uploaded template for document generation:
- Go to a page that shares the same root data source as the template's root data entity. For FleetCustomer (FMCustomerEntity), that page is Fleet Management > Customers > Customer.
- Select Open in Microsoft Office > Export to Word, and click the template.
- Download and open the document that is generated.
Document Management and SharePoint experiences
Add a SharePoint document type
The Document Management subsystem can be used to attach files to records. Most non-executable file types are supported as attachments. A document preview is provided for Office document files and PDFs. Administrators create document types to indicate where attachments should be stored. When administrators use SharePoint as the storage location, they must provide a specific folder that the files should be put in. Security of that SharePoint folder is a separate administration responsibility.
- Go to Organization administration > Document management > Document management parameters.
- Select SharePoint.
- Make sure that the Default SharePoint server field is set to a default value for the tenant, such as contosoax7.sharepoint.com.
- Select Test SharePoint connection. Note a successful connection.
- Select Save.
- Go to Organization administration > Document management > Document types.
- Select New.
- Set Type to SharePointDoc.
- Set Name to SharePointDoc.
- Set Location to SharePoint.
- Select the Edit (pencil) button next to the SharePoint Address field.
- On the left side of the dialog box, select a site. For the contosoax7 tenant, select ContosoAX Team Site.
- On the right side of the dialog box, select a folder. For the contosoax7 tenant, select ContosoAX Team Site > Documents > OfficeIntegration > Attachments.
- Select OK.
- Select Save.
- Select the Browse (globe) button next to the SharePoint Address field. Note that a new browser tab that shows the selected folder appears.
- Use Windows Explorer to create a Word document in the Documents folder, and enter a few words in the document.
- In the browser, go to Fleet Management > Customers > Customer.
- Put focus on the first customer, and then click the Attach (paperclip) button in the upper-right corner of the page.
- Select New > SharePointDoc.
- Select Browse, and select the Word document that you created.
- Expand the Preview FastTab to see a preview of the Word document.
- Expand the Attachment FastTab to see the file location of the Word document.
- In the browser, use the previously opened tab that shows the SharePoint folder to double-check that the file has been placed appropriately.
Email experiences
Send mail via a local mail client
Email workflows that are enabled via the SysEmail framework can generate email messages (.eml files) that contain attachments. You can then send these messages via Microsoft Outlook or another email client.
- Go to Accounts receivable > Customers > All customers.
- Select US-008 Sparrow Retail.
- Select Collect > Customer balances > Collections to open the Collections page.
- Select Communicate > Email > Statements to contact.
- Select OK to accept the default values in the dialog box.
- If you're prompted for the mail option to use, clear the Do not ask again check box (you can change this option from the user options page), select Use an email app, such as Outlook, and then click OK.
- If you're running the browser on your laptop, open the email (.eml) file that is generated. If you're running the browser on the VM, copy the file to your laptop, and open it there.
- Note the email address in the To field and the generated workbook attachment.
Send mail via SMTP
Email workflows that are enabled via the SysEmail framework can also be created in a simple email dialog box and then sent via Simple Mail Transfer Protocol (SMTP).
Go to System administration > Setup > Email > Email parameters.
Select SMTP settings.
Set the Outgoing mail server to the desired SMTP server:
- For Microsoft 365 production (including *.onmicrosoft.com accounts): smtp.office365.com (Find this setting via outlook.office.com, at Settings > Mail > POP and IMAP.)
- For Outlook/Hotmail: smtp-mail.outlook.com
Set the user name and password to an appropriate email account and password.
Leave SSLRequired turned on, and leave SMTP port number set to 587.
Select Save.
In the browser, go to Accounts receivable > Customers > All customers.
Select US-008 Sparrow Retail.
Select Collect > Customer balances > Collections to open the Collections page.
Select Communicate > Email > Statements to contact.
Select OK to accept the default values in the dialog box.
If you're prompted for the mail option to use, select Use the Microsoft Dynamics 365 Finance email client, and then click OK.
To receive the test message, change the To address to your email address.
Enter a subject and body for the message.
Select Send. The message should be delivered in one to five minutes. Note that the message will appear to be sent from the email account that is set on the Email parameters page. If that email account is given "Send As" (or "Send email from this mailbox") permissions for the From address that is used in the Send email dialog box, messages will appear to come from that address.
- You can configure "Send As" permissions in the Microsoft 365 admin center (portal.office.com/Admin), at Users > Active users > User > Edit mailbox permissions > Send email from this mailbox. For more information, see Enable sending email from another user's mailbox in Microsoft 365.
- Before users can send email messages, "Send As" permissions for each user email account in the client must be given to the email account that is set on the Email parameters page. For more information, see How to set up a multifunction device or application to send email using Microsoft 365.
Email that is sent directly from the server, without user interaction, is sent via a batch process and requires that the Email distributor batch process be started. Follow these steps to start the process:
- Go to System administration > Periodic tasks > Email processing > Batch.
- Turn on Batch processing.