← Microsoft Dynamics 365 Integration and Data Migration · Lesson 2 of 10

Module One

📖 Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
1

Course Outline

Course Outline · D365 Integration & Data Migration

Microsoft Dynamics 365 Integration & Data Migration

👤 IT Architects · Data Architects · Integration Developers · Cloud Architects
📘 12 modules ⚡ hands-on capstone

📌 Course overview — Master the critical disciplines of integrating Dynamics 365 with Microsoft cloud, on‑premise, and third‑party systems, alongside robust data migration strategies. Learn proven patterns, dual‑write, the Saga pattern, and performance optimization to deliver enterprise‑ready solutions.

Module 1

Introduction to Integration & Migration Strategy

🎯 Success by Design · source‑of‑truth · D365 ecosystem
  • D365 architecture: F&O, CE, Power Platform
  • Business outcomes & KPI definition
  • Source‑of‑truth matrix & sync direction
  • Integration vs. migration distinction
Module 2

Authentication, Authorization & Security

🔐 Azure AD · service principals · least privilege
  • User identities & licensing models
  • Role‑based security & Azure AD Connect
  • App registrations, certificates & secrets
  • Encryption in transit / at rest
Module 3

Standard Integrations with Microsoft Ecosystem

📎 Office 365 · Power Platform · Social Engagement
  • Exchange, SharePoint, OneDrive, Teams
  • Power BI, Power Apps, Power Automate
  • Connected Field Service & Portals
  • Dynamics 365 for Marketing
Module 4

Frontend Integration Patterns

🖥️ UI embedding · OData · request‑response
  • Embedding third‑party content in D365
  • Embedding D365 in external apps
  • Custom UI embedding
  • OData synchronous integration
Module 5

Backend Integration Patterns

⚙️ Virtual Entities · Saga Pattern · event‑based
  • Virtual Entities for external data
  • Webhooks & Azure Service Bus
  • Data synchronization strategies
  • Saga Pattern with compensation
Module 6

Dual‑Write & Real‑Time Sync

🔄 F&O ↔ Dataverse · initial sync · triggers
  • Dual‑write architecture & initial sync
  • Limits: 500k rows, 70k single‑threaded
  • Skipping initial sync after migration
  • Piggybacking (anti‑pattern) & custom triggers
  • Legal entity (40 max) & lookup limits
Module 7

Data Migration Strategy & Planning

📋 migration workshop · static data · BYOD
  • Migration strategy workshop approach
  • Legacy system inventory & assessment
  • Static data import & Data Management Framework
  • BYOD (Bring Your Own Database)
  • Project impact & timeline dependencies
Module 8

Data Preparation & Field Mapping

🧩 source extraction · test plans · data quality
  • Source data extraction methodology
  • Identifying relevant data entities
  • Field mapping generation (source → target)
  • Data quality assessment & cleansing
  • Test plan creation & validation
Module 9

Integration with External & Third‑Party Systems

🔗 Salesforce · SharePoint · iPaaS · Azure
  • Salesforce integration (one‑way / bidirectional)
  • SharePoint document generation
  • eCommerce, WMS, POS integrations
  • iPaaS: Celigo, Jitterbit, TIBCO, Zapier
  • Azure Logic Apps, Data Factory, API Mgmt
Module 10

Performance Optimization & Best Practices

⚡ batch processing · throttling · observability
  • Batch processing & staging cleanup
  • Multithreading & set‑based processing
  • API throttling & exponential backoff
  • Offline‑first scenarios
  • Observability with Application Insights
Module 11

Troubleshooting & Error Handling

🧪 staging logs · execution logs · poison messages
  • Common migration errors & staging failures
  • Dual‑write troubleshooting (lookups, partitions)
  • Error patterns: retry, backoff, dead‑letter
  • Execution logs, Infolog & Transfer status
  • Alerting & proactive monitoring
⭐ Capstone Project

End‑to‑End Integration & Migration Simulation

🚀 apply all patterns · plan · execute · validate
  • Identify legacy systems & assess scope
  • Create field mapping & extraction plan
  • Execute migration with Data Management Framework
  • Configure dual‑write for real‑time sync
  • Build integration with third‑party CRM
  • Implement error handling & monitoring
  • Validate migration & integration outcomes

📈 Learning Outcomes

Select appropriate integration patterns
Implement secure authentication & authorization
Configure dual‑write & real‑time sync
Plan and execute efficient data migrations
Generate accurate source‑to‑target field mappings
Integrate with Office 365 & Power Platform
Design frontend & backend Azure integrations
Optimize performance for large data volumes
Troubleshoot integration & migration errors
Implement error handling, monitoring & alerts

📋 Prerequisites

Dynamics 365 (basic/intermediate) Office 365 & Azure basics Functional/Developer knowledge Data migration concepts Solutions Architect experience (helpful)
2

Module One

Module 1: D365 Integration & Migration for Beginners

Module 1: Microsoft Dynamics 365 Integration and Data Migration

Welcome to the World of Connecting Systems and Moving Data!


Welcome, young explorer! 🧭 Have you ever tried to connect two different toy sets to build one big castle? Or maybe you have copied your favourite games from one tablet to another? That is integration and migration!

In this module, we will learn how big companies use Microsoft Dynamics 365 to talk to other apps, and how they safely move important information from one place to another. You do not need to be a computer genius. We will explain everything step by step, just like we are building a LEGO castle together!

Let us start our adventure!

🎯 Learning Objectives

By the end of this module, you will be able to:

  • Explain what integration means in simple words.
  • Explain what data migration means.
  • Tell the difference between integration and migration.
  • Give examples of integration in real life, at school, and in Nigeria.
  • Understand why moving data carefully is important.
  • Draw a simple flow of how data moves from one system to another.

📖 Warm-up Story: The Great School Data Adventure

Once upon a time, in a big school in Lagos, the principal decided to buy a new computer system to keep all student records. The old system was like a dusty cupboard with papers everywhere. The new system was like a shiny, organised library.

But there was a problem! The old system had thousands of student names, marks, and addresses. How could they move all that information to the new system without losing anything? Also, the new system needed to “talk” to the old system sometimes to check things.

The school hired a smart IT team. They used data migration to move all the student records safely, like carrying books from the old shelf to the new shelf. They also used integration so the new system could still get information from the old system whenever needed, like two friends passing notes in class.

And guess what? Everything worked perfectly! The principal was happy, the teachers were happy, and the students didn’t even notice the change. That is the power of integration and migration!

📚 Main Lessons

Lesson 1: What is Microsoft Dynamics 365?

Definition: Microsoft Dynamics 365 is a collection of smart computer programmes that help businesses manage their customers, sales, money, and operations. Think of it as a giant Swiss army knife for companies.

Why important: It helps companies work faster, make fewer mistakes, and keep all their information in one place.

Simple explanation: Imagine you have a notebook for school subjects, another for friends' numbers, and another for your chores. Dynamics 365 is like one big, beautiful notebook that has all those things together.

Real-life example: A car dealership uses Dynamics 365 to track which cars they have, which customers want to buy, and how much money they make.

School example: A school uses it to keep student marks, attendance, and contact details all in one place.

Home example: Like a family calendar where everyone writes their appointments, so everyone knows what is happening.

Nigerian example: A Nigerian bank uses Dynamics 365 to manage customer accounts, loans, and branches across Lagos, Abuja, and Port Harcourt.

Illustration (ASCII):

    +---------------------------+
    |   Dynamics 365            |
    |  +--------+  +--------+   |
    |  | Sales  |  | Finance|   |
    |  +--------+  +--------+   |
    |  +--------+  +--------+   |
    |  |Service |  |Marketing|  |
    |  +--------+  +--------+   |
    +---------------------------+
    

Mini summary: Dynamics 365 is a big tool that helps businesses organise everything in one place.


Lesson 2: What is Integration?

Definition: Integration means making two or more different systems work together as if they are one team. They share information with each other.

Why important: Without integration, people have to copy data from one system to another manually, which takes time and can cause mistakes.

Simple explanation: It’s like two friends using walkie-talkies to talk to each other from different rooms.

Real-life example: When you order pizza online, the website talks to the kitchen system so the chef knows your order.

School example: The school’s attendance system talks to the library system, so if a student is absent, they cannot borrow books that day.

Home example: Your phone’s calendar syncs with your family’s shared calendar so everyone knows your football practice.

Nigerian example: A Nigerian e‑commerce site like Jumia uses integration to talk to delivery companies so they know which packages to pick up.

Illustration (ASCII):

    System A  <---->  System B
    (Walkie)         (Walkie)
    They share info!
    

Mini summary: Integration lets systems talk to each other and share information automatically.


Lesson 3: What is Data Migration?

Definition: Data migration is the process of moving data (information) from one place to another. It is like moving your toys from an old box to a new, bigger box.

Why important: Companies often upgrade to new systems, and they need all their old data in the new system to continue working.

Simple explanation: Imagine copying all your notes from an old exercise book to a new one, but doing it very carefully so you don’t lose any page.

Real-life example: When a bank changes its computer system, it must move all customer account details to the new system.

School example: When a school buys new computers, they move all student files from the old PCs to the new ones.

Home example: Moving your photos from an old phone to a new phone.

Nigerian example: The Nigerian government migrating citizen records to a new digital ID system.

Illustration (ASCII):

    Old System  --(move data)-->  New System
      [Data]                        [Data]
    All information travels safely!
    

Mini summary: Migration is moving data from an old system to a new system.


Lesson 4: Integration vs Migration – What’s the Difference?

This is a very important question! Let’s use a simple table:

IntegrationMigration
Two systems talk to each otherData moves from one place to another
Happens regularly (every day)Happens once or a few times
Both systems keep workingOld system may be retired
Example: Phone syncs with laptopExample: Copy files to a new phone

Analogy: Integration is like two friends sharing notes every day. Migration is like one friend moving to a new house and taking all their belongings.

Mini summary: Integration is ongoing communication; migration is a one-time move.


Lesson 5: Why Do Companies Need Integration?

Companies use many different apps. One for sales, one for finance, one for customer service. Without integration, they would be like islands. Integration builds bridges!

Benefits:

  • Save time – no manual copying.
  • Reduce errors – machines don’t make typos like we do.
  • Better decisions – managers see all data in one place.
  • Happier customers – service is faster.

Example: A D365 system integrates with a website so that when a customer buys online, the sales record automatically updates in D365.


Lesson 6: Why Do Companies Need Data Migration?

  • They buy a new system and must move old data.
  • They want to combine data from different departments.
  • They need to clean old data and remove duplicates.
  • They move to the cloud (like from a local server to the internet).

Example: A company moving from an old accounting system to Dynamics 365 Finance must migrate all past invoices and payments.


Lesson 7: Types of Integration

1. Real-time integration: Happens immediately. Like sending a message and getting a reply instantly.

2. Batch integration: Data is collected and sent together later. Like writing letters all week and posting them on Friday.

3. Bidirectional integration: Both systems send and receive data. Like two people talking to each other.

4. Unidirectional integration: Only one system sends data. Like a radio broadcast.


Lesson 8: The Data Migration Process – Step by Step

  1. Plan: Decide what to move and how.
  2. Extract: Get the data from the old system.
  3. Transform: Change the data so it fits the new system (like changing currency from Naira to Dollars if needed).
  4. Load: Put the data into the new system.
  5. Validate: Check that everything moved correctly.
    Plan  -->  Extract  -->  Transform  -->  Load  -->  Validate
    (Draw map)  (Get data)  (Change shape)  (Put in)  (Check)
    

Lesson 9: Tools Used in D365

  • Data Management Framework: A toolbox inside D365 for moving data.
  • Data Entities: Like containers that hold specific types of data (customers, products).
  • OData: A way for apps to ask D365 for data using a standard language.
  • Azure Logic Apps: A cloud service that connects apps without coding.

Lesson 10: Challenges in Integration and Migration

  • Data quality: Old data may have mistakes.
  • Volume: Too much data can slow things down.
  • Compatibility: The old and new systems may not understand each other.
  • Security: Need to protect data during transfer.

Lesson 11: Security and Access

Only authorised people should access data. In D365, we use roles (like teacher, student, principal) to decide who can see what.


Lesson 12: Understanding APIs

API stands for Application Programming Interface. It is like a waiter in a restaurant. You tell the waiter what you want, and the waiter brings it from the kitchen. APIs do the same for apps.


Lesson 13: The Importance of Testing

Before moving all data, we test with a small sample. Like tasting a spoonful of soup before serving the whole pot.


Lesson 14: Monitoring and Maintenance

After integration or migration, we keep an eye on things to make sure everything works well. Like checking your bike after a repair.


Lesson 15: The Future – AI and Smart Integration

In future, AI (Artificial Intelligence) will help systems decide when and what to integrate, making everything smarter and faster.


📖 Key Vocabulary

  • Integration: Making systems work together.
  • Migration: Moving data from one place to another.
  • Data: Information (like names, numbers, dates).
  • System: A computer programme or set of programmes.
  • API: A messenger that helps apps talk.
  • Cloud: Computers on the internet that store data.
  • Entity: A container for a type of data (e.g., Customer).
  • Validation: Checking that data is correct.

🧠 Important Concepts

  • Integration = connection; Migration = move.
  • Always test before moving large data.
  • Security is very important.

📝 Step-by-Step Explanation: How Data Moves

  1. A company decides to move to D365.
  2. They plan what data to move.
  3. They clean the data (remove duplicates).
  4. They use the Data Management Framework to move data.
  5. They check the data in the new system.

🌍 Real-life Examples

  • Telecom companies integrate billing with customer care so that when you pay, the system updates instantly.
  • E-commerce sites integrate with payment gateways.

🇳🇬 Nigerian Examples

  • GTBank integrates its mobile app with its core banking system.
  • Farmers using D365 to track produce from farm to market.

🎈 Fun Examples for Kids

  • When you connect your game console to the internet to play with friends, that’s integration.
  • When you copy your game save to a USB drive, that’s migration.

