cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
624
Views
0
Helpful
0
Replies

DX80 Local Phonebook Search

bill_donovan
Level 4
Level 4

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);

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: