Is there a way to create a macro to display the corporate directory (local) search on the DX80 without giving the user the option to dial anything else? I've removed all default buttons and created a button with the phonebook search api, but nothing appears on the DX80 screen. Anyone have any experience doing this? The following is my macro:
const xapi = require('xapi');
function corp_Dir(event) {
console.log();
if (event.PanelId === 'corp_Dir' && event.Type === 'clicked');{
xapi.command('Phonebook Search', {SearchString: '', SearchField: 'Name', PhonebookType: 'Corporate', SearchFilter: 'People', Limit: '100'});
}
}
xapi.event.on('UserInterface Extensions Panel Clicked', corp_Dir);