🏠 Everyday Examples

  • Using a universal remote to control TV, DVD, and sound system.
  • Copying contacts from your old phone to your new phone.

👪 Parent Tips

  • Teach kids that organisation and careful copying are good habits.
  • Explain that computers need our help to keep data safe.

🤓 Interesting Facts

  • The first data migration was done on punch cards!
  • D365 can process millions of records in one go.

💡 Did You Know?

  • D365 uses AI to predict what data you need next.

🧾 Remember This

  • Always plan before you move data.
  • Check, check, and check again.

⚠️ Common Mistakes

  • Moving data without cleaning it first.
  • Not testing with a small sample.
  • Forgetting to backup data.

✅ Best Practices

  • Always have a backup.
  • Test with a small set first.
  • Document everything.

📊 Illustrations and Diagrams

Integration Flow

    [CRM]  <--->  [D365]  <--->  [Website]
      Customers      Orders       Products
    

Migration Timeline

    Start  ---Week 1--->  Extract  ---Week 2--->  Transform  ---Week 3--->  Load  ---Week 4--->  Validate
    

Comparison Table: Integration vs Migration

FeatureIntegrationMigration
FrequencyContinuousOne-time
GoalShare dataMove data
ImpactReal-time syncSystem change

📌 End-of-Module Summary

Congratulations! You have learned the basics of integration and migration. Remember, integration is like connecting systems to talk, and migration is like moving data safely. Dynamics 365 helps companies do both very well. Always plan, test, and keep data secure.

❓ Frequently Asked Questions

  1. What is D365? A big business tool.
  2. Is integration hard? No, but it needs planning.
  3. Can we lose data during migration? If we don’t test, yes.
  4. Do I need to code? Not always, tools help.
  5. How long does migration take? Days to months.
  6. What is an API? A messenger.
  7. Can I integrate without the internet? Sometimes, but cloud helps.
  8. Is data safe in the cloud? Yes, if secured.
  9. What is a data entity? A container for data.
  10. Why use D365? It is powerful and all-in-one.

📝 Matching Exercise

Match the term with its meaning:

1. IntegrationA. Moving data
2. MigrationB. Systems talking
3. DataC. Information

Answers: 1-B, 2-A, 3-C

🧩 Scenario-based Exercise

Scenario: A school wants to move all student records to D365. What are the steps they should follow?

Suggested answer: Plan, extract, clean, load, test.

👥 Group Activity

In groups of 3, brainstorm 5 things in your school that could be integrated. Draw a diagram on paper.

🧑‍🎓 Individual Activity

Write down 3 examples of migration you have seen in your life (e.g., moving files to a new phone).

🛠️ Mini Project

Project: Create a poster showing the data migration steps (Plan, Extract, Transform, Load, Validate) with pictures. Use simple words.

📋 Practical Assignment

Find a local business (or imagine one) and write a paragraph about why they would need integration. Share with the class.

💬 Classroom Discussion Questions

  • Why is it important to clean data before moving it?
  • What could go wrong if integration fails?
  • How does integration help customers?

🔑 Key Takeaways

  • Integration = systems working together.
  • Migration = moving data safely.
  • Always test and plan.
  • Dynamics 365 makes both easier.

🚀 Preparation for Module 2

In Module 2, we will dive deeper into the Data Management Framework, learn about Data Entities, and try hands-on exercises. Keep your curiosity alive!


End of Module 1. Great job! 🌟

3

Module Two

Module 2: D365 Integration & Migration – The Tools

Module 2: Tools of the Trade – Data Management Framework and Entities

Your Toolkit for Moving and Connecting Data


Welcome back, young data explorer! 🧭 In Module 1, we learned what integration and migration are. Now, it is time to open the toolbox and see what tools we use to actually do the work.

In this module, we will explore the Data Management Framework – a super toolkit inside Dynamics 365. We will also learn about Data Entities, which are like special boxes that hold different kinds of information.

Think of it like this: if you want to build a house, you need a hammer, nails, and a blueprint. In D365, the Data Management Framework is your hammer, and Data Entities are your nails. Let us get started!

🎯 Learning Objectives

  • Explain what the Data Management Framework (DMF) is.
  • Define what a Data Entity is in simple words.
  • Describe the difference between a Data Entity and a table.
  • Explain the steps to import data using DMF.
  • Understand how to export data from D365.
  • Identify common data entities (Customer, Vendor, Product).

📖 Warm-up Story: Chidi’s Big Move

Chidi is a bright 13‑year‑old in Lagos. His family is moving to a new apartment. They have many boxes: one for clothes, one for books, one for kitchen items, and one for toys.

Chidi’s dad gives him a special list (a plan) that says which box goes to which room. He also has a marker to label every box. This makes the move smooth and fast.

In the world of Dynamics 365, the Data Management Framework is like Chidi’s plan and marker. It helps organise and move data boxes (called Data Entities) from one system to another.

Without this toolkit, moving data would be like throwing all the boxes into a truck without labels – total chaos! Let’s learn how D365 keeps everything organised.

📚 Main Lessons

Lesson 1: What is the Data Management Framework (DMF)?

Definition: The Data Management Framework is a set of tools inside Dynamics 365 that helps you move data in and out of the system. It is like a moving company for your data.

Why important: Without DMF, moving large amounts of data would be very slow and error‑prone. DMF makes it fast and safe.

Simple explanation: Imagine you have a big folder of school papers. DMF is like a magic scanner that can copy all the papers, organise them, and paste them into a new folder, all in one go.

Real-life example: A supermarket uses DMF to upload thousands of product prices into D365 before a big sale.

School example: A school uses DMF to import all student names and grades at the start of the year.

Home example: Using a photo app to import all your holiday pictures from a memory card.

Nigerian example: A Nigerian telecommunications company uses DMF to add new SIM card registrations to their customer database.

Illustration (ASCII):

    +-----------------------------------+
    | Data Management Framework (DMF)   |
    |  +----------+  +-------------+    |
    |  | Import   |  | Export      |    |
    |  | (bring   |  | (send out)  |    |
    |  |  data in)|  |             |    |
    |  +----------+  +-------------+    |
    +-----------------------------------+
    

Mini summary: DMF is the main tool for importing and exporting data in Dynamics 365.


Lesson 2: What is a Data Entity?

Definition: A Data Entity is a container that holds a specific type of data. For example, a Customer entity holds customer names, addresses, and phone numbers.

Why important: Entities organise data so we know exactly where to find everything.

Simple explanation: Think of a library. Books are organised into sections: Fiction, Non‑fiction, Science. Each section is like a Data Entity.

Real-life example: In a hospital, a Patient entity holds patient records, and a Doctor entity holds doctor details.

School example: A Student entity holds student info, and a Teacher entity holds teacher info.

Home example: A recipe book has sections for starters, main courses, and desserts – each section is an entity.

Nigerian example: In a Nigerian bank, a Customer entity, a Loan entity, and a Branch entity.

Illustration (ASCII):

    +------------------+
    | Data Entities    |
    +------------------+
    | Customer         |
    | Product          |
    | Vendor           |
    | Sales Order      |
    +------------------+
    

Mini summary: Data Entities are like labelled boxes that hold specific types of information.


Lesson 3: Data Entity vs Database Table – What’s the Difference?

Table: A table is like a raw storage shelf in a warehouse. It holds data but doesn’t care about how it looks or who sees it.

Entity: An entity is like a nicely packed box with a label. It is designed for people and other systems to easily understand and use.

We use Entities because they are easier to work with than raw tables.

TableEntity
Raw data storagePackaged, user-friendly view
Contains all columnsContains only needed columns
Not easy to shareEasy to share

Lesson 4: Common Data Entities in D365

  • Customer: People or companies who buy from you.
  • Vendor: People or companies you buy from.
  • Product: Items you sell or buy.
  • Sales Order: A record of a sale.
  • Invoice: A bill sent to a customer.
  • Employee: People who work for you.

Lesson 5: How to Import Data using DMF (Step-by-Step)

  1. Prepare your data: Put it in a spreadsheet (like Excel) with columns that match the entity.
  2. Open DMF: In D365, go to the Data Management workspace.
  3. Create a new import project: Give it a name, like “Customer Import”.
  4. Select the entity: Choose “Customer” as the entity.
  5. Upload the file: Attach your spreadsheet.
  6. Map fields: Tell D365 which column in your file matches which field in the entity.
  7. Run the import: Click “Import” and wait.
  8. Check results: See if any errors occurred and fix them.
    Prepare --> Upload --> Map --> Import --> Validate
    

Lesson 6: Exporting Data – Sending Data Out

Exporting is the opposite of importing. You select an entity, choose the data you want, and download it as a file (Excel, CSV, etc.).

Why export? To share data with other systems, create reports, or backup data.

    Select Entity --> Filter data (optional) --> Export --> Download file
    

Lesson 7: What is Field Mapping?

Definition: Field mapping is telling D365 which column in your file matches which field in the entity. It is like matching puzzle pieces.

Example: Your file has a column “Name”, and the entity has a field “Customer Name”. You map them together.

If you don’t map correctly, the data goes to the wrong place!

    File Column:  Name  ---->  Entity Field:  CustomerName
    File Column:  Age   ---->  Entity Field:  CustomerAge
    

Lesson 8: Staging Tables – The Waiting Area

When you import data, DMF first puts it into a “staging table”. Think of it as a waiting room. The data sits there while DMF checks it. If everything is correct, the data moves to the real table.

If there is a mistake, DMF shows an error, and you can fix it in the staging table before moving on.

    Your file --> Staging table (waiting) --> Validation --> Real table
    

Lesson 9: Data Packages – Bundles of Entities

A Data Package is a file that contains many entities at once. It is like a lunch box with different compartments (fruit, sandwich, drink).

Instead of importing one entity at a time, you can import a package with Customers, Products, and Invoices all together.


Lesson 10: BYOD – Bring Your Own Database

BYOD is a feature that lets you copy large amounts of data directly to your own Azure SQL database. It is like having a private backup of your D365 data.

This is useful for reporting and analytics.


Lesson 11: Data Migration Templates

Microsoft provides pre‑made templates for common data types. They are like fill‑in‑the‑blank forms. You just add your data, and the template handles the rest.


Lesson 12: Scheduling Imports

You can schedule DMF to import data automatically, like every night. This is great for regular updates.


Lesson 13: Error Handling – What to Do When Something Goes Wrong

Sometimes, data doesn’t match. Maybe a column is missing, or the data is in the wrong format. DMF shows you a list of errors. You can fix the errors in your file and try again.


Lesson 14: Best Practices

  • Always make a backup before importing.
  • Test with a small sample first.
  • Use clear column names in your file.
  • Check field mappings carefully.

Lesson 15: DMF in Integration

While DMF is great for one‑time moves (migration), integration uses other tools like OData and Logic Apps for continuous data sharing.


📖 Key Vocabulary

  • Data Management Framework (DMF): The main tool for moving data in/out of D365.
  • Data Entity: A container for a specific type of data.
  • Staging Table: A temporary holding place for data during import.
  • Field Mapping: Matching columns from your file to fields in D365.
  • Data Package: A bundle of multiple entities.
  • BYOD: Bring Your Own Database – exporting to Azure SQL.
  • Import: Bringing data into D365.
  • Export: Sending data out of D365.

🧠 Important Concepts

  • DMF is the central tool for migration.
  • Entities organise data by type.
  • Always test with a small sample.
  • Field mapping is critical.

📝 Step-by-Step: Import Customers

  1. Prepare Excel file with CustomerName, Email, Phone.
  2. Go to Data Management workspace.
  3. Click Import.
  4. Select Customer entity.
  5. Upload file.
  6. Map fields.
  7. Run import.
  8. Check staging for errors.

🌍 Real-life Examples

  • An online store imports new product list every week.
  • A bank exports customer records for annual reporting.

🇳🇬 Nigerian Examples

  • Jumia uses DMF to add new sellers and products.
  • A Nigerian hospital imports patient data from rural clinics.

🎈 Fun Examples

  • Importing your game collection into a tracking app.
  • Exporting your favourite YouTube playlist to a friend.

🏠 Everyday Examples

  • Copying contacts from an old phone to a new one.
  • Uploading photos from a camera to a computer.

👪 Parent Tips

  • Explain that organisation saves time and prevents mistakes.
  • Show how field mapping is like matching keys to locks.

🤓 Interesting Facts

  • DMF can process millions of rows in one go.
  • Data Entities can be customised to add new fields.

💡 Did You Know?

  • D365 has over 100 standard entities.

🧾 Remember This

  • Staging tables are your friend – check them for errors.
  • Always backup before a big import.

⚠️ Common Mistakes

  • Not checking field mappings.
  • Forgetting to remove extra spaces in data.
  • Importing without testing.

✅ Best Practices

  • Use templates when available.
  • Keep a log of imports and exports.
  • Test in a sandbox environment first.

📊 Illustrations

DMF Import Flow

    File  -->  Upload  -->  Staging  -->  Validate  -->  Real Table
    

Entity Types

    +---------+   +---------+   +---------+
    |Customer |   | Product |   | Vendor  |
    +---------+   +---------+   +---------+
    

Comparison: Import vs Export

ImportExport
Data comes inData goes out
Used for migrationUsed for reporting
File to systemSystem to file

📌 End-of-Module Summary

Excellent work! You have learned about the Data Management Framework and Data Entities. Remember, DMF is your moving truck, and Entities are the labelled boxes. Importing and exporting become easy when you use the right tools and map fields correctly.

❓ Frequently Asked Questions

  1. What is DMF? A toolkit to move data.
  2. What is an Entity? A container for data.
  3. Can I import from Excel? Yes, it’s the most common.
  4. What is staging? A waiting area for data.
  5. What if my import fails? Check errors in staging.
  6. Can I schedule imports? Yes, automatically.
  7. What is BYOD? Export to your own database.
  8. Do I need coding? No, DMF is point-and-click.
  9. How many entities are there? Over 100.
  10. Can I create my own entity? Yes, you can customise.

