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...
-
The error you're encountering, "The request was aborted: Could not create SSL/TLS secure channel," can occur due to various re...
-
NumberSeq numberSeq; InventTransferTable inventTransferTable; InventTransferLine inventTransferLine; InventDim inventDim; ; ttsbegin; ...
-
To find out what projects an AOT object exists in, use this script. It's recursive, than it can find methods or inner nodes too Proje...