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...
-
When your code run on CIL remember to set to null any enumerator of Sets or Maps before made a change on it. If the enumerator is not restor...
-
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; ...