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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.07.2018, 02:29   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
powerobjects: Using Customization Files for Deploying Custom Code
Источник: https://www.powerobjects.com/2018/07...g-custom-code/
==============


When using USD in a CRM implementation there is a lot we can accomplish using configuration and out-of-the-box hosted controls, but in implementations that are more complex, we often find ourselves utilizing custom hosted controls to get the job done.

Often these custom hosted controls are comprised simply of “.dll” libraries but sometimes we may need other files or dependencies. In the past, we would have to deploy these files using some distributed installer or script to copy the dependencies into each user’s USD install folder, but no longer!

There’s gotta be an easier way!


Now with Customization File records we can easily distribute and update custom controls and functionality to our agent’s machines.

To create one, let’s navigate to Settings > Unified Service Desk > Customization Files and create a new record.



Customization Files, like any other USD configuration, are records in Dynamics 365 and should be associated with a USD Configuration record. We can track the version number using the version field, as we increment this number, the cached controls will be overwritten on the user’s machine.

Next, let’s prepare the attachment which will contain our files to distribute. This is a zip file consisting of the files we want to distribute and a “Content Types” file describing what file types should be extracted from the zip.

So, gather your files and create a new file with them named “[Content_Types].xml” which should contain XML like the following:

[Code snippet]













[Code snippet]

Each child of the “Types” element will describe a file type which should be extracted. The above Content Types XML will cause any files ending in .dll, .config, or .css to be extracted. After creating this file, place it in the same folder as the files that you wish to distribute and then zip them up with your favorite archive tool.



Finally, attach this zip file to the previously created Customization File.



Now when our users start USD, it will pull down, extract, and cache these files in their Local AppData folder at the following location: C:/Users//AppData/Local/Microsoft/UnifiedServiceDes///



That’s all there is to it!

For more helpful Dynamics 365 tips and tricks, subscribe to our blog!

Happy Dynamics 365’ing!



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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
german_nav_developer: Buildnummern-Übersicht Microsoft Dynamics NAV 2013 R2 Blog bot NAV: Blogs 0 15.05.2016 18:12
german_nav_developer: Buildnummern-Übersicht Microsoft Dynamics NAV 2013 Blog bot NAV: Blogs 0 15.05.2016 18:12
wiki.dynamicsbook: Changes Made in Navision Attain 3.60 Blog bot Dynamics CRM: Blogs 0 02.09.2008 13:23
clausba:Running more than one active configuration in BA 4.00 Blog bot Dynamics CRM: Blogs 0 23.05.2005 10:35
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 10:23.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.