Activity Stream Dashlet Not working on Custom Module Record view Dashlets.

Hi Everyone,

I am facing an issue while enabling activity stream on record view dashlet for custom module. I have enabled activity streams on custom module by adding a file in Vardefs. After adding this code if I add dashlets on list view we are able to see all activities done on that module. But If I am adding "My Activity Stream" dashlet on record view in Intelligent Pane for custom module it is not showing any activities done on that record, even if we have activities performed to that specific record. I am just wondering is this a Bug or should I do something else to enable activity stream on record view for custom modules. Can someone suggest me how to resolve this. Thanks in Advance

Parents
  • Hi ,

    You'll have to create a link in Activities module to make it work in the record view.

    Create an extension in the custom folder for the Activities module, with something like:

    <?php
    $dictionary['Activity']['fields']['your_custom_module'] = array(
    'name' => 'your_custom_module',
    'type' => 'link',
    'relationship' => 'your_custom_module_activities',
    'source' => 'non-db',
    'vname' => 'LBL_YOUR_CUSTOM_MODULE',
    );
  • Hi Neeraja,

    Thanks for your inputs, I have tried adding a snippet of code in Custom/Extension/modules/ActivityStream/activities/Ext/Vardefs/activity_enabled.php as below.

    <?php
    $dictionary['Activity']['fields']['pro_Properties'] = array(
    'name' => 'pro_Properties',
    'type' => 'link',
    'relationship' => 'pro_Properties_activities',
    'source' => 'non-db',
    'vname' => 'LBL_PRO_PROPERTIES',
    );

    Here pro_Properties is my custom module name. I have added this code and performed QRR in Sugar Instance but not able to make it work. Could you please suggest me if I am going wrong in this code or something needs to be modified. Many Thanks in Advance.

  • Hi ,

    The file location and defition seems to be correct - but I have a feeling that the relationship name in Upper case might be the issue - can you change that to all-lower case and check?

    Basically we're reusing the activities relationship that was built for your pro_Properties module and creating a link in the Activities module, so that we have a link on both sides.

    You can ensure that the relationship name is correct by checking the built vardefs file in the cache: cache/modules/pro_Properties/pro_Propertiesvardefs.php

  • Hi Neeraja,

    Awesome..It worked Perfectly.. Thank you so much for your valuable suggestions and it helped me a lot to resolve my issue. I have implemented for all my custom modules and now activity stream in enabled on record view dashlet of custom modules in my instance. Thanks for your helping hands!!

Reply Children
No Data