Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Lorna Rickett
    CPHP add new menu item
    Topic posted November 29, 2018 by Lorna RickettSilver Trophy: 7,500+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    60 Views, 2 Comments
    Title:
    CPHP add new menu item
    Content:

    We have a requirement to show a dropdown menu in an incident workspace which has a list that changes. The list is part of a CO menu; so basically not everything in the CO menu but some of them depending on a different CO field. My idea was to build a new menu dynamically from a CPM when the CO was created/updated, and just show that menu in the workspace. However, I keep getting CPM errors saying I can’t create a new menu item.

    Is this possible and I’m just doing something wrong or is it not a possibility?

    If it’s not possible... does anyone have any wonderful suggestions to do this?! cool

    Version:
    18B, CP 3.7

    Comment

     

    • Geetha Amrutha

      Hi Lorna,

      If you create a new menu dynamically every time CPM runs, then n number of menu items would be created, and to display the newly created menu on the workspace, you need to manually add it. So this may not work real time.

      This is possible with Workspace Rules in Agent Desktop.

      I would be pleased to know if there are any other ways.
       
      To add upon - In BUI, you can achieve this using browser workspace extensions leveraging its events and operations. Documentation here.

      Hope this helps.

      Thanks,
      Geetha Amrutha

    • Lorna Rickett

      Hi Geetha,

      I mean create the menu item dynamically. I realise any open incidents wouldn't reflect the new item.

      We don't use workflows; is it possible without that?

      Thanks!