Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Not working in Dynamics 365 v9

Posted on by

Hi, 

We are upgrading from Dynamics 365 v8.2 to v9. Have come across the following deprecations but could not find replacements for the below:

Any leads/help is much appreciated

Mscrm.CommandBarActions

Mscrm.CommandBarActions.resolve()/changeState(btnType, typeCode, value) calls an undocumented feature of the internal Dynamics CRM client object model. This technique is unsupported in all versions of Dynamics CRM. Remove or replace with a supported API provided in the Xrm.Page client object model

Mscrm.IncidentCommandBarActions

Mscrm.IncidentCommandBarActions.cancel()' calls an undocumented feature of the internal Dynamics CRM client object model. This technique is unsupported in all versions of Dynamics CRM. Remove or replace with a supported API provided in the Xrm.Page client object model

Window.parent.document.getElementsByClassName

window.parent.document.getElementsByClassName('ms-crm-InlineDialogCloseContainer')' calls an undocumented feature of the internal Dynamics CRM client object model. This technique is unsupported in all versions of Dynamics CRM. Remove or replace with a supported API provided in the Xrm.Page client object model.

closeWindow

closeWindow(true)' calls an undocumented feature of the internal Dynamics CRM client object model. This technique is unsupported in all versions of Dynamics CRM. Remove or replace with a supported API provided in the Xrm.Page client object model

 

Cheers, Kaushik

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Not working in Dynamics 365 v9

    Hi Kaushik,

    These are unsupported customization I believe you are aware and thats what not working after upgrade, do you want to again go for unsupported customization?How many times you will replace your code?

    However I can suggest you for ribbon command action to create a solution with case entity an go to ribbon worbench and find the OOB button there and right click on button -> click on customize -> customize command.

    You will get all the command for V 9 over there.

    Check here my answer here-

    community.dynamics.com/.../299196

    For other there is no such replacement , its depends on what you are doing.

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Not working in Dynamics 365 v9

    This is why Community won’t recommend to use the unsupported/undocumented (intended for internal usage) stuffs in any of our customizations. This will break in future releases.

    We can (may or may not) find equivalent functionalities in other way, but for that we need to understand what are you achieving & from where.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans