Dynamics 365:使用自定义字段扩展分段和TargetEntity

时间:2017-03-23 09:48:21

标签: axapta dynamics-ax7 dynamics-365-operations d3fo

我正在尝试使用新的CustomFields扩展LedgerJournalEntity

我已加入我的项目

Solutions Explorer截图:

Solutions Explorer Screenshot

映射详细信息

Mapping Details

所有必需的工件

我创建了一个Extension项目,并在LedgerJournalEntityStaging和LedgerJournalTrans中添加了三个字段 我还从TargetEntity表重新生成了映射。我可以在staging和Target实体上看到我的新字段 但是当我从数据管理导入数据时。只有登台包含数据,目标字段未填充

1 个答案:

答案 0 :(得分:1)

如果打开数据实体列表,您会注意到Set based processing已启用LedgerJournalEntity(基于集合的SQL操作)标记。

调试导入过程时,您可以看到copyCustomStagingToTarget中的方法LedgerJournalEntity如何执行从登台到目标的自定义副本。

我建议您创建一个事件处理程序,以便在LedgerJournalTableLedgerJournalTrans中填充新字段:

[PostHandlerFor(tableStr(LedgerJournalEntity), tableStaticMethodStr(LedgerJournalEntity, copyCustomStagingToTarget))]
相关问题