Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

How to override the default command in Associated View

Posted on by 60

In my custom entity, I want to open the record item with web resource in entity view

use this method(https://www.youtube.com/watch?v=Jnkg9rOMXNo ), I resolved the issue.

I have overrided the Mscrm.OpenRecordItem command to resolve the issue.

But now, I also want to do same solution in Associated View.

what is the default command name in Associated View?

last post

community.dynamics.com/.../1089856

### Reference

docs.microsoft.com/.../override-default-open-behavior-grids

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How to override the default command in Associated View

    I haven't tested that approach as I mentioned - I have no additional wisdom to share.

  • Outcome Chain Profile Picture
    Outcome Chain 60 on at
    RE: How to override the default command in Associated View

    Hello Andrew, I tested the microsoft method, but it does not work for me.

    after I update the customization.xml, I found the method just added a command for this.

    has more details for this issue?

    pastedimage1600184055413v1.png

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How to override the default command in Associated View

    Hello,

    Command's name is exactly the same. Here is the post I did that accompanies the YouTube video you shared - butenko.pro/.../ in the comments you can see following:

    I believe it’s due to the Ribbon Workbench using the same value for CustomUIAction ID and Button ID. If you manually edit the RibbonDiffXml in the customizations.xml according to the Microsoft article here, you can make it work for both instances. I added a console.log() line to alert when the custom method is called and it fired from both the HomepageGrid and the SubGrid contexts.

    I haven't tried it personally but I believe it should work so good luck.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans