Wednesday 9 October 2019

Debugging in new Release of Dynamics CRM

For Button:
1. Set Input parameter as “Primary Control” for
2. You can put debugger in script
function onClick(primaryControl)
//function to build URL and open new window
{
debugger;
var functionName = “onClick: “;
var executionContext = primaryControl;
try {
//your code
} catch (e) {
throwError(functionName, e.message);
}
}
3. Open console window (F12) and the script will start debug automatically.
For Form/Field:
1. Make sure you have checked “Pass execution context as first parameters” form/field event properties.
2. You can put debugger in script
Java Script
function onLoad(executionContext)
//function to build URL and open new window
{
debugger;
var functionName = ” onLoad: “;
try {
//your code
}
} catch (e) {
throwError(functionName, e.message);
}
}
3. Open console window(F12) and the script will start debug automatically.

No comments:

Post a Comment

Use Word templates to create standardized documents

  Use Word templates to create standardized documents In this article Step 1: Create a Word template Step 2: Enable the Developer tab Import...