/retool-integration

Microsoft Dynamics 365 and Retool: Complete Integration Guide 2024

Learn how to integrate Retool with Microsoft Dynamics 365 using OAuth2 authentication. Step-by-step guide for seamless data connection and building custom applications.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Retool apps with your growth in mind.

Book a free No-Code consultation

How to integrate Retool with Microsoft Dynamics 365?

 

Integrating Retool with Microsoft Dynamics 365

 

Integrating Retool with Microsoft Dynamics 365 involves connecting Retool to your Dynamics 365 instance to facilitate the seamless exchange of data. This guide provides detailed technical instructions for setting up this integration.

 

Prerequisites

 

  • A valid Retool account with administrative permissions to create new applications.
  • Access to a Microsoft Dynamics 365 instance with API access enabled.
  • Basic understanding of API authentication, particularly regarding OAuth2 for Dynamics 365.

 

Setting Up Azure AD for OAuth2 Authentication

 

  • Log into the Azure portal and navigate to "Azure Active Directory".
  • Select "App registrations" in the left sidebar and click "New registration".
  • Fill out the application registration form with a name and redirect URI (e.g., https://yourapp.retool.com/endpoint/oauth2/callback).
  • Note the Application (client) ID and Directory (tenant) ID from the overview page, as you will need them for Retool setup.

 

Configuring OAuth2 Permissions

 

  • In the Azure portal, go to your registered application and navigate to "API permissions".
  • Click on "Add a permission" and select "Dynamics CRM".
  • Select the permissions required for your integration, such as user_impersonation.
  • After adding the permissions, click "Grant admin consent" to grant the permissions for your organization.

 

Generating Client Secret

 

  • Within your app's Azure portal, navigate to "Certificates & secrets".
  • Click "New client secret", then add a description and select an expiration period.
  • After saving, a client secret will be displayed. Copy and save the client secret securely; it will not be displayed again.

 

Setting Up Retool Resource

 

  • In Retool, go to "Resources" and click "Create New" to add a new resource.
  • Choose "REST API" from the list of resource types.
  • In the REST API setup, configure the following:
    • Base URL: This is the URL of your Dynamics 365 instance, something like https://yourinstance.crm.dynamics.com/api/data/v9.0/.
    • Authentication: Choose "OAuth 2.0" from the dropdown.
    • OAuth2 URL: Fill in the token endpoint from your Azure AD, e.g., https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token.
    • Client ID: The Application (client) ID from Azure.
    • Client Secret: The client secret generated earlier.
    • Scopes: Enter the scope required for Dynamics 365 APIs such as https://yourinstance.crm.dynamics.com/.default.
    • Audience: Typically, the audience is your Dynamics 365 URL.
  • Test the connection to ensure that authentication is correctly configured and that Retool can access Dynamics 365.

 

Creating Retool Applications

 

  • Once the connection is confirmed, return to the Retool home and create a new app.
  • Select the newly created Dynamics 365 REST API resource within this app to start building queries.
  • Create a new query using the Query Editor. Craft your API request paths such as /contacts for fetching contacts data.
  • You can leverage filtering options of Dynamics 365 OData to refine your results, e.g., /contacts?$filter=startsWith(firstname, 'A').

 

Building an Interactive Retool Interface

 

  • Utilize the various components in Retool such as tables, forms, and buttons to display and manipulate Dynamics 365 data.
  • Link the output of your queries to these components using the component’s data property, e.g., setting the data property of a table to {{ query1.data }}.
  • Implement additional functionalities such as search and filters by using Input and Select components linked to query parameters.

 

Testing and Debugging

 

  • Run the application in Retool to ensure the interface behaves as expected with real-time Dynamics 365 data.
  • Troubleshoot any connectivity issues by revisiting the resource configuration and ensuring all OAuth2 parameters are correct.
  • Check the console for error messages that can guide further debugging actions.

 

By following these steps, you can successfully integrate Retool with Microsoft Dynamics 365, allowing for robust custom applications that leverage Dynamics data dynamically inside Retool’s interface. Testing thoroughly in different scenarios will ensure a smooth experience in production environments.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022