Share via

How do I set up a sandbox environment to test our CRM integration into Dynamics?

Drew Varnado 0 Reputation points
2026-03-17T14:25:33.0033333+00:00

We are building a CRM integration from our platform into several CRM platforms. Some of our customers use Dynamics and would like us to integrate into their instance to insert data. We would like to stand up an instance of Dynamics so we can build and test these integrations. How can we do this?

Microsoft 365 and Office | Development | Microsoft 365 Developer Program
0 comments No comments

2 answers

Sort by: Most helpful
  1. Michelle-N 15,305 Reputation points Microsoft External Staff Moderator
    2026-03-17T15:00:01.52+00:00

    Hi @Drew Varnado

    Based on the information you shared, I understand that your team is building a CRM integration and you need to stand up a Dynamics 365 instance to test API functionality, specifically for inserting and updating data within the environment.

    Setting up a development environment can sometimes involve specific licensing and administrative configuration requirements. I have seen similar reports from other developers in comparable environments who need to isolate their testing from production data. This behavior is a standard part of the integration lifecycle and requires a separate instance to ensure that API testing does not impact live customer data.

    Based on our research for setting up a sandbox environment to test Dynamics 365 integrations (API testing, data insertion/updates, etc.), please refer to the following structured steps:

    To successfully create this environment, you must have an active Microsoft 365 tenant. Additionally, the user performing the setup must have the Power Platform Admin role and the account must be assigned at least one Dynamics 365 license.

    Then please log in to the Power Platform Admin Center and create a Sandbox Environment. Please refer to the official Microsoft documentation on managing Power Platform environments for detailed navigation.

    https://community.dynamics.com/blogs/post/?postid=986ee6e3-ac75-49d9-b5c7-892b625c9cad

    Manage sandbox environments

    Once your sandbox is active, you will need to register your integration as an application in the Microsoft Entra ID portal. This step allows you to grant the necessary API permissions, generate a Client ID and Client Secret, and begin testing your API calls to insert or update data.

    As a moderator, my ability to assist with account-specific issues is limited, as I do not have access to the necessary internal tools, especially concerning matters of privacy. To provide you with more expert insights and the best possible support for issues, I highly recommend posting on the official Microsoft Dynamics 365 Community forum. It is a very active community monitored by Dynamics experts and engineers who specialize in these types of complex issues.

    Thank you for your understanding.


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  


  2. Q&A Assist
    2026-03-17T14:25:50.6233333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Dynamics 365 sandbox environments are the standard way to build and test integrations without touching customer production data.

    At a high level, the process is:

    1. Get access to a Dynamics 365 tenant and project
      • Use a Dynamics 365 customer or partner tenant and create an implementation project in Microsoft Dynamics Lifecycle Services (LCS).
      • Lifecycle Services is the Azure-based portal used to manage implementation projects and deploy environments.
    2. Plan how many sandboxes are needed
      • For each implementation project, Microsoft provides one production environment and one sandbox environment by default.
      • If multiple projects or additional test stacks are required (for example, separate environments for dev, test, and training), determine how many extra sandboxes are needed and purchase sandbox add-ons as required. These are managed per implementation project in LCS.
      • When sandbox add-ons are deployed to a specific project, they are consumed there and no longer visible in other projects, so keep track of which sandboxes are deployed where.
    3. Deploy a Dynamics 365 sandbox environment
      • In LCS, create or open the implementation project.
      • From the project, deploy a sandbox environment. Sandboxes are deployed on a first‑come, first‑served basis against the available sandbox add-on slots.
      • For Dynamics 365 Commerce scenarios, follow the Commerce sandbox provisioning guidance if the integration touches Commerce entities (orders, customers, products, etc.). This includes:
        • Ensuring prerequisites are in place (LCS access, existing implementation project, Entra security groups, and a deployed headquarters instance).
        • Provisioning the Commerce environment from LCS and waiting for initialization to complete.
    4. Configure the sandbox for integration testing
      • For Commerce: complete post‑provisioning steps in the headquarters environment (for example, enabling batch jobs and running full data synchronization) so that the environment behaves like a working Commerce system.
      • Use the sandbox as the target for API calls and data inserts from the CRM integration, not the production environment.
      • If needed, copy production data into a sandbox (where supported) to test with realistic data while still isolating from live operations.
    5. Use sandboxes as disposable testbeds
      • Sandboxes are designed to be used as development and test environments that can be deleted and recreated as needed.
      • They are suitable for functional and integration testing; for performance or benchmarking, use a dedicated production‑type environment instead.

    For Business Central–based CRM scenarios, a Business Central sandbox can also be created from the Business Central administration center. These sandboxes allow direct deployment from Visual Studio Code and debugging, and can be populated with production data for debugging integration logic.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.