web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to Test a Data Entity in Dynamics 365 FO from the Development Environment

(3) ShareShare
ReportReport
Posted on by 94

Hello everyone,

I have created a custom data entity in Dynamics 365 Finance and Operations, and I would like to test posting data to it as if the request is coming from an external application such as PowerApps, using OData.

Could anyone please advise on the best way to simulate or test this scenario directly from the development environment?

Specifically, I would like to know:

- How can I send a test request (POST/PUT) to the data entity from within the development environment or through a tool like Postman?
- Are there any helper classes or methods in X++ that allow me to programmatically test OData-style insert/update operations?
- How can I ensure the data entity is correctly receiving and processing the data, just like it would from a Power Platform app?
 

I’ve heard that Postman can be used for this purpose — if anyone could provide steps or guidance on how to use Postman to test a data entity in D365 FO, that would be very helpful.

Any guidance or examples would be greatly appreciated.

 

Thank you!

 

Best regards,

Mohammed

Categories:
I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at
    if it's local VHD, i do not see a chance. But if this is cloud hosted CHE or UDE, you can test as you would any tier-2. What type of DEV environment it is ?
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at
    I would split it to two topics:
    • Testing the data entity as such.
    • And testing it specifically through OData.
    You're right that you can use tools like Postman to send OData requests to F&O. You can find many articles about it on internet, such as this one. Another option is calling OData from C#, as demonstrated in https://github.com/microsoft/Dynamics-AX-Integration/tree/master/ServiceSamples/ODataConsoleApplication.
     
    But a good idea is testing the entity directly even before involving OData. For example, you can check whether the underlying view returns the right data. You can populate the entity in X++, call insert() and check the result (possibly in an automated test). If your entity supports data management, you can use that for some tests too.
  • Verified answer
    MohammedAfeef Profile Picture
    94 on at


    I found the solution, and I am sharing it here to help anyone who might face this scenario in the future.


    You do not need to create a deployable package or move the code to a Tier-2 environment just to test the Data Entity logic. You can test the CRUD operations (Create, Read, Update, Delete) directly in your Local Dev VM (Tier 1) using the Excel Add-in. Since Excel uses the same OData protocol as Power Apps, if it works in Excel, it will work in Power Apps.


    Here are the detailed steps:


    1. Prerequisites:
    Make sure to Build your project.
    Perform a Database Synchronization (Crucial for the entity to appear).


    2. One-Time Setup (Fixing the missing "Design" button):
    To ensure the Excel Add-in works correctly:
    Go to D365FO: System administration > Setup > Office app parameters.
    Click on Initialize app parameters.
    Confirm the action.


    3. Configure Excel:
    Open Excel (inside the VM or locally if connected).
    Insert the Microsoft Dynamics Office Add-in via Insert > My Add-ins.
    In the Add-in settings (Gear icon), set the Server URL to your local environment URL (e.g., https://usnconeboxax1aos.cloud.onebox.microsoft.com).
    Note: Remove the trailing slash "/" at the end of the URL.


    4. Test the Entity:
    Click Design > Add Table.
    Search for your Entity name (Public Collection Name) and add the required fields.
    To Test Read (GET): Click Refresh. The data should populate from D365.
    To Test Create (POST): Add a new row in Excel and click Publish. If it returns "Publish Successful", your entity logic and validations are working perfectly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans