Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

CRM 365 - How to add JavaScript on select of a record in LIST in dashboard?

Posted on by 145

Hi

I am aware of onRecordSelect event https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/events/grid-onrecordselect

that we can add in an editable sub-grid in a form.

I am trying to do the same in a list in Dashboard, can you advise how can I make it work please?

In a dashboard I have a list, when I select a record in the list I want to open a record in CRM.

Regards

Arj

  • Suggested answer
    David Pezzoli Profile Picture
    David Pezzoli 102 on at
    RE: CRM 365 - How to add JavaScript on select of a record in LIST in dashboard?

    Pardon, Business Rules on Dashboards list actually doesn't work:

    community.dynamics.com/.../crm-365---how-to-add-javascript-on-select-of-a-record-in-list-in-dashboard

  • Suggested answer
    David Pezzoli Profile Picture
    David Pezzoli 102 on at
    RE: CRM 365 - How to add JavaScript on select of a record in LIST in dashboard?

    Hi,

    you could use:

    * Business Rules with scope = Entity, the BR logic will run and work fine only on view columns

    * Security Field (Column) profile = set the column read-only by security restriction

  • Suggested answer
    David Pezzoli Profile Picture
    David Pezzoli 102 on at
    RE: CRM 365 - How to add JavaScript on select of a record in LIST in dashboard?

    Hi,

    you could use:

    * Business Rules with scope = Entity, the BR logic will run and work fine only on view columns

    * Security Field (Column) profile = set the column read-only by security restriction

  • Suggested answer
    David Pezzoli Profile Picture
    David Pezzoli 102 on at
    RE: CRM 365 - How to add JavaScript on select of a record in LIST in dashboard?

    Hi,

    you could use:

    * Business Rules with scope = Entity, the BR logic will run and work fine only on view columns

    * Security Field (Column) profile = set the column read-only by security restriction

  • Suggested answer
    David Pezzoli Profile Picture
    David Pezzoli 102 on at
    RE: CRM 365 - How to add JavaScript on select of a record in LIST in dashboard?

    Hi,

    you could use:

    * Business Rules with scope = Entity, the BR logic will run and work fine only on view columns

    * Security Field (Column) profile = set the column read-only by security restriction

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: CRM 365 - How to add JavaScript on select of a record in LIST in dashboard?

    Hi, 

    As I know you can't implement this scenario using suppoted code. You can construct your own view using some html/js.

    Good luck.

  • user123 Profile Picture
    user123 145 on at
    RE: CRM 365 - How to add JavaScript on select of a record in LIST in dashboard?

    Hi Akash

    I am aware of the way to add editable grid in Dashboard.

    In Dashboard list, I am not able to add an event. Like onRecordSelect event if you know what I mean.

    Thanks

  • Suggested answer
    RE: CRM 365 - How to add JavaScript on select of a record in LIST in dashboard?

    Hi Partner,

    Inorder to add editable subgrid, you can navigate to  Settings > Customizations > Customize the system > Dashboard > Sales Activity dashboard > Select List section > Double click on List section -> Control Tab > Ad control ->  Add editable grid. Here's a screenshot for reference

    pastedimage1589697533320v1.png

    Reference article: https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/293429/i-need-to-use-d365-subgrid-onrecordselect-event?pifragment-97030=1

    https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/mt788312(v=crm.8)?redirectedfrom=MSDN

    https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/mt788312(v=crm.8)?redirectedfrom=MSDN

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans