Customer Service / Customize New Button in upper Menu

Hello together,

I am trying to change the "+New Button" in the Customer Service area or I would like to remove some elements, e.g. "Quick Request".

Is that even possible?
With the Event MainMenu only the menu on the left side can be controlled, right?

Thanks for your ideas :-)

 

 

RE: Customer Service / Customize New Button in upper Menu

Hi,

Using Trigger - MainMenu you should be able to manipulate +New entry as well. 

Usually I would do this to get easy access to Group Index and Item index;

Integer numGroups = menu.getNumGroups();
String content = "";
for(Integer j = 0; j< numGroups;j++)
{
  if(menu.getGroupId(j) != "")
  content += menu.getGroupId(j) + "\n";
  Integer numItems = menu.getNumItems(menu.getGroupIndex(menu.getGroupId(j)));
  for(Integer i = 0; i < numItems;i++){
    if(menu.getItemId(menu.getGroupIndex(menu.getGroupId(j)),i) != "")
    content += menu.getItemId(menu.getGroupIndex(menu.getGroupId(j)),i) + "\n";
  }
  content += "------\n";
}

If you open Debug log it should provide something like this;

------
lang_dashboard
------
lang_ticket
area_ticket_newTicket
area_ticket_newQuickTicket
area_ticket_listTickets
area_ticket_lastSearch
area_ticket_lastTickets
area_ticket_ownActiveTickets
area_ticket_getNextInQueue
area_ticket_undelegatedTickets
area_ticket_searchTicketLog
area_ticket_hotlist
area_ticket_listExtraTables
------
lang_customersInternal
area_customersInternal_findCustomers
area_customersInternal_newCustomer
area_customersInternal_findCompanies
area_customersInternal_newCompany
------
lang_selections
area_selections_listSelections
area_selections_newSelection
------
lang_document
area_document_find
area_document_document
area_document_externalDocument
area_document_emailAddressBook
area_document_faq
area_document_replyTemplates
------
lang_stat
area_stat_reportMenu
area_stat_simpleStat
area_stat_loginStat
------
lang_spm
------
lang_chat
------
lang_admin
area_admin_listProfiles
area_admin_listRoles
area_admin_listUsers
area_admin_listCategories
area_admin_listPriorities
area_admin_listTicketStatuses
area_admin_listFilters
area_admin_editReplyTemplates
area_admin_editInfo
area_admin_listCustLangs
area_admin_customerCenterConfig
area_admin_listCustomerCenterTemplates
area_admin_chat
area_admin_soapConf
------
------
------
lang_blogic
area_admin_listExtraTables
area_blogic_listScripts
area_blogic_listScreenDefinitions
area_blogic_listScreenChoosers
area_blogic_listExtraMenus
area_blogic_listWebPanels
area_blogic_listPackages
area_blogic_listNewLog
------
lang_newItem
newItem_newTicket
newItem_newQuickTicket
newItem_newCustomer
newItem_newCompany
newItem_addSelection
newItem_editKbEntry
newItem_newEmailMailing
------

Using this overview you can see that Group Index is "lang_newItem" and Item index is "newItem_newQuickTicket"

If you wish to remove "Quick Request" you should be able to do so with this code;

menu.deleteItem(menu.getGroupIndex("lang_newItem"), menu.getItemIndex(menu.getGroupIndex("lang_newItem"), "newItem_newQuickTicket"));
By: Michel Krohn-Dale 22 Sep 2020

RE: Customer Service / Customize New Button in upper Menu

Hi Michel,

great that works :-)

Thanks for the quick info!

By: Jennifer Pfeiffer 22 Sep 2020

RE: Customer Service / Customize New Button in upper Menu

Hi again,

is it also be possible to delete some of the Actions Menu in Ticket Screen?

I found out how to add new buttons but to delete..?

For example "Accept request"? 

 

 

By: Jennifer Pfeiffer 25 Sep 2020