📝 Matching Exercise

Match the term:

1. DMFA. A specific data container
2. Data EntityB. The waiting area
3. Staging TableC. The main import/export tool

Answers: 1-C, 2-A, 3-B

🧩 Scenario-based Exercise

Scenario: You have an Excel file with 500 new customer records. Walk through the steps to import them.

Answer: Prepare file, open DMF, create project, select Customer entity, upload, map, import, check staging.

👥 Group Activity

In pairs, list 5 entities you would find in a school’s D365 system.

🧑‍🎓 Individual Activity

Draw a diagram showing the DMF import process with labels.

🛠️ Mini Project

Create a sample Excel file with 5 customers and import it (if you have access) or simulate the steps.

📋 Practical Assignment

Write a short guide (5 steps) for a colleague on how to export data using DMF.

💬 Classroom Discussion Questions

  • Why is field mapping so important?
  • What would happen if you imported data without staging?
  • How does DMF help businesses save time?

🔑 Key Takeaways

  • DMF is the main tool for data movement in D365.
  • Entities organise data logically.
  • Staging tables help catch errors.
  • Field mapping must be done carefully.

🚀 Preparation for Module 3

In Module 3, we will dive into integration patterns – how systems talk to each other in real-time. You will learn about OData, APIs, and how to connect D365 with other apps. Stay curious!


End of Module 2. Keep up the great work! 🌟

4

Module Three

Module 3: D365 Integration – Real-Time Connections

Module 3: Integration Patterns – How Systems Talk to Each Other

Real-Time Connections and APIs


Hello again, future integration expert! 🧭 In Module 1 we learned the big picture, and in Module 2 we explored the tools for moving data. Now, we are going to learn how systems talk to each other in real-time.

Imagine you are at a restaurant. You tell the waiter what you want, and the waiter brings it from the kitchen. That waiter is like an API – it connects you (the customer) to the kitchen (the system).

In this module, we will learn about APIs, OData, Webhooks, and how Dynamics 365 connects with other apps instantly. Let’s dive in!

🎯 Learning Objectives

  • Explain what an API is using a simple analogy.
  • Describe OData and its role in D365.
  • Differentiate between real-time and batch integration.
  • Explain what a Webhook is.
  • List common integration patterns.
  • Give examples of integration in everyday life.

📖 Warm-up Story: The Pizza Delivery Adventure

Amara lives in Enugu and loves pizza. She orders a pizza online. The website instantly sends her order to the kitchen. The chef sees the order on a screen, makes the pizza, and a delivery driver takes it to her house.

All of this happens because the website, the kitchen system, and the delivery system are integrated. They talk to each other instantly using something called an API.

In D365, the same thing happens. When a customer buys a product, the sales system instantly tells the warehouse system to pack it, and tells the finance system to send an invoice. That is the power of real-time integration!

📚 Main Lessons

Lesson 1: What is an API?

Definition: API stands for Application Programming Interface. It is a set of rules that allows two apps to talk to each other.

Why important: APIs are the bridges that connect different systems. Without APIs, apps would be like islands with no boats.

Simple explanation: Think of an API as a waiter in a restaurant. You give your order to the waiter, and the waiter tells the kitchen. The waiter brings back your food. The API does the same for apps.

Real-life example: When you book a flight online, the travel website uses an API to check availability with the airline’s system.

School example: A school portal uses an API to get student grades from the teacher’s gradebook.

Home example: Your smart speaker uses an API to ask the weather service for today’s forecast.

Nigerian example: Paystack uses APIs to connect online stores with banks for payment processing.

Illustration (ASCII):

    You (App A)  --request-->  [API]  --request-->  Kitchen (App B)
    You (App A)  <--response-- [API]  <--response-- Kitchen (App B)
    

Mini summary: APIs are messengers that let apps communicate.


Lesson 2: What is OData?

Definition: OData is a special language that apps use to ask for data from D365. It stands for Open Data Protocol.

Why important: OData is the standard way for external apps to read and write data in D365.

Simple explanation: Imagine OData is like a form you fill out to request books from a library. You write the title, and the librarian finds it.

Real-life example: A mobile app uses OData to get a list of products from a D365 e‑commerce site.

School example: A school app uses OData to fetch the latest timetable.

Home example: Using a weather app that asks for data from a weather service.

Nigerian example: A Nigerian logistics company uses OData to get shipment status from D365.

Illustration (ASCII):

    App  --OData Query-->  D365
    App  <--Data----------  D365
    

Mini summary: OData is the language apps use to talk to D365.


Lesson 3: Real-time vs Batch Integration

Real-time integration: Happens immediately. As soon as something happens, the other system knows about it.

Batch integration: Happens later. Data is collected and sent together at a scheduled time.

Example: If you send a message on WhatsApp, it is real-time. If you send an email, it is usually batch (sent every few minutes).

Real-timeBatch
InstantScheduled
Always up-to-dateMay have a delay
Example: Chat appsExample: Daily reports

Lesson 4: What is a Webhook?

Definition: A Webhook is a way for one system to send a message to another system when something happens.

Why important: Webhooks are used for instant notifications.

Simple explanation: A Webhook is like a doorbell. When someone rings the doorbell, you know someone is there immediately.

Real-life example: When a customer pays online, a Webhook tells D365 to send an invoice.

School example: When a student submits homework, a Webhook notifies the teacher.

Home example: A smart doorbell sends a notification to your phone when someone is at the door.

Nigerian example: A Webhook notifies a D365 system when a bank transfer is successful.

    Event happens --Webhook-->  D365 reacts
    

Lesson 5: What is Azure Logic Apps?

Definition: Azure Logic Apps is a cloud service that helps you connect apps without writing code. It uses a visual designer.

Why important: It makes integration easy for non‑programmers.

Simple explanation: It is like a recipe book. You pick steps (ingredients) and connect them to make a complete process.

Real-life example: When a new lead is created in D365, Logic Apps can send an email to the sales team.

Nigerian example: A Logic App automatically posts new product arrivals to a company’s social media page.

    Trigger  -->  Action  -->  Response
    (e.g., new lead) (send email) (done)
    

Lesson 6: Azure Service Bus – The Message Queue

Definition: Service Bus is a message queue. It stores messages until the receiving system is ready to process them.

Why important: It prevents data loss if a system is temporarily offline.

Simple explanation: Think of it as a post office. You drop off a letter, and it waits until the postman comes.


Lesson 7: Dual-write – Two‑Way Sync

Dual-write is a special D365 feature that keeps data in sync between two systems (like F&O and Dataverse). It works both ways – if you change something in one, it updates in the other automatically.


Lesson 8: Virtual Entities

Definition: Virtual Entities allow D365 to read data from an external system without copying it. It is like a window that shows you the data from another room.

Why important: It saves space and keeps data fresh.


Lesson 9: Authentication – Who Can Use the API?

Authentication is like showing your ID to enter a building. APIs require authentication to make sure only authorised apps can access the data.

Common methods: API keys, OAuth 2.0 (like a special digital key).


Lesson 10: D365 and SharePoint Integration

D365 can integrate with SharePoint to store documents. When you create a new case, a folder is automatically created in SharePoint to hold all related documents.


Lesson 11: Power Automate – The No‑Code Hero

Power Automate is a tool that lets you create automated workflows without coding. It connects to hundreds of apps, including D365.

Example: When a new lead is created, Power Automate sends a welcome email.


Lesson 12: D365 and Outlook Integration

D365 can sync with Outlook so you can track emails, appointments, and contacts directly in D365.


Lesson 13: Error Handling – What If Something Fails?

When integration fails, we need to handle the error gracefully. This might mean retrying later, logging the error, or sending a notification to an administrator.


Lesson 14: Monitoring Integrations

It is important to monitor integrations to make sure they are working. We can use dashboards and logs to see the health of our integrations.


Lesson 15: Summary of Integration Patterns

  • API (Request/Response)
  • Event-driven (Webhooks)
  • Message queue (Service Bus)
  • Scheduled (Batch)
  • Dual-write (Two‑way sync)

📖 Key Vocabulary

  • API: A messenger that helps apps talk.
  • OData: A language for requesting data from D365.
  • Webhook: An instant notification from one system to another.
  • Logic Apps: A cloud tool for visual integration.
  • Service Bus: A message queue that stores messages.
  • Authentication: Proving who you are to access data.
  • Virtual Entity: A view of external data without copying.
  • Dual-write: Two‑way automatic sync.

🧠 Important Concepts

  • Integration lets systems work as a team.
  • APIs are the messengers.
  • Real-time integration happens instantly.
  • Error handling is crucial for reliability.

📝 Step-by-Step: How to Connect Two Apps via API

  1. Identify what data you want to share.
  2. Find out if the app has an API.
  3. Get an API key for authentication.
  4. Write a request (using OData or REST).
  5. Send the request and receive the response.
  6. Use the data in your app.

🌍 Real-life Examples

  • An airline website uses an API to check flight status.
  • A hotel booking site uses an API to check room availability.

🇳🇬 Nigerian Examples

  • Flutterwave uses APIs to connect merchants with banks.
  • Andela uses APIs to track developer applications.

🎈 Fun Examples

  • When you play a multiplayer game, APIs connect your device to the game server.
  • When you ask Siri the weather, she uses an API.

🏠 Everyday Examples

  • Using a remote control to change TV channels (remote is the API).
  • Using Uber – the app talks to the driver’s app via API.

👪 Parent Tips

  • Explain that APIs make our digital life smooth.
  • Remind kids that APIs need security just like a locked door.

🤓 Interesting Facts

  • The first API was created in the 1960s.
  • D365 APIs handle millions of requests per day.

💡 Did You Know?

  • OData is used by many companies, including Microsoft and SAP.

🧾 Remember This

  • APIs are the bridges between apps.
  • Always secure your APIs.

⚠️ Common Mistakes

  • Not handling API errors.
  • Using the wrong authentication method.
  • Not monitoring integration health.

✅ Best Practices

  • Document your APIs.
  • Use logging to track requests.
  • Test thoroughly before going live.

📊 Illustrations

API Flow

    App A --> Request --> API --> App B
    App A <-- Response <-- API <-- App B
    

Integration Patterns

    +------------------+   +------------------+
    |  Request/Response |   |  Event-driven     |
    |  (API)            |   |  (Webhooks)       |
    +------------------+   +------------------+
    +------------------+   +------------------+
    |  Message Queue   |   |  Batch/Scheduled  |
    |  (Service Bus)   |   |  (Daily imports)  |
    +------------------+   +------------------+
    

Comparison: Integration Tools

ToolWhen to Use
ODataReading data from D365
WebhookInstant notifications
Logic AppsNo-code workflows
Service BusReliable messaging

📌 End-of-Module Summary

Fantastic! You now understand how systems talk to each other. APIs are the messengers, OData is the language, and Webhooks are instant alerts. Integration makes our digital world connected and fast.

❓ Frequently Asked Questions

  1. What is an API? A messenger for apps.
  2. What is OData? A language to ask D365 for data.
  3. What is a Webhook? An instant notification.
  4. What is real-time integration? Immediate data sharing.
  5. What is batch integration? Scheduled data sharing.
  6. What is Logic Apps? A visual tool for workflows.
  7. What is Service Bus? A message queue.
  8. What is authentication? Proving identity.
  9. What is dual-write? Two‑way sync.
  10. What are Virtual Entities? Windows to external data.

📝 Matching Exercise

Match the term:

1. APIA. Instant notification
2. WebhookB. Language for D365 data
3. ODataC. Messenger between apps

Answers: 1-C, 2-A, 3-B

🧩 Scenario-based Exercise

Scenario: A company wants to send a welcome email when a new customer is created in D365. Which integration pattern would you suggest?

Answer: Use Power Automate with a trigger on new customer creation.

👥 Group Activity

In groups, brainstorm 3 examples of APIs you use every day.

🧑‍🎓 Individual Activity

Draw a diagram showing an API request/response cycle.

🛠️ Mini Project

Find a public API (like a weather API) and write a plan on how you would integrate it with D365.

📋 Practical Assignment

Write a simple guide (5 bullet points) on how to call an API.

💬 Classroom Discussion Questions

  • Why is real-time integration important for e‑commerce?
  • What could go wrong if a Webhook fails?
  • How does API security protect data?

🔑 Key Takeaways

  • APIs are the bridges between systems.
  • OData is the standard for D365 data access.
  • Choose the right integration pattern for your need.
  • Always monitor and secure your integrations.

🚀 Preparation for Module 4

In Module 4, we will explore advanced integration scenarios, including the Saga pattern for distributed transactions and how to handle complex business processes. Get ready to become an integration master!


End of Module 3. You are doing amazing! 🌟

5

Module Four

Module 4: Advanced Integration – The Saga Pattern & More

Module 4: Advanced Integration – The Saga Pattern and Reliable Messaging

Ensuring Data Consistency Across Multiple Systems


Welcome, young architect! 🧭 You have already learned the basics of integration and migration. Now we are going to tackle something more advanced but still easy to understand: the Saga Pattern and other reliable integration techniques.

Sometimes, a single business process involves many different systems. If one of them fails, we need a way to undo everything to keep data correct. That is what the Saga Pattern does – it is like a safety net for your data.

In this module, we will also learn about retry policies, dead-letter queues, and how to make sure your integrations are robust and trustworthy. Let’s begin!

🎯 Learning Objectives

  • Explain what the Saga Pattern is and why it is useful.
  • Describe the difference between orchestration and choreography in Sagas.
  • Understand retry policies and dead-letter queues.
  • List best practices for reliable messaging.
  • Give examples of distributed transactions.

📖 Warm-up Story: The School Trip Adventure

A school in Abuja is planning a trip for 100 students. The trip requires booking a bus, reserving a museum slot, and ordering lunch for everyone. These three tasks must all happen together.

Imagine the bus is booked, but the museum is fully booked. The students would have a bus but no place to go! That would be a disaster.

To avoid this, the school uses a plan: if any one task fails, they cancel everything and start over. This is exactly what the Saga Pattern does for computer systems. It makes sure that either all tasks succeed, or all tasks are undone, so data stays correct.

📚 Main Lessons

Lesson 1: What is a Distributed Transaction?

Definition: A distributed transaction is a business process that involves multiple systems. For example, ordering a product might involve the sales system, the inventory system, and the billing system.

Why important: We need to make sure all systems agree on the final state. If one system fails, the others should not be left in a bad state.

Simple explanation: Think of a group project. Everyone must finish their part. If one person cannot finish, the whole group must reorganize.

Real-life example: Booking a flight involves booking a seat, reserving a meal, and charging a credit card. All must succeed.

School example: A school event requires booking a hall, ordering food, and inviting speakers.

Home example: Planning a birthday party – you need a cake, decorations, and guests.

Nigerian example: Buying a car from a dealership involves checking inventory, processing a loan, and transferring ownership.

    Sales  ---->  Inventory  ---->  Finance
    (must all succeed together)
    

Mini summary: A distributed transaction touches multiple systems and must be consistent.


Lesson 2: What is the Saga Pattern?

Definition: The Saga Pattern is a way to manage distributed transactions. Instead of locking all systems, it breaks the transaction into smaller steps. If a step fails, it runs compensating actions to undo previous steps.

Why important: It ensures data consistency without using long locks, which can slow down systems.

Simple explanation: Imagine you are making a sandwich. You get bread, then butter, then cheese. If the cheese is missing, you undo by putting the butter back and returning the bread.

Real-life example: In an e‑commerce system, if payment fails, the Saga cancels the order and restocks the items.

School example: If a school trip bus booking fails, the Saga cancels the museum and lunch bookings.

Home example: If you cannot get a birthday cake, you cancel the decorations and party venue.

Nigerian example: A bank transfer between two banks uses a Saga to ensure money is debited from one and credited to the other, or both are undone.

    Step 1: Book bus  -->  Step 2: Reserve museum  -->  Step 3: Order lunch
      |                        |                           |
      +-- Compensate (cancel) <--+-- Compensate (cancel) <--+ (if failure)
    

Mini summary: Sagas manage transactions across systems using steps and compensation.


Lesson 3: Orchestration vs Choreography

There are two ways to implement Sagas: orchestration and choreography.

Orchestration: One central system (like a conductor) tells everyone what to do. It is like a teacher directing a class.

Choreography: Each system knows its role and acts independently, like dancers in a dance routine. They watch each other and react.

OrchestrationChoreography
Central controlDecentralized
Easier to manageMore flexible
Single point of failureNo single point of failure

Lesson 4: Retry Policies – Try Again!

Definition: A retry policy is a rule that says if an operation fails, we wait a little and try again.

Why important: Sometimes failures are temporary (like a network glitch). Retrying can fix the problem automatically.

Simple explanation: Like ringing a doorbell twice if no one answers the first time.

    Try 1  -->  Fail  -->  Wait  -->  Try 2  -->  Success!
    

Lesson 5: Dead-Letter Queues – The Graveyard of Messages

Definition: A dead-letter queue is a place where messages go when they cannot be delivered successfully even after retries.

Why important: It prevents messages from being lost forever. An administrator can check the dead-letter queue and fix the problem manually.

Simple explanation: Like a lost-and-found box at school. If a message cannot find its home, it waits there.


Lesson 6: Idempotency – Doing Something Again Without Harm

Definition: An operation is idempotent if doing it multiple times has the same effect as doing it once.

Why important: This is crucial for retries. If a payment is retried, we do not want to charge the customer twice.

Simple explanation: Like pressing the "elevator call" button repeatedly – it only calls the elevator once.


Lesson 7: Eventual Consistency

Definition: Eventual consistency means that data may not be immediately up-to-date across all systems, but it will become consistent over time.

Why important: It allows systems to be faster and more available.

Simple explanation: Like sending a letter – it takes time to arrive, but it will get there eventually.


Lesson 8: Compensation – Undoing Work

Definition: A compensation is an action that undoes a previous step in a Saga.

Why important: If a step fails, we need to roll back what we already did.

Simple explanation: Like erasing a pencil mark with an eraser.


Lesson 9: Monitoring Sagas

It is important to monitor Sagas to see their status. A dashboard can show if a Saga is running, completed, or failed.


Lesson 10: Best Practices for Sagas

  • Keep steps small and simple.
  • Design robust compensation logic.
  • Use idempotent operations.
  • Monitor and log everything.
  • Test failure scenarios.

Lesson 11: Saga vs Two-Phase Commit (2PC)

2PC is another way to handle distributed transactions. It locks all systems until everyone agrees. This is like asking everyone to raise their hand before proceeding.

Saga is more flexible because it does not lock resources for a long time.


Lesson 12: Timeouts – When to Give Up

A timeout is a limit on how long to wait for an operation. If a system does not respond in time, the Saga assumes failure and triggers compensation.


Lesson 13: Sequence Diagrams – Visualizing the Flow

Sequence diagrams show the flow of messages between systems. They are useful for designing Sagas.

    Order Service  -->  Payment Service  -->  Inventory Service
         |                   |                    |
         +-- response ------>+-- response ------->+
    

Lesson 14: Using Azure Service Bus for Sagas

Azure Service Bus is a great tool for implementing Sagas. It can queue messages and handle retries and dead-letter queues.


Lesson 15: Real-World Saga – Travel Booking

A travel booking system uses a Saga to book a flight, hotel, and car. If any one fails, the Saga cancels the others.


📖 Key Vocabulary

  • Saga: A pattern for managing distributed transactions.
  • Distributed Transaction: A process involving multiple systems.
  • Compensation: An action that undoes a previous step.
  • Orchestration: Central control of a Saga.
  • Choreography: Decentralized control of a Saga.
  • Retry Policy: A rule for trying operations again.
  • Dead-Letter Queue: A place for failed messages.
  • Idempotent: Doing something multiple times without extra effect.
  • Eventual Consistency: Data will become consistent over time.
  • Timeout: A limit on waiting time.

🧠 Important Concepts

  • Sagas maintain data consistency across systems.
  • Compensation is the undo button.
  • Idempotency prevents duplicate processing.
  • Monitoring is essential for reliability.

📝 Step-by-Step: Designing a Saga

  1. Define the steps in the transaction.
  2. Define a compensation for each step.
  3. Decide on orchestration or choreography.
  4. Implement retry logic.
  5. Set up monitoring.
  6. Test with failures.

🌍 Real-life Examples

  • An airline booking system uses a Saga to book seats and payments.
  • An online marketplace uses a Saga to reserve inventory and process payments.

🇳🇬 Nigerian Examples

  • A Nigerian fintech uses a Saga to transfer money between accounts.
  • A logistics company uses a Saga to track shipments and payments.

🎈 Fun Examples

  • Planning a birthday party – if the cake fails, cancel the decorations.
  • A treasure hunt – if one clue is missing, restart the hunt.

🏠 Everyday Examples

  • If you cannot find a movie to watch, you change your plans.
  • If a restaurant is closed, you choose another.

👪 Parent Tips

  • Explain that Sagas help systems avoid confusion.
  • Teach that planning for failure is smart.

🤓 Interesting Facts

  • The Saga pattern was introduced in 1987.
  • Many large companies use Sagas for their payment systems.

💡 Did You Know?

  • Azure Service Bus can be used to implement Sagas with ease.

🧾 Remember This

  • Compensation is the undo button.
  • Retries can fix temporary failures.

⚠️ Common Mistakes

  • Forgetting to implement compensation.
  • Not handling idempotency.
  • Not monitoring Sagas.

✅ Best Practices

  • Design compensations carefully.
  • Make operations idempotent.
  • Use dead-letter queues for failed messages.
  • Monitor everything.

📊 Illustrations

Saga Steps

    Step 1: Book Hotel  -->  Step 2: Book Flight  -->  Step 3: Book Car
         |                     |                         |
         +-- Compensate (if fail) <--+-- Compensate (if fail) <--+
    

Orchestration vs Choreography

    Orchestration:  [Central Conductor] ----> Systems
    Choreography:   System A <--> System B <--> System C
    

Retry Policy

    Try 1  -->  Fail  -->  Wait 1s  -->  Try 2  -->  Fail  -->  Wait 2s  -->  Try 3  -->  Success!
    

Dead-Letter Queue

    Messages  -->  Queue  -->  Failed (after retries)  -->  Dead-Letter Queue
    

Comparison Table

AspectOrchestrationChoreography
ControlCentralDecentralized
ComplexityEasier to manageMore flexible
Failure handlingCentralizedDistributed

📌 End-of-Module Summary

Amazing work! You have learned about the Saga Pattern, retry policies, and dead-letter queues. Remember, Sagas help keep data consistent across multiple systems by breaking transactions into steps and using compensation if something fails.

❓ Frequently Asked Questions

  1. What is a Saga? A way to manage distributed transactions.
  2. What is a compensation? An undo action.
  3. What is orchestration? Central control of a Saga.
  4. What is choreography? Decentralized control.
  5. What is a retry policy? A rule for trying again.
  6. What is a dead-letter queue? A place for failed messages.
  7. What is idempotency? Doing something without extra effect.
  8. What is eventual consistency? Data becomes consistent over time.
  9. What is a timeout? A limit on waiting time.
  10. Why use Sagas? To keep data consistent without long locks.

📝 Matching Exercise

Match the term:

1. SagaA. Undo action
2. CompensationB. Place for failed messages
3. Dead-Letter QueueC. Distributed transaction pattern

Answers: 1-C, 2-A, 3-B

🧩 Scenario-based Exercise

Scenario: A company has a Saga for order processing: Reserve Inventory, Charge Credit Card, Send Confirmation. If the credit card charge fails, what should happen?

Answer: The Saga should compensate by releasing the inventory and cancelling the confirmation.

👥 Group Activity

In groups, design a Saga for a school library system that checks out a book, updates the inventory, and sends a notification.

🧑‍🎓 Individual Activity

Draw a sequence diagram for a Saga with 3 steps.

🛠️ Mini Project

Design a Saga for an online restaurant ordering system (order, payment, delivery).

📋 Practical Assignment

Write a short document (3 paragraphs) explaining when you would use a Saga.

💬 Classroom Discussion Questions

  • Why is compensation important in a Saga?
  • What is the difference between orchestration and choreography?
  • How does a dead-letter queue help?

🔑 Key Takeaways

  • Sagas manage distributed transactions with steps and compensations.
  • Choose orchestration or choreography based on your needs.
  • Retry policies and dead-letter queues make systems more robust.
  • Always design for failure.

🚀 Preparation for Module 5

In Module 5, we will put everything together and learn about data migration strategies, including how to plan a large-scale migration and avoid common pitfalls. You are becoming a true integration expert!


End of Module 4. Keep up the fantastic work! 🌟

6

Module Five

Module 5: Planning and Executing a Data Migration

Module 5: Planning and Executing a Data Migration

How to Move Data Safely from Old to New Systems


Welcome, data mover! 🧭 In the previous modules, we learned about tools and integration patterns. Now we are going to put it all together and learn how to plan and execute a data migration project.

Migrating data is like moving to a new house. You need to plan what to take, pack it carefully, move it, unpack it, and make sure nothing is broken or lost. In D365, we do the same thing with data.

This module will guide you through the entire migration lifecycle – from planning to validation – so you can move data with confidence.

🎯 Learning Objectives

  • Describe the main phases of a data migration project.
  • Explain how to assess data quality and clean data.
  • List the steps to extract, transform, and load data.
  • Understand how to validate migrated data.
  • Identify common migration pitfalls and how to avoid them.

📖 Warm-up Story: The Library Moves to a New Building

In the heart of Ibadan, there is a big public library. The library has thousands of books, magazines, and newspapers. The city decides to build a brand new, modern library building, and all the materials must be moved.

But you cannot just throw everything into boxes and move them! The librarians must:

  • Plan: What books are the most important? Which ones are damaged?
  • Extract: Carefully take books off the shelves.
  • Transform: Sort them by category, repair damaged ones, and update the catalogue.
  • Load: Place them on the new shelves in the correct order.
  • Validate: Check that every book is in the right place.

That is exactly how we migrate data in D365. We follow the same careful process to make sure everything arrives safely and correctly.

📚 Main Lessons

Lesson 1: What is a Data Migration Project?

Definition: A data migration project is a structured effort to move data from an old system (source) to a new system (target).

Why important: Migrating data incorrectly can cause huge problems – lost information, incorrect records, and angry customers.

Simple explanation: It is like moving your school notes from an old folder to a new, shiny binder.

Real-life example: A bank migrating customer accounts to a new core banking system.

School example: A school moving student records from paper files to a digital system.

Home example: Copying all your photos from an old computer to a new one.

Nigerian example: The Nigerian government migrating citizen data for the National Identity Management Commission (NIMC).

    Old System (Source)  ---->  Migration Process  ---->  New System (Target)
    

Mini summary: A data migration project is a planned move of data from one system to another.


Lesson 2: The 5 Phases of Data Migration

There are five main phases in any data migration:

  1. Discovery and Planning – Understand what data to move.
  2. Data Assessment and Cleansing – Check data quality and fix issues.
  3. Extract, Transform, Load (ETL) – Move the data.
  4. Validation and Testing – Verify everything is correct.
  5. Go-Live and Monitoring – Switch to the new system and watch for issues.
    Discovery  -->  Assessment  -->  ETL  -->  Validation  -->  Go-Live
    (Plan)       (Clean)         (Move)   (Check)        (Switch)
    

Lesson 3: Discovery and Planning – The Blueprint

Before moving anything, we need a clear plan. This phase involves answering questions like:

  • What data needs to move?
  • Where is it coming from?
  • What will the new system look like?
  • Who is in charge of the migration?

The output is a migration plan that everyone agrees on.


Lesson 4: Data Assessment and Cleansing – Cleaning Your Room

