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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.10.2018, 17:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
goshoom: Find D365FO labels in Powershell
Источник: http://dev.goshoom.net/en/2018/10/fi...in-powershell/
==============

You can use Dynamics 365 > Find labels… in Visual Studio to find D365FO labels, but its capabilities are quite limited. Sometimes a better option is searching through the underlying text files directly and you can easily automate it with Powershell.

The following script looks at all label files for US English and finds all labels containing either PowerBI or Power BI. It skips label comments, because you’re typically interested only in labels and not their comments.

$packagesDir = 'C:\AOSService\PackagesLocalDirectory\'$labelFiles = ls $packagesDir\*\*\AxLabelFile\LabelResources\en-US\*.txt$labelFiles | Select-String -Pattern '^(?! ;).*=.*Power ?BI' | select Line, Filename, LineNumber






You might think this approach will be slow, but it actually returns result very quickly.



Источник: http://dev.goshoom.net/en/2018/10/fi...in-powershell/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
goshoom: Printing reports from code in D365FO Blog bot DAX Blogs 0 12.10.2018 15:11
yetanotherdynamicsaxblog: List hotfixes using PowerShell in D365FO (AX7) Blog bot DAX Blogs 0 13.01.2018 20:21
goshoom: Find assembly for a given type – in AX 7 Blog bot DAX Blogs 0 03.12.2016 15:15
goshoom: Creating AX users in Powershell Blog bot DAX Blogs 0 30.04.2014 16:11
emeadaxsupport: Using labels to find features in AX Blog bot DAX Blogs 0 08.11.2012 18:11

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

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

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