
Announcements
function viewAuditHistory(executionContext) {
var formContext = executionContext.getFormContext();
formContext.ui.headerSection.setCommandBarVisible(false);
Xrm.Page.ui.navigation.items.get('navAudit').setFocus(true);
}
TypeError: Cannot read properties of null (reading 'setFocus')
at viewAuditHistory (https://***)
at b._executeFunctionInternal (https://***)
at b.execute (https://***)
at https://***
at i (https://***)
at re._executeIndividualEvent (https://***)
at re._executeEventHandler (https://***)
at Object.execute (https://***)
at w._executeSyncAction (https://***)
at w._executeSync (https://***)
Error Details:
Event Name: onload
Function Name: viewAuditHistory
Web Resource Name: ***
Solution Name: Active
Publisher Name: ***
Xrm.Page API is deprecated in the new version of the platform. It’s recommended to use formContext for accessing form-related elements.