[ExtensionOf(classstr(DMFPackageExporter))]
final class AVADMFPackageExportToFile_Extension
{
public static SharedServiceUnitFileID exportToFileV2(DMFDefinitionGroupName _definitionGroup, DMFExecutionId _executionId, DMFEntityName _entity, DMFSourceName _sourceFormat, Map _entitySyncVersion, int _previewCount )
{
SharedServiceUnitFileID sourceFilepath;
DMFDefinitionGroupExecution _dmfDefinitionGroupExecution;
DMFEntity _dmfEntity = DMFEntity::find(_entity);
_dmfDefinitionGroupExecution = DMFDefinitionGroupExecution::find(_definitionGroup,_entity,_executionId);
sourceFilepath = next exportToFileV2(_definitionGroup,_executionId,_entity, _sourceFormat ,_entitySyncVersion ,_previewCount);
if(_dmfEntity.TargetEntity == 'Your entity name')
{
if (_dmfDefinitionGroupExecution.StagingStatus == DMFBatchJobStatus::Finished)
{
}
}
}
if(_dmfEntity.TargetEntity == 'AVAResendInventTransferOrderLineEntity')
{
// write your logic here
}
return sourceFilepath;
}
}
final class AVADMFPackageExportToFile_Extension
{
public static SharedServiceUnitFileID exportToFileV2(DMFDefinitionGroupName _definitionGroup, DMFExecutionId _executionId, DMFEntityName _entity, DMFSourceName _sourceFormat, Map _entitySyncVersion, int _previewCount )
{
SharedServiceUnitFileID sourceFilepath;
DMFDefinitionGroupExecution _dmfDefinitionGroupExecution;
DMFEntity _dmfEntity = DMFEntity::find(_entity);
_dmfDefinitionGroupExecution = DMFDefinitionGroupExecution::find(_definitionGroup,_entity,_executionId);
sourceFilepath = next exportToFileV2(_definitionGroup,_executionId,_entity, _sourceFormat ,_entitySyncVersion ,_previewCount);
if(_dmfEntity.TargetEntity == 'Your entity name')
{
if (_dmfDefinitionGroupExecution.StagingStatus == DMFBatchJobStatus::Finished)
{
}
}
}
if(_dmfEntity.TargetEntity == 'AVAResendInventTransferOrderLineEntity')
{
// write your logic here
}
return sourceFilepath;
}
}