Definition: This phase involves checking the quality of the source data and fixing any problems – like missing values, duplicates, or incorrect formats.

Why important: If you migrate dirty data, you will have dirty data in your new system. That causes errors and frustration.

Simple explanation: It is like cleaning your room before moving – you throw away trash, organise things, and decide what to keep.

Real-life example: A company removes duplicate customer records before migration.

School example: A school checks that all student names are spelled correctly before importing them.

Home example: Sorting through old toys and keeping only the ones you still play with.

Nigerian example: A bank verifying that all BVN numbers are valid before migration.

    Dirty Data  -->  Clean  -->  Clean Data
    (duplicates)    (remove)    (ready)
    

Lesson 5: ETL – The Heart of Migration

Extract: Get the data from the source system.

Transform: Change the data to fit the new system (e.g., change date formats, merge fields).

Load: Put the data into the new system.

This is the most technical part of the migration.

    Source  -->  Extract  -->  Transform  -->  Load  -->  Target
    (Old DB)   (Get data)    (Change)      (Put in)   (New DB)
    

Lesson 6: Validation – Checking Your Work

After loading data, we must verify that everything is correct. This is called validation.

We check things like:

  • Did all records move?
  • Are the values correct?
  • Are there any errors?

We usually start with a small test (like 100 records) before doing the full migration.


Lesson 7: Go-Live – The Big Switch

After validation, we switch to the new system. This is called "go-live".

During this phase, we monitor the system closely to catch any issues quickly.


Lesson 8: Big Bang vs Staged Migration

Big Bang: All data is migrated at once. This is faster but riskier.

Staged: Data is migrated in phases (e.g., department by department). This is slower but safer.

Big BangStaged
All at onceIn phases
RiskierSafer
FasterSlower

Lesson 9: Tools We Use for Migration

  • Data Management Framework (DMF): The main tool for import/export.
  • Data Entities: Organise data for migration.
  • Data Packages: Bundle multiple entities.
  • BYOD (Bring Your Own Database): Export to Azure SQL.

Lesson 10: Data Quality Rules – The Checkers

Data quality rules define what good data looks like. For example:

  • Email must contain '@'.
  • Phone number must have 11 digits.
  • Date must be in DD/MM/YYYY format.

Lesson 11: Error Handling – What to Do When Things Go Wrong

Errors will happen. The key is to handle them gracefully. Steps include:

  • Log the error.
  • Fix the issue in the source data.
  • Retry the migration.

Lesson 12: Cutover – The Moment of Truth

Cutover is the specific time when you switch from the old system to the new one. It is usually done during off‑peak hours to minimize disruption.


Lesson 13: UAT – Asking Users to Test

Before going live, we ask actual users to test the new system with the migrated data. This is called User Acceptance Testing (UAT).


Lesson 14: Post-Migration Review – Learning from the Experience

After the migration, the team reviews what went well and what could be improved. This helps future migrations go smoother.


Lesson 15: Migration Checklist – Your Safety Net

  • Plan and document everything.
  • Clean your data.
  • Test with a small sample.
  • Get approval to proceed.
  • Execute the full migration.
  • Validate the results.
  • Go live and monitor.

📖 Key Vocabulary

  • Migration: Moving data from one system to another.
  • Discovery: Understanding what data needs to move.
  • Cleansing: Fixing data errors before migration.
  • ETL: Extract, Transform, Load.
  • Validation: Checking that data is correct after migration.
  • Go-Live: Switching to the new system.
  • Cutover: The moment of switching systems.
  • UAT: User Acceptance Testing.
  • Big Bang: All-at-once migration.
  • Staged Migration: Phased migration.

🧠 Important Concepts

  • Plan before you move.
  • Clean data is crucial.
  • Test, test, and test again.
  • Monitor after go-live.

📝 Step-by-Step: Simple Data Migration

  1. Identify what data to move.
  2. Clean the data (remove duplicates, fix errors).
  3. Export the data using DMF.
  4. Transform the data (if needed).
  5. Import the data into the new system.
  6. Validate the results.
  7. Go live.

🌍 Real-life Examples

  • A hospital migrating patient records to a new electronic system.
  • A retailer migrating product data to a new e‑commerce platform.

🇳🇬 Nigerian Examples

  • A Nigerian university migrating student records to a new portal.
  • A telecom company migrating customer data to a new billing system.

🎈 Fun Examples

  • Moving your game saves from a console to a cloud storage.
  • Transferring your music playlist from one app to another.

🏠 Everyday Examples

  • Moving your contacts from an old phone to a new one.
  • Uploading photos from a camera to a computer.

👪 Parent Tips

  • Teach kids that organising data is like organising a room.
  • Explain that cleaning data saves time later.

🤓 Interesting Facts

  • The first data migrations were done using magnetic tapes.
  • Some migrations take years to complete.

💡 Did You Know?

  • D365 can migrate data from SAP, Oracle, and other legacy systems.

🧾 Remember This

  • Plan, clean, test, and monitor.
  • Dirty data leads to dirty results.

⚠️ Common Mistakes

  • Skipping data cleansing.
  • Not testing with a sample.
  • Forgetting to backup.

✅ Best Practices

  • Always have a rollback plan.
  • Document every step.
  • Communicate with all stakeholders.
  • Start with a pilot migration.

📊 Illustrations

Migration Timeline

    Week 1: Discovery  -->  Week 2: Cleansing  -->  Week 3: ETL  -->  Week 4: Testing  -->  Week 5: Go-Live
    

ETL Process

    +--------+    +-----------+    +--------+
    | Extract|--->| Transform |--->| Load   |
    +--------+    +-----------+    +--------+
    

Comparison: Big Bang vs Staged

FactorBig BangStaged
SpeedFastSlow
RiskHighLow
ComplexityLowHigh

📌 End-of-Module Summary

Congratulations! You now understand the entire data migration lifecycle. From planning and cleansing to extraction, transformation, loading, and validation – you are ready to move data like a pro.

❓ Frequently Asked Questions

  1. What is data migration? Moving data from one system to another.
  2. What are the 5 phases? Discovery, Cleansing, ETL, Validation, Go-Live.
  3. What is ETL? Extract, Transform, Load.
  4. Why clean data? To avoid errors in the new system.
  5. What is validation? Checking that data is correct after migration.
  6. What is Big Bang migration? All data at once.
  7. What is Staged migration? In phases.
  8. What is UAT? User Acceptance Testing.
  9. What is cutover? The moment of switching systems.
  10. What is a rollback plan? A plan to undo the migration if something goes wrong.

📝 Matching Exercise

Match the term:

1. ETLA. Checking data after migration
2. ValidationB. Extract, Transform, Load
3. Go-LiveC. Switching to the new system

Answers: 1-B, 2-A, 3-C

🧩 Scenario-based Exercise

Scenario: A company is migrating customer data. They discover that 20% of records have missing phone numbers. What should they do?

Answer: They should clean the data by contacting customers to get the missing numbers, or mark those records for review during validation.

👥 Group Activity

In groups, design a migration plan for a school moving from paper records to D365.

🧑‍🎓 Individual Activity

Write a checklist for a data migration project.

🛠️ Mini Project

Create a migration timeline for a company with 10,000 customers. Show phases and durations.

📋 Practical Assignment

Write a one-page migration plan for a small business moving to D365.

💬 Classroom Discussion Questions

  • Why is data cleansing so important?
  • What would happen if you skipped validation?
  • Which migration strategy is better – Big Bang or Staged?

🔑 Key Takeaways

  • Data migration is a structured process.
  • Clean data is the foundation of a successful migration.
  • Testing is critical.
  • Always plan for failures.

🚀 Preparation for Module 6

In Module 6, we will explore the exciting world of monitoring and troubleshooting integrations. You will learn how to use dashboards, logs, and alerts to keep your integrations healthy. See you there!


End of Module 5. You are now a migration master in the making! 🌟

7

Module Five

Module 5: Planning and Executing a Data Migration

Module 5: Planning and Executing a Data Migration

How to Move Data Safely from Old to New Systems


Welcome, data mover! 🧭 In the previous modules, we learned about tools and integration patterns. Now we are going to put it all together and learn how to plan and execute a data migration project.

Migrating data is like moving to a new house. You need to plan what to take, pack it carefully, move it, unpack it, and make sure nothing is broken or lost. In D365, we do the same thing with data.

This module will guide you through the entire migration lifecycle – from planning to validation – so you can move data with confidence.

🎯 Learning Objectives

  • Describe the main phases of a data migration project.
  • Explain how to assess data quality and clean data.
  • List the steps to extract, transform, and load data.
  • Understand how to validate migrated data.
  • Identify common migration pitfalls and how to avoid them.

📖 Warm-up Story: The Library Moves to a New Building

In the heart of Ibadan, there is a big public library. The library has thousands of books, magazines, and newspapers. The city decides to build a brand new, modern library building, and all the materials must be moved.

But you cannot just throw everything into boxes and move them! The librarians must:

  • Plan: What books are the most important? Which ones are damaged?
  • Extract: Carefully take books off the shelves.
  • Transform: Sort them by category, repair damaged ones, and update the catalogue.
  • Load: Place them on the new shelves in the correct order.
  • Validate: Check that every book is in the right place.

That is exactly how we migrate data in D365. We follow the same careful process to make sure everything arrives safely and correctly.

📚 Main Lessons

Lesson 1: What is a Data Migration Project?

Definition: A data migration project is a structured effort to move data from an old system (source) to a new system (target).

Why important: Migrating data incorrectly can cause huge problems – lost information, incorrect records, and angry customers.

Simple explanation: It is like moving your school notes from an old folder to a new, shiny binder.

Real-life example: A bank migrating customer accounts to a new core banking system.

School example: A school moving student records from paper files to a digital system.

Home example: Copying all your photos from an old computer to a new one.

Nigerian example: The Nigerian government migrating citizen data for the National Identity Management Commission (NIMC).

    Old System (Source)  ---->  Migration Process  ---->  New System (Target)
    

Mini summary: A data migration project is a planned move of data from one system to another.


Lesson 2: The 5 Phases of Data Migration

There are five main phases in any data migration:

  1. Discovery and Planning – Understand what data to move.
  2. Data Assessment and Cleansing – Check data quality and fix issues.
  3. Extract, Transform, Load (ETL) – Move the data.
  4. Validation and Testing – Verify everything is correct.
  5. Go-Live and Monitoring – Switch to the new system and watch for issues.
    Discovery  -->  Assessment  -->  ETL  -->  Validation  -->  Go-Live
    (Plan)       (Clean)         (Move)   (Check)        (Switch)
    

Lesson 3: Discovery and Planning – The Blueprint

Before moving anything, we need a clear plan. This phase involves answering questions like:

  • What data needs to move?
  • Where is it coming from?
  • What will the new system look like?
  • Who is in charge of the migration?

The output is a migration plan that everyone agrees on.


Lesson 4: Data Assessment and Cleansing – Cleaning Your Room

Definition: This phase involves checking the quality of the source data and fixing any problems – like missing values, duplicates, or incorrect formats.

Why important: If you migrate dirty data, you will have dirty data in your new system. That causes errors and frustration.

Simple explanation: It is like cleaning your room before moving – you throw away trash, organise things, and decide what to keep.

Real-life example: A company removes duplicate customer records before migration.

School example: A school checks that all student names are spelled correctly before importing them.

Home example: Sorting through old toys and keeping only the ones you still play with.

Nigerian example: A bank verifying that all BVN numbers are valid before migration.

    Dirty Data  -->  Clean  -->  Clean Data
    (duplicates)    (remove)    (ready)
    

Lesson 5: ETL – The Heart of Migration

Extract: Get the data from the source system.

Transform: Change the data to fit the new system (e.g., change date formats, merge fields).

Load: Put the data into the new system.

This is the most technical part of the migration.

    Source  -->  Extract  -->  Transform  -->  Load  -->  Target
    (Old DB)   (Get data)    (Change)      (Put in)   (New DB)
    

Lesson 6: Validation – Checking Your Work

After loading data, we must verify that everything is correct. This is called validation.

We check things like:

  • Did all records move?
  • Are the values correct?
  • Are there any errors?

We usually start with a small test (like 100 records) before doing the full migration.


Lesson 7: Go-Live – The Big Switch

After validation, we switch to the new system. This is called "go-live".

During this phase, we monitor the system closely to catch any issues quickly.


Lesson 8: Big Bang vs Staged Migration

Big Bang: All data is migrated at once. This is faster but riskier.

Staged: Data is migrated in phases (e.g., department by department). This is slower but safer.

Big BangStaged
All at onceIn phases
RiskierSafer
FasterSlower

Lesson 9: Tools We Use for Migration

  • Data Management Framework (DMF): The main tool for import/export.
  • Data Entities: Organise data for migration.
  • Data Packages: Bundle multiple entities.
  • BYOD (Bring Your Own Database): Export to Azure SQL.

Lesson 10: Data Quality Rules – The Checkers

Data quality rules define what good data looks like. For example:

  • Email must contain '@'.
  • Phone number must have 11 digits.
  • Date must be in DD/MM/YYYY format.

Lesson 11: Error Handling – What to Do When Things Go Wrong

Errors will happen. The key is to handle them gracefully. Steps include:

  • Log the error.
  • Fix the issue in the source data.
  • Retry the migration.

Lesson 12: Cutover – The Moment of Truth

Cutover is the specific time when you switch from the old system to the new one. It is usually done during off‑peak hours to minimize disruption.


Lesson 13: UAT – Asking Users to Test

Before going live, we ask actual users to test the new system with the migrated data. This is called User Acceptance Testing (UAT).


Lesson 14: Post-Migration Review – Learning from the Experience

After the migration, the team reviews what went well and what could be improved. This helps future migrations go smoother.


Lesson 15: Migration Checklist – Your Safety Net

  • Plan and document everything.
  • Clean your data.
  • Test with a small sample.
  • Get approval to proceed.
  • Execute the full migration.
  • Validate the results.
  • Go live and monitor.

