web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Not working in Dynamics 365 v9

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    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.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans