this piece of code can be used for get the data sources involve in making the data entity. Microsoft.Dynamics.AX.Metadata.MetaModel.AxDataEntityView axDataEntity = Microsoft.Dynamics.Ax.Xpp.MetadataSupport::GetDataEntityView("CustCustomerEntity"); Microsoft.Dynamics.AX.Metadata.MetaModel.AxQuerySimple query = axDataEntity.ViewMetadata; var dataSources = query.DataSources; System.Collections.IEnumerator dataSourcesEnumerator = dataSources.GetEnumerator(); while (dataSourcesEnumerator.moveNext()) { Microsoft.Dynamics.AX.Metadata.MetaModel.AxQuerySimpleDataSource dataSource = dataSourcesEnumerator.get_Current(); }
获取元数据,数据实体的数据源D365FO/Get metadata, data sources of a data entity D365FO
与本文相关的文章
- D365FO工具–自动化启动和停止环境 / D365FO Tool – Automating Start and Stop Environments
- 编号规则用完警报/Alerts for Number sequence numbers running out
- D365财务和运营–使用Excel插件从Excel创建批量用户 / D365 Finance and Operation – Creation of Bulk Users from Excel using Excel addin
- SQL查询的乐趣:读取Dynamics AX 2012总账科目–财务维度 / SQL Query fun: Dynamics AX 2012 Main Account – Financial dimension read
- 使用Dynamics 365财务和运营的可扩展数据安全(XDS) / Extensible Data Security (XDS) with Dynamics 365 Finance and Operation
- D365FO财务报告(管理报告)错误“操作无法完成,因为该项目已不存在。” / D365FO Financial reports (Management reports) error “The Operation could not be completed because the item no longer exists.”