AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 18.09.2018, 02:17   #1  
Blog bot is offline
Blog bot
Участник
 
25,626 / 848 (80) +++++++
Регистрация: 28.10.2006
powerobjects: How to Upgrade Deprecated Client APIs to Support Dynamics 365 v9
Источник: https://www.powerobjects.com/2018/09...namics-365-v9/
==============


When upgrading from Dynamics 365 Online version 8.2 to version 9.0, it’s good practice to check for any deprecated components. One area with the biggest changes are the client APIs. Microsoft reorganized the Xrm Client API object model to support the new Unified Interface.

In almost all Dynamics 365 v8 or older instances there will be some custom JavaScript (OnLoad, OnSave, and OnChange events), iFrames, ribbon buttons, and HTML pages with will need to be evaluated. Dynamics 365 v8.2 can upgrade to v9 without replacing code using the deprecated client APIs with minor fixes as needed. The deprecated client APIs will continue to be available and supported until Microsoft officially removes them from a future major release of Dynamics 365.

Of course, code using those deprecated client APIs will need to be replaced eventually.

Let’s say your Dynamics 365 v8.2 has 100+ web resources files with 7,000+ client API functions that will need to be replaced. How do you go about changing 7,000+ client API functions? You can use Dynamics 365 v9 JavaScript Validator, Script Finder, and Ribbon Workbench2016 from XrmToolBox, Team Foundation Server, Visual Studio, or even NotePad++.

You can use the Dynamics 365 v9 JavaScript Validator tool to connect to Dynamics 365 v8.2 and scan through all the customized JavaScript and HTML files and list all the deprecated JavaScript functions needing replacement. This tool will help give you an idea of the scope of the effort required.

Visual Studio can find and replace all the deprecated client APIs in JavaScript and HTML files. This process can take a while because you will want to review each client API logic and understand its function before replacing it with the new client API functions.

The next step would be to use the Script Finder tool to identify all the events called from OnLoad, OnSave, OnChange, ribbon commands, grid, etc. When you’re fixing these items, be sure to enable the checkbox to Pass execution context as the first parameter for new client APIs calls. In addition, the Script Finder tool can identify where the events trigger the test for the JavaScript.

For ribbon commands, add CRM Parameter equals PrimaryControl in the custom JavaScript action for the ribbon button to pass the form context using Ribbon Workbench 2016 tool. The PrimaryControl contains the form context object.

Lastly, you can create and organize plans to test form events and HTML web resources in Dynamics 365.

Replacing deprecated client APIs is just one component for the upgrade process to Dynamics 365 v9. If you’re looking to upgrade to Dynamics 365 v9, contact PowerObjects!

Happy Dynamics 365’ing!



Источник: https://www.powerobjects.com/2018/09...namics-365-v9/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
powerobjects: How to Export a Theme from One Dynamics 365 Org to Another Blog bot Dynamics CRM: Blogs 0 16.12.2017 00:13
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 15 Blog bot Dynamics CRM: Blogs 1 10.02.2016 10:26
NAV Team: How to: Set up your Microsoft Dynamics NAV installation for Single Sign-on with Office 365 using Windows PowerShell Blog bot Dynamics CRM: Blogs 0 19.12.2013 15:10
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 13 Blog bot Dynamics CRM: Blogs 0 27.03.2013 22:12
CRM DE LA CREME! Configuring Microsoft Dynamics CRM 4.0 for Internet-facing deployment Blog bot Dynamics CRM: Blogs 0 18.08.2009 11:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 06:17.