How to enable a custom dashlet for a custom module?

Hello, we have a Sugar customer who wants to enable one of our custom dashlets for a custom module in their Sugar instance.

They installed our Fanatically Zen integration (integrates Zendesk and Sugar) which comes with a Zendesk Ticket Dashlet. When viewing a Contact, you're able to see the related Zendesk Tickets in a custom Sugar dashlet. 

In our dashlet metadata, we define the modules our dashlet can be used in (Contacts, Accounts, Opportunities, Leads, Prospects). 

What's the best way to add the customer's custom module to that list?

Is there a Sugar dashlet extension (something in the Ext framework) that could be used to append data to the filter module metadata?

Or would we need to ship a custom package of our integration that includes their custom module in the filter?

Thanks!

Parents Reply
  • And I'm a dummy! Noticed the issue right when I hit submit on that last post...

    It's suppose to be something like:

    'module' => array('Contacts','Accounts','Leads')

    I replaced it with:

    $modules = array('Contacts','Accounts','Leads');

    'module'=>array($modules) // array inside an array

    Instead of 

    $modules = array('Contacts','Accounts','Leads');

    'module'=>$modules

    That did the trick! Should be able to make this work through our configs no code changes. Much better!

    Still not sure how "best practice" dynamic code is in viewdefs like this ¯\_(ツ)_/¯

Children