Hello Dynamics 365 Community,
I am encountering an issue in a Dynamics 365 where a custom action (or workflow) triggered via JavaScript executes successfully, but does not return the expected response to the JavaScript code. This delay or absence of response is affecting critical functionality in our application. Interestingly, the response is received correctly 4-5 hours later, the solution has been imported, and the behavior varies depending on how the solution is imported. I’m seeking assistance to diagnose the root cause and identify a solution.
Issue:
I’m hoping someone can help me identify what I might be missing or suggest a solution.
@Mansi Soni & @Ramesh Kumar – thank you for your insightful responses!
As I’m using Package Deployer to import the solution along with an additional data.zip
file, I’m unable to include the data file through PowerApps, since it doesn’t support importing external data packages.
Note: Importing the data file is essential, as much of the solution’s functionality depends on it.
Regarding the code suggestion, @Mansi Soni, that’s actually the same approach I’ve already implemented, please see the code snippet below for reference.
Hello,
Thank you for providing a detailed description of the issue. Based on your observations, it appears that the custom action or workflow is executing successfully on the server side, but the JavaScript callback is not receiving the expected response immediately—particularly when the solution is imported via Package Deployer or the Legacy UI.
Solution Import Differences
The discrepancy in behavior between imports via Power Apps and Package Deployer/Legacy UI may be due to differences in how metadata and dependencies are registered. Ensure that:
Callback Configuration in JavaScript
Verify that the JavaScript code is correctly handling the asynchronous response from the action. Ensure that:
successCallback
function is properly defined and attached.response.getReturnValue()
or equivalent method is used to extract the result.Caching or Propagation Delay
The delayed response (4–5 hours later) may indicate a caching issue or delayed propagation of metadata changes. Consider:
Plugin or Action Configuration
Review the configuration of the custom action:
Environment-Specific Behavior
If the issue is environment-specific, compare the solution import logs, customization settings, and security roles across environments to identify discrepancies.
If this guidance helps resolve the issue, please consider marking the response as accepted so it may assist others encountering similar challenges.
Best regards.
Mansi Soni
243
Super User 2025 Season 2
Muhammad Shahzad Sh...
158
Most Valuable Professional
Abhilash Warrier
95
Super User 2025 Season 2