I have bug in D365 mobile app for sales., It is JavaScript, and I can't find an emulator or method to test.

Jason Marshall 0 Reputation points
2025-11-18T01:23:16.7166667+00:00

I have D365 form that works perfect in browser for D365 for sales for JavaScript in a button click. It is unresponsive however on mobile devices. I am using D365 Dynamics for Sales mobile app.

I can not find emulator or good way to debug. I have tried DEV tools on browser and no luck.

TIA!

Microsoft 365 and Office | Development | Office JavaScript API
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-18T01:23:27.3933333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To debug JavaScript in the Dynamics 365 mobile app, you can follow these steps:

    1. Use Remote Debugging: For Android devices, you can set up remote debugging using Chrome. Make sure your Android device is connected to your development machine and follow the instructions provided by Google on how to get started with remote debugging Android devices. This will allow you to inspect and debug your JavaScript code running on the mobile app.
    2. Debugging in the Windows Desktop App: If you are using the Windows desktop app, you can connect to a remote Windows device by navigating to http://localhost:50080 and using the developer tools to inspect and debug your JavaScript code.
    3. Check JavaScript Libraries: In the mobile app, JavaScript web resources may not be easily found in the file list. If you know the name of the JavaScript web resource you want to debug, you can use the Ctrl+P command in your browser's developer tools to locate the file by name.
    4. Add Breakpoints: Once you have access to the JavaScript files, you can set breakpoints to inspect the flow of execution and check the values of variables at runtime.
    5. Test on Actual Device: Since the behavior can differ between the browser and mobile app, testing on an actual device is crucial. Ensure that the mobile app is updated and that you are testing the latest version of your JavaScript code.

    By following these steps, you should be able to identify and fix the issues with your JavaScript code in the Dynamics 365 mobile app for Sales.

    0 comments No comments

  2. TiNo-T 8,915 Reputation points Microsoft External Staff Moderator
    2025-11-18T03:47:52.49+00:00

    Dear @Jason Marshall,

    Welcome to Microsoft Q&A Forum!

    First of all, I would like to inform that Microsoft Q&A currently does not support for Dynamics 365. For Dynamics 365/Power Apps questions, please use:

    However, based on your descriptions, I still give you some insights and suggestions for you, and I can see that Dynamics 365 Sales has a mobile app. The Sales mobile app is designed for sellers who need access to CRM data on the go. It provides features like:

    • Viewing and updating leads, opportunities, and accounts.
    • Accessing dashboards and insights.
    • Offline capabilities for field sales.

    Reference: Use the Dynamics 365 Sales mobile app

    However, Microsoft may not provide a dedicated emulator for the Dynamics 365 Sales mobile app. The app runs on iOS and Android, and its behavior differs from the web client because:

    • It uses a native shell with embedded web views.
    • Some JavaScript and DOM operations are restricted for security and performance.

    So, in this case, you can install the mobile app from Google Play (Android device) or App Store (iOs device) for real testing. For debugging, you use remote debugging tools (Chrome DevTools for Android, Safari Web Inspector for iOS). Please follow the steps below to configure remote debugging for the Dynamics 365 mobile app:

    1. Configure Your Device
    • Enable Developer options and USB debugging on your Android device.
    • In Microsoft Edge or Chrome, enable device discovery:

    Edge: edge://inspect/#devices

    Chrome: chrome://inspect/#devices

    • Ensure Discover USB devices is turned on.
    1. Configure the Mobile Application:
    • Open the Dynamics 365 mobile app and go to the list of Power Apps.
    • Select the menu button and toggle Enable remote debugging for model-driven apps to On.
    • Confirm the action when prompted.
    1. Debug from your Development Machine:
    • Connect your computer to the Android device via USB.
    • Open any model-driven app from Power Apps or Field Service Mobile.
    • In Edge or Chrome, go to edge://inspect/#devices or chrome://inspect/#devices.
    • Locate your organization URL under Remote Target and click Inspect to start debugging.

    Please see more details in here: Debug JavaScript code for model-driven appsUser's image

    I hope this information can help you in this case and please feel free to let me know your update in comment section. Wish you a pleasant day!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    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.


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.