Set up the MS Dynamics 365 Finance and Operations integration


Overview


Preparation


Connection


Configuration


Export an expense


Overview

To set up the integration, you will need: 

- System Administrator permission on MS Dynamics 365 Finance & Operations

- Admin or External Bookkeeper role on Pleo


Key features of the integration

  • Export of:
    • Card Expenses 
    • Reimbursements 
    • Invoices 


  • The integration supports the following:
    • Tag Groups and Tags - Financial Dimensions, Sub-projects, entity-based dimensions and custom dimensions
    • General Ledger Journals and Vendor Bills (no support for Expense Journals)


Preparation

Installation

  1. Copy model file into any directory on your devbox (for example, c:\temp)
  2. From the Command Prompt, navigate to the directory where AOSService is stored:
    • For cloud environment (drive K:\AOSService\PackagesLocalDirectory\bin): cd /d K:\AOSService\PackagesLocalDirectory\bin 
    • For on-premise environment (drive C:\AOSService\PackagesLocalDirectory\bin): 

      cd C:\AOSService\PackagesLocalDirectory\bin

  3. Type import command:
    • For a cloud environment
      ModelUtil.exe-import-metadatastorepath=K:\AOSService\PackagesLocalDirectory -file=c:\temp\PleoIntegration-Pleo.axmodel 
    • For an on-premise environment:
      ModelUtil.exe-import-metadatastorepath=C:\AOSService\PackagesLocalDirectory -file=c:\temp\PleoIntegration-Pleo.axmodel
  4. Open Visual Studio
  5. Go to the Extensions > Dynamics 365 > Build Models
  6. Check PleoIntegration in the list
  7. In the Options tab, select Synchronize Database
  8. Click Build


When the build is complete, you should see the message that the compilation succeeded with 0 warnings.


You'll be able to find Pleo as a menu item within Finance and Operations.



Create accounts

  1. In MS Dynamics 365 Finance and Operations, select Chart of Accounts
  2. Access Accounts
  3. Create the following accounts: 
    1. An account to track Pleo account balance
    2. An account to track employee expenses (out-of-pocket expenses and corresponding reimbursements)
    3. An account to track external reimbursements (employee reimbursements settled outside of Pleo)
Note: You can also select existing journals to track expenses

Connection

  1. In MS Dynamics 365 Finance and Operations, select the subsidiary you’re connecting to
  2. Access the Modules
  3. Click on Pleo
  4. Select Connect 
  5. Click Connect
  6. In Pleo, navigate to Settings
  7. Click Accounting
  8. Search for D365 Finance and Operations
  9. Copy the generated API Key
  10. In MS Dynamics 365 Finance and Operations, select: 
    • Production, if you are connecting to your live Pleo account
    • Staging, if you are connecting to a Pleo test environment.
  11. Paste the API Key
  12. Click Activate
  13. Click Save

Configuration

  • General configuration
    1. In MS Dynamics 365 Finance and Operations, go to Pleo
    2. Access Integration Settings
    3. Click Setup
      • For Card expenses - select the corresponding account created 
      • For Reimbursements:
        • Select a Journal (to track Employee expense)
        • Select an account (to track out-of-pocket expenses)
        • Select an account (to track external reimbursements)
      • For Invoices - select a Journal for Invoices and Invoice Payments


Good to know
  • Automatically post Pleo card expenses, out-of-pocket expenses (except external reimbursements), invoice documents and invoice payments - we suggest leaving this setting off initially (the system creates draft journal vouchers for review)


  • Advanced settings (Pleo > Integration Settings > Advanced Settings)
    • Closed period - choose whether the expenses are to be sent to start or end of the month of the next open period.
    • Upload attachments into MS Dynamics 365 Finance and Operations - we suggest keeping the toggle on 
    • Set default accounts for different Pleo expense types - will be used in the absence of a category (optional)


  • Categories 
    1. In Pleo, go to Settings 
    2. Click Accounting 
    3. Select Categories 
    4. Map the correct account number


  • Tags and Tag groups
    1. In MS Dynamics 365 Finance and Operations, go to Module
    2. Click Pleo 
    3. Access Integration Settings
    4. Click Sync Tags
    5. Click New
    6. Under F&O tag group name:
      • select a Dimension
      • select Add All Value - import all values into Pleo, or select specific values relevant for Pleo
    7. Click Import to Pleo


Good to know

  • Dimensions are set up as Tag Groups and Dimension values are set as Tag values.
  • To keep the Tag Group updates, import new values into Pleo by repeating this step
  • To archive a Tag Group or Tag, update the “Archived” field to Yes and click Update to Pleo to reflect the changes.


  • Taxes
    1. In MS Dynamics 365 Finance and Operations, go to Module
    2. Click Pleo
    3. Access Integration Settings
    4. Click Sync Taxes
    5. Click New
    6. Select Item sales tax group, Sales tax group and Sales tax code
    7. Click Save
    8. In Pleo, navigate to Settings
    9. Click Accounting
    10. Under Tax Codes, click Add row
      • Select the Tax Type
      • Enter the Name - copy "Display name" from MS Dynamics 365 Finance and Operations
      • Enter the Code - copy "Tax code on Pleo" from MS Dynamics 365 Finance and Operations
      • Enter the Tax Rate- copy “Tax Rate” from MS Dynamics 365 Finance and Operations
        Values on Code and Tax Rate in Pleo need to exactly match the values shown on MS Dynamics 365 Finance and Operations


Good to know: If you already have taxes configured on Pleo previously, update Tax code in Pleo using the code from MS Dynamics 365 Finance and Operations

Export an expense

After setting up the integration, it's important to export an expense to see if the integration is configured correctly.


When you click Export on the Export page, a script runs to check for pending Exports from Pleo. However, the export schedule requires manual configuration.


  1. In MS Dynamics 365 Finance and Operations, go to Module 
  2. Click Pleo 
  3. Access Logs
  4. Select Troubleshooting
  5. In the top menu, click Download from Pleo to open Batch Process window
  6. Click Recurrence 
  7. Set Recurrence Pattern to 5 minutes (recommended)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article