📖 Key Vocabulary

  • Migration: Moving data from one system to another.
  • Discovery: Understanding what data needs to move.
  • Cleansing: Fixing data errors before migration.
  • ETL: Extract, Transform, Load.
  • Validation: Checking that data is correct after migration.
  • Go-Live: Switching to the new system.
  • Cutover: The moment of switching systems.
  • UAT: User Acceptance Testing.
  • Big Bang: All-at-once migration.
  • Staged Migration: Phased migration.

🧠 Important Concepts

  • Plan before you move.
  • Clean data is crucial.
  • Test, test, and test again.
  • Monitor after go-live.

📝 Step-by-Step: Simple Data Migration

  1. Identify what data to move.
  2. Clean the data (remove duplicates, fix errors).
  3. Export the data using DMF.
  4. Transform the data (if needed).
  5. Import the data into the new system.
  6. Validate the results.
  7. Go live.

🌍 Real-life Examples

  • A hospital migrating patient records to a new electronic system.
  • A retailer migrating product data to a new e‑commerce platform.

🇳🇬 Nigerian Examples

  • A Nigerian university migrating student records to a new portal.
  • A telecom company migrating customer data to a new billing system.

🎈 Fun Examples

  • Moving your game saves from a console to a cloud storage.
  • Transferring your music playlist from one app to another.

🏠 Everyday Examples

  • Moving your contacts from an old phone to a new one.
  • Uploading photos from a camera to a computer.

👪 Parent Tips

  • Teach kids that organising data is like organising a room.
  • Explain that cleaning data saves time later.

🤓 Interesting Facts

  • The first data migrations were done using magnetic tapes.
  • Some migrations take years to complete.

💡 Did You Know?

  • D365 can migrate data from SAP, Oracle, and other legacy systems.

🧾 Remember This

  • Plan, clean, test, and monitor.
  • Dirty data leads to dirty results.

⚠️ Common Mistakes

  • Skipping data cleansing.
  • Not testing with a sample.
  • Forgetting to backup.

✅ Best Practices

  • Always have a rollback plan.
  • Document every step.
  • Communicate with all stakeholders.
  • Start with a pilot migration.

📊 Illustrations

Migration Timeline

    Week 1: Discovery  -->  Week 2: Cleansing  -->  Week 3: ETL  -->  Week 4: Testing  -->  Week 5: Go-Live
    

ETL Process

    +--------+    +-----------+    +--------+
    | Extract|--->| Transform |--->| Load   |
    +--------+    +-----------+    +--------+
    

Comparison: Big Bang vs Staged

FactorBig BangStaged
SpeedFastSlow
RiskHighLow
ComplexityLowHigh

📌 End-of-Module Summary

Congratulations! You now understand the entire data migration lifecycle. From planning and cleansing to extraction, transformation, loading, and validation – you are ready to move data like a pro.

❓ Frequently Asked Questions

  1. What is data migration? Moving data from one system to another.
  2. What are the 5 phases? Discovery, Cleansing, ETL, Validation, Go-Live.
  3. What is ETL? Extract, Transform, Load.
  4. Why clean data? To avoid errors in the new system.
  5. What is validation? Checking that data is correct after migration.
  6. What is Big Bang migration? All data at once.
  7. What is Staged migration? In phases.
  8. What is UAT? User Acceptance Testing.
  9. What is cutover? The moment of switching systems.
  10. What is a rollback plan? A plan to undo the migration if something goes wrong.

📝 Matching Exercise

Match the term:

1. ETLA. Checking data after migration
2. ValidationB. Extract, Transform, Load
3. Go-LiveC. Switching to the new system

Answers: 1-B, 2-A, 3-C

🧩 Scenario-based Exercise

Scenario: A company is migrating customer data. They discover that 20% of records have missing phone numbers. What should they do?

Answer: They should clean the data by contacting customers to get the missing numbers, or mark those records for review during validation.

👥 Group Activity

In groups, design a migration plan for a school moving from paper records to D365.

🧑‍🎓 Individual Activity

Write a checklist for a data migration project.

🛠️ Mini Project

Create a migration timeline for a company with 10,000 customers. Show phases and durations.

📋 Practical Assignment

Write a one-page migration plan for a small business moving to D365.

💬 Classroom Discussion Questions

  • Why is data cleansing so important?
  • What would happen if you skipped validation?
  • Which migration strategy is better – Big Bang or Staged?

🔑 Key Takeaways

  • Data migration is a structured process.
  • Clean data is the foundation of a successful migration.
  • Testing is critical.
  • Always plan for failures.

🚀 Preparation for Module 6

In Module 6, we will explore the exciting world of monitoring and troubleshooting integrations. You will learn how to use dashboards, logs, and alerts to keep your integrations healthy. See you there!


End of Module 5. You are now a migration master in the making! 🌟

8

Module Six

Module 6: Monitoring and Troubleshooting Integrations

Module 6: Monitoring and Troubleshooting Integrations

Keeping Your Systems Healthy and Happy


Welcome, system doctor! 🧭 In the previous modules, we learned how to connect systems and move data. But once everything is connected, how do we make sure it stays that way?

Imagine you have a car. You would not just drive it forever without checking the oil, tyres, and engine. You need to monitor it. The same is true for integrations.

In this module, we will learn how to monitor integrations, troubleshoot problems when they happen, and keep everything running smoothly.

🎯 Learning Objectives

  • Explain why monitoring integrations is important.
  • List common tools used for monitoring.
  • Describe the steps to troubleshoot a failed integration.
  • Identify common causes of integration failures.
  • Explain how to set up alerts and dashboards.

📖 Warm-up Story: The Bakery Alarm System

In the heart of Lagos, there is a famous bakery called "Sweet Delights." They have a big oven that bakes bread all night. The oven is connected to a monitoring system that alerts the baker if the temperature gets too high or too low.

One night, the temperature started dropping. The monitoring system sent an alert to the baker's phone. The baker woke up, fixed the problem, and saved the bread.

That is exactly what monitoring does for integrations. It watches your systems and alerts you when something is wrong, so you can fix it before it becomes a big problem.

📚 Main Lessons

Lesson 1: Why Monitor Integrations?

Definition: Monitoring is the continuous process of watching your integrations to make sure they are working correctly.

Why important: Without monitoring, you will only know about problems when users complain. That is too late.

Simple explanation: It is like checking your phone's battery percentage. You want to know before it dies, not after.

Real-life example: An e‑commerce site monitors its payment integration to make sure customers can pay.

School example: A school monitors its attendance system to ensure it syncs with the parent portal.

Home example: Your smart home system monitors the front door lock to alert you if it is left open.

Nigerian example: A Nigerian bank monitors its ATM network to ensure cash is always available.

    Integration  --Monitor-->  Dashboard  -->  Alert if problem
    

Mini summary: Monitoring helps you catch problems early.


Lesson 2: Key Metrics to Monitor

There are several things to watch:

  • Response Time: How long does it take for a request to get a response?
  • Success Rate: What percentage of requests succeed?
  • Error Rate: How many errors are happening?
  • Throughput: How many requests are processed per minute?
  • Latency: How long does data take to travel?

Lesson 3: Tools for Monitoring

  • Azure Monitor: A cloud service that collects and analyses telemetry data.
  • Application Insights: A tool within Azure Monitor for monitoring applications.
  • Log Analytics: A tool to query and analyse log data.
  • Dashboards: Visual displays that show key metrics in real-time.
    Systems  -->  Azure Monitor  -->  Dashboard  -->  Alerts
    

Lesson 4: Alerts – The Early Warning System

Definition: An alert is a notification that is triggered when a metric crosses a threshold.

Why important: Alerts let you know about problems immediately, so you can act quickly.

Simple explanation: Like a smoke alarm. It does not wait for you to smell smoke – it tells you right away.

Real-life example: An alert is sent to the IT team when the payment gateway goes down.

School example: An alert is sent when the school's Wi‑Fi network goes offline.

Home example: A security camera sends an alert when it detects motion.

Nigerian example: A logistics company sets up alerts for when a delivery vehicle's GPS stops sending signals.

    Metric (e.g., error rate > 10%)  -->  Alert  -->  Send Email/SMS
    

Lesson 5: Troubleshooting – The Detective Work

When an integration fails, you need to investigate. Here are the steps:

  1. Identify the problem: What exactly is not working?
  2. Check the logs: Look at the error messages.
  3. Reproduce the issue: Can you make the same problem happen again?
  4. Isolate the cause: Find the root of the problem.
  5. Fix it: Apply a solution.
  6. Test: Make sure the fix works.
  7. Document: Write down what happened and how you fixed it.
    Problem  -->  Logs  -->  Reproduce  -->  Isolate  -->  Fix  -->  Test  -->  Document
    

Lesson 6: Common Errors and Their Causes

  • Authentication Errors: The system could not verify the identity of the caller. (Wrong password or expired token.)
  • Timeout Errors: The system did not respond in the expected time. (Network issues or slow processing.)
  • Data Validation Errors: The data sent did not match the expected format. (Missing fields or wrong data types.)
  • Service Unavailable Errors: The system is temporarily down. (Maintenance or crashes.)

Lesson 7: Logs – Your Memory Book

Definition: Logs are detailed records of events that happen in your system. They record every request, response, and error.

Why important: Logs are essential for troubleshooting. They tell you exactly what happened and when.

Simple explanation: Like a diary that records everything that happens in your day.

Real-life example: An e‑commerce site logs every transaction so they can investigate any issues.

School example: A school logs every time a student logs into the system.

Home example: Your phone logs all the calls you make.

Nigerian example: A bank logs all ATM transactions.


Lesson 8: Log Levels – What to Look For

  • INFO: Normal, expected behaviour.
  • WARNING: Something unusual but not critical.
  • ERROR: A failure that needs attention.
  • CRITICAL: A severe problem that may cause system downtime.

Lesson 9: Application Insights – The Super Tool

Application Insights is a powerful monitoring tool that can:

  • Track request rates and response times.
  • Show you a map of dependencies between systems.
  • Let you search through logs quickly.
  • Create dashboards with key metrics.

Lesson 10: Dashboards – Your Control Center

A dashboard is a visual display that shows your key metrics at a glance. It is like the dashboard in a car – you can see speed, fuel, and engine health all in one place.

A good integration dashboard shows:

  • Current status (Up/Down).
  • Success rate.
  • Average response time.
  • Number of errors in the last hour.

Lesson 11: Health Checks – The Regular Checkup

A health check is a test that runs automatically to verify that a system is working correctly.

Example: A health check might send a "ping" to an API. If it gets a response, the system is healthy. If not, an alert is triggered.


Lesson 12: Root Cause Analysis – Finding the Real Cause

When a problem occurs, it is important to find the root cause, not just treat the symptoms. Root cause analysis is a methodical way of finding the underlying reason for a failure.


Lesson 13: Incident Response – The Plan for Emergencies

An incident response plan is a predefined set of steps to follow when a critical integration fails. It includes:

  • Who to notify.
  • How to escalate the issue.
  • What to do to restore service.

Lesson 14: Communication – Keeping Everyone Informed

When an integration fails, it is important to communicate clearly with users and stakeholders. Let them know:

  • What is happening.
  • What you are doing to fix it.
  • When you expect it to be resolved.

Lesson 15: Continuous Improvement – Learning from Failures

After every incident, the team should review what happened and identify ways to prevent it from happening again. This is called a post-mortem review.


📖 Key Vocabulary

  • Monitoring: Watching systems to ensure they work.
  • Alert: A notification about a problem.
  • Log: A detailed record of events.
  • Dashboard: A visual display of key metrics.
  • Health Check: An automated test of system health.
  • Root Cause Analysis: Finding the underlying cause of a problem.
  • Incident Response: A plan for handling emergencies.
  • Application Insights: A Microsoft monitoring tool.

🧠 Important Concepts

  • Monitor early and often.
  • Logs are your best friend for troubleshooting.
  • Set up alerts for critical metrics.
  • Document everything.

📝 Step-by-Step: Troubleshooting a Failed Integration

  1. Check the dashboard to see if there is an alert.
  2. Look at the logs to find the error message.
  3. Identify if it is an authentication, timeout, or data error.
  4. Try to reproduce the problem in a test environment.
  5. Fix the issue (e.g., update credentials, increase timeout).
  6. Test the fix.
  7. Monitor to make sure the problem does not return.

🌍 Real-life Examples

  • An airline monitors its booking API to ensure tickets can be sold.
  • A streaming service monitors its video delivery integration.

🇳🇬 Nigerian Examples

  • A Nigerian e‑commerce site monitors its payment gateway integration.
  • A logistics company monitors its GPS tracking integration.

🎈 Fun Examples

  • Checking your game console's internet connection before playing online.
  • Monitoring your weather app to see if it is updating correctly.

🏠 Everyday Examples

  • Checking your phone's signal strength.
  • Looking at your bank balance to make sure transactions are showing.

👪 Parent Tips

  • Teach kids that checking things regularly prevents problems.
  • Explain that logs are like footprints – they show where you have been.

🤓 Interesting Facts

  • Some companies have a "war room" where teams gather during major outages.
  • Monitoring tools can send alerts via SMS, email, and even Slack.

💡 Did You Know?

  • Application Insights can show you a timeline of exactly what happened before an error.

🧾 Remember This

  • If you do not monitor it, you cannot fix it.
  • Logs are your primary tool for troubleshooting.

⚠️ Common Mistakes

  • Not setting up alerts – hoping nothing goes wrong.
  • Ignoring warning logs.
  • Not documenting solutions – so you have to figure it out again.

✅ Best Practices

  • Set up alerts for critical metrics.
  • Regularly review logs.
  • Create a runbook with troubleshooting steps.
  • Hold post-mortem meetings after incidents.

📊 Illustrations

Monitoring Flow

    System  -->  Logs  -->  Azure Monitor  -->  Dashboard  -->  Alert
    

Troubleshooting Steps

    Problem  -->  Logs  -->  Identify  -->  Fix  -->  Test  -->  Done
    

Log Levels

