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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 30.10.2020, 15:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
goshoom: Simple metadata query in Powershell (D365FO)
Источник: http://dev.goshoom.net/en/2020/10/si...rshell-d365fo/
==============

If I need to extra metadata of a D365FO application, my preferred way is the new metadata API. But sometimes the requirement is so simple that it’s sufficient to query source XML files directly.

For example, this all what’s needed to get a list of fields from a table (together with their types) and store it in a CSV file. It’s written in Powershell:

[xml]$xml = Get-Content $inputXmlFilePath$xml.AxTable.Fields.AxTableField | select Name, ExtendedDataType, EnumType | Export-CSV $outputCsvFilePath -nti






It’s great for trivial cases like this. If I needed more details about fields or I had to take into account table extensions, for example, then the metadata API would be a better choice.



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

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
littleax: Simple Rest API in D365FO, D365F, D365SCM Blog bot DAX Blogs 0 23.06.2020 14:12
goshoom: Getting service operations from metadata (D365FO) Blog bot DAX Blogs 0 31.05.2019 10:11
goshoom: Find D365FO labels in Powershell Blog bot DAX Blogs 0 28.10.2018 17:11
Microsoft Dynamics CRM Team Blog: New Technical Article: Query Metadata Using JavaScript Blog bot Dynamics CRM: Blogs 0 26.01.2013 02:14
NAV Sustained Engineering Team Blog: Simple query to check the recent performance history II - now including Query Plan information Blog bot Dynamics CRM: Blogs 0 14.10.2008 13:01

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

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

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