Importing customers using dataentity does not init data from customer group, for example Payment Terms does not automatically inizialized from group.
This extension on CustCustomerEntity data entity will fix that problem
[ExtensionOf(dataentityviewstr(CustCustomerEntity))]
final class CustCustomerEntity_Extension
{
[DataEventHandler(tableStr(CustCustomerEntity), DataEventType::MappedEntityToDataSource)]
public static void CustCustomerEntity_onMappedEntityToDataSource(Common _sender, DataEventArgs _eventArgs)
{
CustCustomerEntity custCustomerEntity = _sender;
DataEntityContextEventArgs dataEntityContextEventArgs = _eventArgs;
DataEntityDataSourceRuntimeContext _dataSourceCtx = dataEntityContextEventArgs.parmEntityDataSourceContext();
if (_dataSourceCtx.name() == dataEntityDataSourceStr(CustCustomerEntity, CustTable))
{
CustTable custTable = _dataSourceCtx.getBuffer();
custTable.initFromCustGroup(CustGroup::find(custTable.CustGroup));
}
}
}
Apply to D365FFO Platform Update 11 Spring 2017
Iscriviti a:
Post (Atom)
AX 2012: The request was aborted: Could not create SSL/TLS secure channel
The error you're encountering, "The request was aborted: Could not create SSL/TLS secure channel," can occur due to various re...
-
Ussally you have to save a report to an output file for example store it or send it over mail. Here an example to save a report into Excel...
-
A simple way to export a data entity, using the powerful data management framework. You need a definition group, where the entity is mapped ...
-
NumberSeq numberSeq; InventTransferTable inventTransferTable; InventTransferLine inventTransferLine; InventDim inventDim; ; ttsbegin; ...