LevelMeaning
INFONormal
WARNINGUnusual
ERRORFailure
CRITICALSevere

📌 End-of-Module Summary

You are now equipped to monitor and troubleshoot integrations. Remember: logs are your friend, alerts are your early warning system, and dashboards give you the big picture. With these tools, you can keep your integrations healthy and resolve problems quickly.

❓ Frequently Asked Questions

  1. Why monitor integrations? To catch problems early.
  2. What tools should I use? Azure Monitor, Application Insights.
  3. What is a log? A record of events.
  4. What is an alert? A notification about a problem.
  5. What is a dashboard? A visual display of metrics.
  6. What is a health check? An automated test.
  7. What is root cause analysis? Finding the underlying problem.
  8. What is an incident response plan? A plan for emergencies.
  9. What is a post-mortem? A review after an incident.
  10. Why document solutions? So you do not have to solve it again.

📝 Matching Exercise

Match the term:

1. LogA. A notification about a problem
2. AlertB. A visual display of metrics
3. DashboardC. A detailed record of events

Answers: 1-C, 2-A, 3-B

🧩 Scenario-based Exercise

Scenario: A payment integration is failing. The log shows an authentication error. What is the likely cause and how would you fix it?

Answer: The API key or password may have expired. Check the credentials and update them.

👥 Group Activity

In groups, design a monitoring dashboard for an e‑commerce integration.

🧑‍🎓 Individual Activity

Write a troubleshooting guide for a common integration error (e.g., timeout).

🛠️ Mini Project

Create an incident response plan for a critical integration failure.

📋 Practical Assignment

Set up a health check for a sample API (conceptual).

💬 Classroom Discussion Questions

  • Why is it important to have a dashboard?
  • What would happen if you did not have logs?
  • How do alerts help prevent bigger problems?

🔑 Key Takeaways

  • Monitoring catches problems early.
  • Logs are essential for troubleshooting.
  • Alerts keep you informed.
  • Always document your fixes.

🚀 Preparation for Module 7

In Module 7, we will learn about security and governance – how to protect your integrations and ensure they meet organisational standards. You are almost an integration expert!


End of Module 6. Keep up the excellent work! 🌟

9

Module Seven

Module 7: Security, Governance, and Best Practices

Module 7: Security, Governance, and Best Practices

Protecting Your Integrations and Following the Rules


Welcome to the final module, young integration guardian! 🧭 You have learned about integration, migration, monitoring, and more. Now, we will learn about security and governance – how to protect your systems and make sure everyone follows the rules.

Think of security as the locks on your doors and governance as the rules your family agrees to follow. Both are essential for a happy, safe home – and the same applies to your integrations.

🎯 Learning Objectives

  • Explain why security is important for integrations.
  • Describe common authentication methods.
  • Understand the principle of least privilege.
  • Define governance and why it matters.
  • List best practices for secure integrations.

📖 Warm-up Story: The School Security Guard

At a big school in Abuja, there is a security guard at the gate. The guard checks every visitor's ID before letting them in. Students have special badges that allow them to enter certain areas – the library, the science lab, and the sports hall.

This is like security in integrations. Only the right people (or systems) should have access to the right data. And governance is like the school's rulebook – it says who can go where and what they can do.

📚 Main Lessons

Lesson 1: Why Security Matters in Integration

Definition: Security in integration means ensuring that only authorized systems and users can access data.

Why important: Without security, hackers could steal or change data. This would damage the company's reputation and trust.

Simple explanation: It is like locking your front door. You do not want strangers walking in and taking your stuff.

Real-life example: A bank's integration must be secure so no one can hack into customer accounts.

School example: Only teachers should be able to change student grades.

Home example: You lock your phone with a password so no one can see your messages.

Nigerian example: A Nigerian fintech uses strong security to protect people's money transfers.

    System  <--Secure Connection-->  Integration  <--Secure Connection-->  System
    

Mini summary: Security protects data from unauthorized access.


Lesson 2: Authentication – Who Are You?

Definition: Authentication is the process of verifying the identity of a user or system.

Why important: Before you let someone in, you need to know who they are.

Simple explanation: Like showing your school ID at the gate.

Real-life example: Logging into your email with a username and password.

School example: Using a student card to borrow books from the library.

Home example: Entering a PIN to unlock your phone.

Nigerian example: Using a BVN (Bank Verification Number) to access bank services.

    User/System  -->  Sends Credentials  -->  System Checks  -->  Access Granted/Denied
    

Lesson 3: Authorization – What Are You Allowed to Do?

Definition: Authorization determines what a user or system is allowed to do after authentication.

Why important: Even if you are inside the building, you should not be able to enter every room.

Simple explanation: Like having a pass to the science lab but not to the staff room.

Real-life example: A customer service agent can view orders but cannot delete them.

School example: Students can borrow books but cannot change the library system's rules.

Home example: You can use the TV, but you cannot change the internet settings.

Nigerian example: A bank teller can process deposits but cannot change interest rates.


Lesson 4: Least Privilege – Only What You Need

Definition: The principle of least privilege means giving a user or system only the permissions they need, and nothing more.

Why important: It limits the damage that can be done if a system is compromised.

Simple explanation: Like giving a friend a key to the front door, but not to your safe.

Real-life example: A junior employee can view reports but cannot approve payments.

School example: A class monitor can take attendance but cannot change exam marks.

Home example: You give your sibling the Wi‑Fi password but not your computer login.

Nigerian example: A cashier can take orders but cannot refund money without a manager.


Lesson 5: Encryption – Scrambling Data to Keep It Safe

Definition: Encryption is the process of converting data into a secret code that only authorized parties can read.

Why important: Even if someone intercepts the data, they cannot read it without the key.

Simple explanation: Like writing a message in a secret language that only your friend understands.

Real-life example: Online shopping websites encrypt your credit card number when you pay.

School example: A school encrypts student records so only staff can read them.

Home example: Using a password manager that encrypts your passwords.

Nigerian example: Banks use encryption to protect customer transactions.

    Original Data  --Encrypt-->  Scrambled Data  --Decrypt-->  Original Data
    

Lesson 6: API Keys – The Passwords for Integrations

Definition: An API key is a unique code that identifies an application calling an API.

Why important: It ensures that only authorized apps can access the API.

Simple explanation: Like a secret handshake that only you and your friend know.

Real-life example: A weather app uses an API key to get data from a weather service.

School example: A school app uses an API key to access the gradebook.

Home example: A smart home system uses an API key to connect to the internet.

Nigerian example: A payment gateway uses an API key to integrate with a store.


Lesson 7: OAuth – The Secure Sharing Method

Definition: OAuth (Open Authorization) is a protocol that allows one app to access another app's data without sharing passwords.

Why important: It is more secure because you do not give away your password.

Simple explanation: Like giving a friend a special pass to enter the library, instead of giving them your student ID.

Real-life example: Logging into a website with your Google account.

School example: Using your school email to sign into an educational app.

Home example: Using your Facebook account to log into a game.

Nigerian example: A fintech uses OAuth to allow users to share financial data safely.


Lesson 8: Governance – The Rules of the Road

Definition: Governance is the set of rules, policies, and procedures that guide how integrations are built, used, and maintained.

Why important: Without governance, different teams might do things differently, causing confusion and errors.

Simple explanation: Like the rules your family has – who does the dishes, when is bedtime, etc.

Real-life example: A company has a policy that all APIs must use OAuth for authentication.

School example: A school has a rule that all field trips must be approved by the principal.

Home example: Your family rule that everyone must put their phone away during dinner.

Nigerian example: A Nigerian company has a policy that customer data must stay within the country.


Lesson 9: Compliance – Following the Laws

Definition: Compliance is following the laws and regulations that apply to your business.

Why important: Breaking the law can result in fines, legal action, and loss of trust.

Simple explanation: Like not cheating on a test because you know it is against the rules.

Real-life example: A company must comply with data privacy laws like GDPR.

School example: A school must follow government rules about student data.

Home example: You must follow the rules of a game when playing with friends.

Nigerian example: A bank must comply with the Central Bank of Nigeria's regulations.


Lesson 10: Data Privacy – Respecting Personal Information

Definition: Data privacy means protecting personal information and only using it in the ways that have been agreed upon.

Why important: People need to trust that their information is safe.

Simple explanation: Like not sharing your friend's secrets with others.

Real-life example: A company asks for permission before sending marketing emails.

School example: A school does not share student addresses with the public.

Home example: You do not share your family's private photos online.

Nigerian example: A telecom company protects customer call records.


Lesson 11: Auditing – Keeping Track of Who Did What

Definition: Auditing is the process of reviewing logs and activities to make sure everyone is following the rules.

Why important: It helps detect and prevent misuse.

Simple explanation: Like a teacher checking who did their homework.

Real-life example: A company reviews logs to see who accessed sensitive data.

School example: A school checks the library records to see who took out books.

Home example: You check your phone to see who used it while you were away.

Nigerian example: A bank audits transactions to detect fraud.


Lesson 12: Best Practices – Doing It Right

  • Always use encryption for data in transit.
  • Never hard-code credentials (like API keys) in code.
  • Use strong authentication (OAuth, API keys).
  • Apply the principle of least privilege.
  • Regularly review and rotate credentials.
  • Monitor and log all access.

Lesson 13: Third-Party Risk – When You Depend on Others

When you integrate with external systems, you are also taking on some of their risk. If they have a security breach, it could affect you. Therefore, you must assess the security of your partners.


Lesson 14: Disaster Recovery – What If Everything Goes Wrong?

Disaster recovery is a plan for what to do if a system fails completely. It includes:

  • Backups of all data.
  • A plan to restore services.
  • A communication plan for users.

Lesson 15: Security Reviews – Keeping It Safe Over Time

Security is not a one-time task. Regular security reviews help identify new threats and vulnerabilities.


📖 Key Vocabulary

  • Security: Protecting systems and data.
  • Authentication: Proving identity.
  • Authorization: Granting permissions.
  • Least Privilege: Giving only the minimum necessary access.
  • Encryption: Encoding data to keep it secret.
  • API Key: A code for API access.
  • OAuth: A secure authorization protocol.
  • Governance: Rules for how things are done.
  • Compliance: Following laws and regulations.
  • Auditing: Reviewing activities for correctness.

🧠 Important Concepts

  • Security is everyone's responsibility.
  • Always use encryption for sensitive data.
  • Follow the principle of least privilege.
  • Governance ensures consistency.

📝 Step-by-Step: Securing an API

  1. Choose an authentication method (e.g., OAuth).
  2. Generate a secret API key for each application.
  3. Require the API key in every request.
  4. Use TLS (encryption) for all communications.
  5. Log all access.
  6. Regularly rotate API keys.

🌍 Real-life Examples

  • A hospital uses encrypted integrations to protect patient records.
  • A government agency uses OAuth for secure citizen portals.

🇳🇬 Nigerian Examples

  • A Nigerian bank uses encryption for all inter-bank transfers.
  • A government agency uses least privilege for employee data access.

🎈 Fun Examples

  • Using a secret code to talk to your friend in class.
  • Having a password for your game account.

🏠 Everyday Examples

  • Locking your bike with a chain.
  • Keeping your diary in a safe place.

👪 Parent Tips

  • Teach kids about the importance of strong passwords.
  • Explain that not everyone needs access to everything.

🤓 Interesting Facts

  • The world's first password was used in the 1960s.
  • Weak passwords cause 80% of data breaches.

💡 Did You Know?

  • OAuth is used by Google, Facebook, and many other major companies.

🧾 Remember This

  • Security is not a one-time task – it is an ongoing process.
  • Governance helps everyone stay on the same page.

⚠️ Common Mistakes

  • Using weak passwords.
  • Hard-coding API keys in code.
  • Not encrypting data in transit.

✅ Best Practices

  • Use strong, unique passwords.
  • Store API keys securely (e.g., in Azure Key Vault).
  • Apply the principle of least privilege.
  • Regularly audit access.
  • Encrypt all sensitive data.

📊 Illustrations

Authentication Flow

    User/System  -->  Username/Password  -->  System Checks  -->  Access Granted/Denied
    

Encryption Process

    "Hello"  --Encrypt-->  "7G$2kL"  --Decrypt-->  "Hello"
    

Comparison: Authentication vs Authorization

AuthenticationAuthorization
Who are you?What can you do?
Happens firstHappens after
Checks identityChecks permissions

📌 End-of-Module Summary

Congratulations! You have completed the final module. You now understand the importance of security and governance in integrations. Remember: secure your integrations, follow the rules, and always protect data.

❓ Frequently Asked Questions

  1. Why is security important? To protect data.
  2. What is authentication? Proving identity.
  3. What is authorization? Granting permissions.
  4. What is the least privilege principle? Give only what is needed.
  5. What is encryption? Encoding data to keep it secret.
  6. What is an API key? An identifier for API access.
  7. What is OAuth? A secure authorization protocol.
  8. What is governance? Rules for how things are done.
  9. What is compliance? Following laws and regulations.
  10. What is auditing? Checking that rules are followed.

📝 Matching Exercise

Match the term:

1. AuthenticationA. Granting permissions
2. AuthorizationB. Proving identity
3. EncryptionC. Encoding data to keep it secret

Answers: 1-B, 2-A, 3-C

🧩 Scenario-based Exercise

Scenario: A junior developer accidentally pushes an API key to a public code repository. What should be done?

Answer: Immediately revoke the key, generate a new one, and ensure the old key is removed from all systems. Also, educate the developer on best practices.

👥 Group Activity

In groups, create a governance checklist for a company's integration projects.

🧑‍🎓 Individual Activity

Write down 3 security best practices you will use in your future projects.

🛠️ Mini Project

Design a security plan for an integration between a bank and an e‑commerce site.

📋 Practical Assignment

Write a one-page security policy for using APIs in your company.

💬 Classroom Discussion Questions

  • Why is least privilege important?
  • What could happen if you do not use encryption?
  • How does governance help a company?

