Office 365
Microsoft Office 365 lets you access the latest versions of Word, Excel, PowerPoint, Outlook, OneNote, etc., wherever you go and across all your devices.
With Microsoft Office 365 integrated to SYSPRO, you don't need a separate desktop installation of Office 365; you can integrate or combine SYSPRO data into an Office 365 document directly from Office 365.
Exploring
Microsoft Azure is a cloud computing service created by Microsoft to build, test, deploy, and manage applications and services through Microsoft-managed data centers.
It caters for:
-
Software as a service (SaaS)
-
Platform as a service (PaaS)
-
Infrastructure as a service (IaaS)
In addition, Microsoft Azure supports different programming languages, tools and frameworks (including Microsoft-specific and third-party software and systems).
A Microsoft Office 365 tenant is a regional location that provides cloud services dedicated to an organization (e.g. Exchange Online, SharePoint Online, Teams, etc). It falls within the overall O365 Data Center and can be seen as an organization's sandbox environment, housing all its digital assets (e.g. users, domains, subscriptions and data).
Starting
- A valid SYSPRO login, with SYSPRO administrator access rights.
- A valid Microsoft Azure subscription.
- A valid Microsoft Office 365 account.
Ensure that you save the appropriate entries within the and Discovery resource id setup options (Setup Options > System Setup > Connectivity). Although both fields already contain valid pre-populated entries, you must open the Setup Options program and save the settings for these to take effect.
The following configuration options in SYSPRO may affect processing within this program or feature, including whether certain fields and options are accessible.
The Setup Options program lets you configure how SYSPRO behaves across all modules. These settings can affect processing within this program.
Setup Options > Company > General
-
Email/SMTP settings:
- Method when emailing
- Use system-wide SMTP details
- SMTP server IP address
- Outgoing email address
- Username
- Password
- Server port
- Use SSL
Setup Options > System Setup > Connectivity
-
Email/SMTP settings:
- SMTP server IP address
- Outgoing email address
- Username
- Password
- Server port
- Use SSL
- Use system-wide settings
-
Office 365:
- Tenant id
- Exchange web service
- Client id
- Discovery resource id
-
Currently, the Microsoft Office 365 integration with SYSPRO does not support Multi-Factor Authentication.
Solving
Full error message:
This error message appears when emailing or exporting to Excel after configuring a new native application in Microsoft Azure, if the Default Client Type is not configured as public.
Update the configuration of your application in Microsoft Azure as follows:
-
Go to the App Registration for your application.
-
Select Authentication from the Manage menu.
-
Locate the Default client type section under Advanced Settings and enable the Treat application as a public client option.
-
Save your changes.
-
Open the Office 365 Tenant Maintenance program (Program List > Administration > General Setup) and add the multiple tenant records according to your requirements.
-
Open the Personal Settings program (SYSPRO Ribbon bar > Home > Personal Settings) to indicate which tenant SYSPRO must for the operator use when communicating with Microsoft Office 365).
If email is defined as an output option in SRS, then Office Integration lets you browse on contacts defined in Office 365 when you browse on To, Cc or Bcc email addresses.
Office 365 Excel is used when exporting information from a SYSPRO grid view or list view to Microsoft Excel.
If you use Office 365 credentials to send email using SMTP (using server-side reporting) then you'll need to configure an app password to use when sending email via SMTP. This is because basic authentication is being deprecated by Microsoft.
-
Microsoft Office 365 configuration:
-
Sign into the Microsoft Office 365 portal:
portal.office.com
-
Select the View Account option or navigate to https://myaccount.microsoft.com/?ref=MeControl
-
From the Security Info section, select the Update info option.
-
Select Add sign-in method.
-
Indicate App password as the method that you want to add.
-
Select Add to proceed.
-
Enter the relevant App password name.
-
Once you have entered the app password name, the Next button becomes enabled.
Select Next for your app password to be generated.
-
Copy the generated password for use within SYSPRO to update your Office 365 integration password.
-
-
Log into SYSPRO:
-
Open thePersonal Settings program (SYSPRO Ribbon bar > Home > Personal Settings).
-
Update the password entry against the Password field of the Office 365 Credentials section with the app password created for the specific Office 365 account.
-
Save your changes.
-
You can now use the app password when sending email via SMTP using Office 365 Integration.
For more information regarding Microsoft's deprecation of Basic authentication:
https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online
Using
Before you can enable Microsoft Office 365 support within SYSPRO, you must register your application within Microsoft Azure.
This provides you with an Application ID that is required when configuring SYSPRO.
-
Access the Microsoft Azure portal:
https://portal.azure.com
-
Select the Azure Active Directory option from the main menu.
-
From the Manage menu, select the App registrations option.
-
Select the specific application you want to maintain.
Alternatively, select the New Registration option if you want to create a new application.
For detailed information on how to create a new application registration, please view the Microsoft documentation site: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/walkthrough-register-app-azure-active-directory.
-
Ensure that the following Advanced Settings options (accessible from the Authentication section) are enabled against your application:
- Access tokens
- ID tokens
- Treat application as a public client
-
Add the required APIs to your application:
Select View API permissions followed by the Add a permission option.
The Request API Permissions screen is displayed.
-
From the Microsoft APIs pane, add the following APIs:
-
Azure Active Directory Graph
-
Exchange
-
SharePoint
-
-
Set up the permissions for each API:
Azure Active Directory Graph-
Select the Azure Active Directory Graph API.
The Request API Permissions screen is displayed.
-
Select Delegated permissions and enable the following permissions:
-
Directory
- Directory.AccessAsUser.All
- Directory.Read.All
-
Group
- Group.Read.All
-
User
- User.Read
-
-
Select the Add permissions option to save your changes.
-
Enable the Grant Admin Consent option for the API.
Exchange-
Select the Exchange API.
The Request API Permissions screen is displayed.
-
Select Delegated permissions and enable the following permissions:
-
Calendars
- Calendars.Read
- Calendars.ReadWrite
-
Contacts
- Contacts.Read
- Contacts.ReadWrite
-
Mail
- Mail.Read
- Mail.ReadWrite
- Mail.Send
-
-
Select the Add permissions option to save your changes.
-
Enable the Grant Admin Consent option for the API.
SharePoint-
Select the SharePoint API.
The Request API Permissions screen is displayed.
-
Select Delegated permissions and enable the following permissions:
-
MyFiles
- MyFiles.Read
- MyFiles.Write
-
-
Select the Add permissions option to save your changes.
-
Enable the Grant Admin Consent option for the API.
-
- Once you have successfully configured the required permissions, save your application.
Once you have registered and configured your application within Microsoft Azure, you need to configure details within SYSPRO.
-
Obtain the Application ID from the Microsoft Azure platform for your newly created application.
-
Launch SYSPRO and open the Setup Options program (Setup Options > System Setup > Connectivity).
-
Ensure the following fields are configured correctly with your details:
-
Email/SMTP settings:
SMTP server IP addressThis is the default IP address of the specific SMTP server that SYSPRO will use to send messages when the user requests a password reset.
Outgoing email addressThis is the default email address of the sender of the message.
This entry must contain a valid email structure (e.g. auto.generated.mail@company.com).
UsernameThis the user name of the email account.
PasswordThis is the password of the email account.
Server portThis indicates the server port to be used.
We recommend using Port 587 for SMTP communications in SYSPRO, as it includes TLS encryption and adheres to IETF guidelines.
We advise against using Port 25 and Port 465:
-
Port 25 is typically used for SMTP relaying, but is traditionally blocked by Internet Service and Cloud Hosting Providers to curb the amount of spam relayed from compromised computers or servers. We don't recommend any email traffic using this port unless you're specifically managing your own mail server.
-
Port 465 is not compliant. IANA has reassigned a new service to this port, so you shouldn't use this port for SMTP communications anymore. It's typically only used if your email server demands it.
-
-
Office 365:
Tenant idThis indicates the id of your active directory in the Microsoft Azure portal.
Your SYSPROOfficeCloud application will be added to this directory.
Exchange web serviceThis indicates the URI to your exchange web service address.
If you don't have an exchange server, you can use the default provided by Microsoft Office 365 (i.e. https://outlook.office365.com/ews/exchange.asmx).
Client idThis indicates the client ID of the SYSPROOfficeCloud application added to your active directory in Microsoft Azure.
This is pre-populated with https://login.microsoftonline.com.
The System Setup program needs to be accessed and saved so that the pre-populated entry in this field can take effect.
Discovery resource idThis is pre-populated with https://graph.microsoft.com.
The System Setup program needs to be accessed and saved so that the pre-populated entry in this field can take effect.
-
-
Save your changes and exit the program.
-
-
Open the Personal Settings program in SYSPRO (SYSPRO Ribbon bar > Home > Personal Settings).
-
Configure the Office 365 credentials per operator as follows:
-
Enable the Microsoft Office 365 option.
-
Capture the operator's Office 365 credentials (i.e. User name and Password).
-
Indicate which tenant must be used when communicating with Office 365.
-
-
Save your changes and exit the program.
-
Your Office 365 support is now configured for support within SYSPRO.
The following indicates areas in the product that may be affected by implementing this feature:
Program List > Administration > General Setup
This program lets you maintain multiple tenants for Microsoft Office 365, which then stores the information in the AdmOfficeTenants system-wide table.
Once this is configured, you can use the Personal Settings program (SYSPRO Ribbon bar > Home > Personal Settings) to define which tenant SYSPRO must use for each operator when communicating with Microsoft Office 365.
Setup Options > System Setup > Connectivity
This program lets you configure the Email/SMTP settings and Office 365 for the company.
SYSPRO Ribbon bar > Home > Personal Settings
This program lets you maintain the Microsoft Office 365 credentials per operator.
Copyright © 2022 SYSPRO PTY Ltd.