🔑 Key Takeaways

  • Security protects data from unauthorized access.
  • Authentication verifies identity.
  • Authorization controls what you can do.
  • Governance ensures consistency and compliance.

🎉 Congratulations! You Have Completed the Course

You have now completed all modules of the Microsoft Dynamics 365 Integration and Data Migration course. You have learned:

  • Module 1: Basics of Integration and Migration.
  • Module 2: Tools – Data Management Framework and Entities.
  • Module 3: Integration Patterns and APIs.
  • Module 4: Advanced Integration – The Saga Pattern.
  • Module 5: Planning and Executing Data Migration.
  • Module 6: Monitoring and Troubleshooting.
  • Module 7: Security, Governance, and Best Practices.

You are now ready to apply these skills in real-world projects. Keep learning, keep exploring, and always remember – integration is about building bridges between systems.

Thank you for joining this course! 🌟


End of Module 7 and the complete course. Well done! 🎉

10

Module Eight

Module 8: Real-World Case Studies and Capstone Project

Module 8: Real-World Case Studies and Capstone Project

Putting It All Together – From Learning to Doing


Welcome to the final adventure, young integration champion! 🧭 You have learned about integration, migration, monitoring, security, and more. Now it is time to put everything together and see how it works in the real world.

In this module, we will look at real-world case studies – stories of how companies used D365 integration and migration to solve problems. Then, you will work on a capstone project where you will plan a complete integration and migration project from start to finish.

This is your chance to become a real integration expert!

🎯 Learning Objectives

  • Understand how real companies use D365 integration and migration.
  • Identify key lessons from successful and failed projects.
  • Apply all the knowledge from previous modules to a capstone project.
  • Create a complete migration and integration plan.
  • Present your plan and get feedback.

📖 Warm-up Story: The Big Mall Transformation

In Lagos, there is a big shopping mall called "Mega Mall." It has 200 shops, a cinema, and a food court. The mall used different systems for different things:

  • One system for rent collection.
  • One system for security and CCTV.
  • One system for maintenance requests.
  • One system for customer feedback.

These systems did not talk to each other. If a shop owner had a maintenance issue, they had to call the maintenance team separately. If a customer complained, the feedback went to a different department.

Then, the mall management decided to use Microsoft Dynamics 365. They integrated all systems into one platform. Now, when a shop owner reports a problem, the maintenance team gets a notification immediately. When a customer gives feedback, the customer service team sees it right away.

This is exactly what we will learn in this module – how companies like Mega Mall use integration to make their operations smoother and faster.

📚 Main Lessons

Lesson 1: Why Case Studies Matter

Definition: A case study is a real story about how a company solved a problem. It shows you what worked, what didn't, and what you can learn.

Why important: Case studies help you learn from others' experiences. You do not have to make the same mistakes they did.

Simple explanation: Like watching a video of someone building a LEGO castle before you build your own. You learn from their mistakes and successes.

Real-life example: A company shares how they migrated 10,000 customer records to D365 without losing any data.

School example: A teacher shows you a previous student's project to help you understand the assignment.

Home example: Watching a cooking show before trying to bake a cake.

Nigerian example: A Nigerian bank shares how they integrated their mobile app with their core banking system.

    Case Study  -->  Learn  -->  Apply  -->  Success
    

Mini summary: Case studies teach us by showing real examples.


Lesson 2: Case Study 1 – The Retail Giant

Company: A large retail chain with 500 stores across Nigeria.

Challenge: They used different systems for inventory, sales, and customer loyalty. Data was not shared, causing stock-outs and unhappy customers.

Solution: They migrated all data to D365 and integrated their point‑of‑sale (POS) systems with D365 in real-time.

Result: Inventory updates in real-time, better stock management, and happier customers.

Lesson: Real-time integration prevents stock-outs and improves customer satisfaction.


Lesson 3: Case Study 2 – The Hospital System

Company: A hospital group with 10 hospitals in Abuja, Lagos, and Port Harcourt.

Challenge: Patient records were stored in different systems at each hospital. Doctors could not easily access patient history from other locations.

Solution: They migrated all patient records to D365 and integrated the hospital management systems.

Result: Doctors can now access patient records from any hospital, improving patient care.

Lesson: Integration improves collaboration and patient outcomes.


Lesson 4: Case Study 3 – The Manufacturing Company

Company: A Nigerian manufacturing company producing furniture.

Challenge: They had separate systems for orders, production, and shipping. This caused delays and errors.

Solution: They used D365 to integrate order management with production scheduling and shipping.

Result: Orders are processed faster, production is more efficient, and deliveries are on time.

Lesson: Integration streamlines operations from order to delivery.


Lesson 5: Case Study 4 – The Financial Services Firm

Company: A Nigerian fintech company offering loans and savings.

Challenge: Their customer data was stored in multiple systems, making it hard to get a complete view of a customer.

Solution: They migrated all customer data to D365 and integrated their loan and savings systems.

Result: A single view of each customer, better risk assessment, and faster loan approvals.

Lesson: A single source of truth improves decision-making.


Lesson 6: Lessons from Failed Projects

Not every integration project succeeds. Here are some reasons why they fail:

  • Poor planning: Starting without a clear plan.
  • Dirty data: Migrating data without cleaning it first.
  • No testing: Not testing the integration before going live.
  • Weak security: Not protecting data properly.
  • No training: Users do not know how to use the new system.

Lesson 7: Key Success Factors

What makes a project successful?

  • Clear goals: Know what you want to achieve.
  • Strong team: Have the right people with the right skills.
  • Clean data: Ensure data quality before migration.
  • Testing: Test everything thoroughly.
  • Security: Protect your data.
  • Training: Teach users how to use the system.

Lesson 8: Introduction to the Capstone Project

The capstone project is your chance to apply everything you have learned. You will plan a complete integration and migration project for a fictional company.

Your task: Create a project plan that includes:

  • Discovery and planning.
  • Data assessment and cleansing.
  • Extraction, transformation, and loading (ETL).
  • Validation and testing.
  • Go-live and monitoring.
  • Security and governance.

Lesson 9: Capstone Scenario – "GreenGrocer"

Company: GreenGrocer is a chain of 20 organic grocery stores in Lagos, Ibadan, and Abuja.

Current systems: They use an old system for inventory, a separate system for sales, and Excel spreadsheets for customer data.

Goal: Migrate all data to D365 and integrate inventory, sales, and customer data into one system.

Deadline: 3 months.

Budget: Medium-sized budget.


Lesson 10: Capstone – Discovery Phase

In this phase, you need to:

  • Identify all data that needs to move (customers, products, sales, inventory).
  • List all systems that need to be integrated (POS, inventory, customer database).
  • Identify the project team and stakeholders.
  • Create a project timeline.

Lesson 11: Capstone – Data Cleansing

Before migrating, you must clean the data:

  • Remove duplicate customer records.
  • Standardize product names and prices.
  • Check that all inventory counts are accurate.
  • Fix any formatting issues (e.g., dates, phone numbers).

Lesson 12: Capstone – ETL and Integration

Now you will:

  • Use the Data Management Framework to migrate data.
  • Set up integration between POS systems and D365.
  • Test the integration with sample data.

Lesson 13: Capstone – Validation and Testing

After migration and integration, you must:

  • Verify that all data moved correctly.
  • Test the integration with real transactions.
  • Get feedback from users (UAT).

Lesson 14: Capstone – Go-Live and Monitoring

Finally, you will:

  • Plan the cutover (when to switch to the new system).
  • Switch to the new system.
  • Monitor the system for issues.
  • Set up alerts and dashboards.

Lesson 15: Presenting Your Plan

You will present your project plan to the class (or your team). Your presentation should include:

  • Project goals.
  • Timeline.
  • Data migration plan.
  • Integration plan.
  • Security and governance plan.
  • Testing and validation plan.
  • Go-live and monitoring plan.

📖 Key Vocabulary

  • Case Study: A real story about how a company solved a problem.
  • Capstone Project: A final project that uses all the skills you have learned.
  • Stakeholder: Someone who has an interest in the project.
  • Timeline: A schedule of when tasks should be completed.
  • Cutover: The moment of switching to a new system.
  • Go-Live: The day the new system is used for real work.
  • UAT: User Acceptance Testing – when users test the system.
  • Data Cleansing: Fixing data errors before migration.
  • Integration: Connecting systems to share data.
  • Migration: Moving data from one system to another.

🧠 Important Concepts

  • Real-world case studies teach us valuable lessons.
  • A good project plan is the key to success.
  • Testing and validation are critical.
  • Always plan for security and governance.

📝 Step-by-Step: How to Plan a Migration Project

  1. Define your goals and scope.
  2. Assemble your team and stakeholders.
  3. Analyze source data and identify issues.
  4. Clean and prepare your data.
  5. Choose your migration strategy (Big Bang or Staged).
  6. Execute a pilot migration with sample data.
  7. Validate the pilot and fix issues.
  8. Execute the full migration.
  9. Validate the full migration.
  10. Go live and monitor.

🌍 Real-life Examples

  • A global retailer integrated its online and offline stores using D365.
  • A hospital network migrated patient records to a unified system.

🇳🇬 Nigerian Examples

  • A Nigerian supermarket chain integrated its inventory and sales systems.
  • A Nigerian university migrated student records to D365.

🎈 Fun Examples

  • Planning a school event with a checklist.
  • Organizing a birthday party with different tasks.

🏠 Everyday Examples

  • Planning a family vacation – booking flights, hotels, and activities.
  • Moving to a new house – packing, moving, and unpacking.

👪 Parent Tips

  • Teach kids that planning is the key to success.
  • Explain that learning from others' mistakes is smart.

🤓 Interesting Facts

  • Some of the largest companies in the world use D365 for their operations.
  • Microsoft invests billions of dollars in security and AI for D365.

💡 Did You Know?

  • D365 is used by over 80% of Fortune 500 companies.

🧾 Remember This

  • Plan, plan, and plan some more.
  • Test everything before going live.

⚠️ Common Mistakes

  • Skipping the pilot phase.
  • Not involving users early enough.
  • Forgetting to plan for security.

✅ Best Practices

  • Start with a pilot project.
  • Involve users from the beginning.
  • Document everything.
  • Communicate regularly with stakeholders.

📊 Illustrations

Project Timeline

    Week 1: Discovery  -->  Week 2: Cleansing  -->  Week 3: Pilot  -->  Week 4: Migration  -->  Week 5: Go-Live
    

Success Factors

    +----------+   +----------+   +----------+   +----------+   +----------+
    | Planning |-->| Clean    |-->| Testing  |-->| Security |-->| Training |
    |          |   | Data     |   |          |   |          |   |          |
    +----------+   +----------+   +----------+   +----------+   +----------+
    

Comparison: Successful vs Failed Projects

SuccessfulFailed
Clear planningPoor planning
Clean dataDirty data
Thorough testingLittle testing
Strong securityWeak security
User trainingNo training

📌 End-of-Module Summary

You have now completed the final module of this course. You have learned from real-world case studies, explored key success factors and common mistakes, and are ready to tackle your own capstone project.

❓ Frequently Asked Questions

  1. What is a case study? A real story about a company's project.
  2. Why are case studies important? They help us learn from others.
  3. What is a capstone project? A final project that uses all your skills.
  4. What is a stakeholder? Someone interested in the project.
  5. What is a pilot? A small test before the full project.
  6. What is UAT? User Acceptance Testing.
  7. What is cutover? The moment of switching systems.
  8. What is data cleansing? Fixing data errors.
  9. What is a project timeline? A schedule of tasks.
  10. Why is planning important? It prevents mistakes.

📝 Matching Exercise

Match the term:

1. Case StudyA. A final project using all skills
2. Capstone ProjectB. A real story about a company
3. PilotC. A small test before the full project

Answers: 1-B, 2-A, 3-C

🧩 Scenario-based Exercise

Scenario: GreenGrocer has 20 stores. They want to migrate to D365 in 3 months. What are the first three steps you would take?

Answer: 1) Discover and plan, 2) Assess data quality, 3) Assemble the project team.

👥 Group Activity

In groups, design a project plan for GreenGrocer. Include timeline, team roles, and key milestones.

🧑‍🎓 Individual Activity

Write a one-page summary of what you learned from the case studies.

🛠️ Mini Project

Create a detailed migration plan for GreenGrocer, including all 5 phases.

📋 Practical Assignment

Present your capstone project plan to the class (or your team).

💬 Classroom Discussion Questions

  • What did you learn from the case studies?
  • What are the biggest risks in a migration project?
  • How would you handle a project that is falling behind schedule?

🔑 Key Takeaways

  • Case studies teach us valuable lessons.
  • Planning is the key to success.
  • Testing and validation are critical.
  • Always involve users early and often.

🎉 Congratulations! You Have Completed the Course

You have now completed all modules of the Microsoft Dynamics 365 Integration and Data Migration course. You have learned:

  • Module 1: Basics of Integration and Migration.
  • Module 2: Tools – Data Management Framework and Entities.
  • Module 3: Integration Patterns and APIs.
  • Module 4: Advanced Integration – The Saga Pattern.
  • Module 5: Planning and Executing Data Migration.
  • Module 6: Monitoring and Troubleshooting.
  • Module 7: Security, Governance, and Best Practices.
  • Module 8: Real-World Case Studies and Capstone Project.

You are now ready to apply these skills in real-world projects. Keep learning, keep exploring, and remember – integration is about building bridges between systems. You are now a true integration expert!

Thank you for joining this course. We wish you all the best in your future projects! 🌟


End of Module 8 and the complete course. Well done! 🎉

🏆 Get Certified

🔒

Earn this certificate

Every lesson is already free to read. Sign up, pass the exam, and unlock Practice Tools plus a verified certificate with your name on it — ₦4,000/month.

🎓 Sign Up & Unlock for ₦4,000/month
🛠️ Practice Tools
Hands-on simulators & labs - subscription required.
→
🎯 Internship Tasks
Real-world tasks to build your portfolio - try them free for 7 days, no card required.
→