Nama ERP DocsNama ERP Docs
Home
Namasoft.com
Data Model
GitHub
Home
Namasoft.com
Data Model
GitHub
  • Home

    • Search
    • Guides

      • Entity Flows
      • الفواتير والضرائب والخصومات
      • Supply Chain
      • e-commerce integration (Magento)
      • .
    • Examples
    • Reprocessing Transactions
    • Frequently Asked Questions
    • AI Generated Entity Flows Documentation

      • Core

        • DeleteRelatedEntityAction
        • EAAllowUseAsFromDocOfAField
        • EAAltCodeValidator
        • EAAttachReportResultToRecord
        • EAAutoCollectSignAndSentEInvoice
        • EAAutoEscalateApprovalToFallBackEmployee
        • EAAutoEscalateApprovalToSupervisor
        • EAAutoSendEInvoice
        • EAAutomaticGenerateEntityFromEntityAction
        • EAAutomaticGenerateEntityFromEntityActionWithApproval
        • EACacheEvicter
        • EACalcCurrencyRate
        • EACalcCurrencyRateInDetails
        • EACheckAndUpdateLinkAtOnlinePaymentTransactionSysEntry
        • EACheckDailyBackupOnGoogleDrive
        • EAClearGoogleDriveTrash
        • EACloseFiscalPeriodsInRange
        • EACodeValidator
        • EACopyEmptyAccountsFromBag
        • EADeleteFromAnotherServer
        • EADeleteFromQuery
        • EADeleteOldFiles
        • EADetailsRemover
        • EAEmptifyTomcatTemp
        • EAErrorIfQueryNotMatched
        • EAExecuteUpdateQuery
        • EAExecuteUpdateQueryOnDifferentDatasource
        • EAExportAttachments
        • EAFieldsValuesCalculator
        • EAForceApplyInstallmentEffects
        • EAGenerateDraftEntityFromEntityAction
        • EAGenerateDraftEntityFromEntityActionNoFlush
        • EAGenerateEntityFromEntityAction
        • EAGenerateEntityFromEntityActionNoFlush
        • EAGenerateEntityFromEntityActionNoFlushWithApproval
        • EAGenerateEntityFromEntityActionWithApproval
        • EAGenerateKNetPaymentURLs
        • EAGenerateMyFatoorahPaymentURLs
        • EAGroovyAction
        • EAGuessEntityFromNames
        • EAIgnoringNotFoundTargetFieldsValuesCalculator
        • EAJsonRecordExporter
        • EALoyalityEarnReward
        • EAMakeCreationDateAlwaysAfter
        • EAMakeCreationDateAlwaysBefore
        • EAMakeCreationDateAlwaysBetween
        • EAMakeCreationDateInValueDate
        • EANamaCloudBackupPrepare
        • EAOpenFiscalPeriodsInRange
        • EAPostGoPayOfflinePayment
        • EAPreventChangingFields
        • EAPreventFromDocOfUsageAgain
        • EAPreventUpdateDetailedRemarkLines
        • EAPreventUseAsFromDocOfAField
        • EAPrintFormToPrinter
        • EAPrintReportToPrinter
        • EARecommitFromQuery
        • EARefreshCriticalErrors
        • EARefreshGoogleDriveOrMailToken
        • EARegenAccEffects
        • EARegenAccFromQuery
        • EAReviseUnReviseFromQuery
        • EARevokeApproval
        • EARunEntityFlow
        • EARunEntityFlowFromQuery
        • EARunManualNotification
        • EARunManualNotificationFromQuery
        • EARunTaskSchedule
        • EASQLToCSVEmail
        • EASQLToCSVFile
        • EASaveDraftsFromQuery
        • EASaveRecordsFromQuery
        • EASaveToAnotherServer
        • EASaveToAnotherServerUsingJSON
        • EAScaleImage
        • EAScaleMasterFileImage
        • EASendHttpRequestByTempo
        • EASetCreationDateToEndOfDay
        • EASetCreationDateToStartOfDay
        • EASetFieldByTemplate
        • EASortFields
        • EAWathqAddressFetcher
        • EAWathqBasicInfoFetcher
        • EAWathqCommercialInfoFetcher
        • EAWordTemplate
        • SQLDraftImporter
        • SQLDraftImporterFromDifferentDataSource
        • SQLImporter
        • SQLImporterFromDifferentDataSource
        • Field Maps in Nama ERP - Complete Guide (AI-Generated by Claude.ai)
        • .
      • Accounting Module
      • AI Module
      • Contracting Module
      • CRM Module
      • EGTax Reader Module
      • Freight Management System Module
      • Hospital Management System Module
      • HR Module
      • e-commerce Integration Module
      • Manufacturing Module
      • POS Module
      • Real Estate Module
      • Service Center Module
      • Supply Chain Module
      • .
    • Release Notes

      • 2016
      • 2017
      • 2018
      • 2019
      • 2020
      • 2021
      • 2022
      • 2025
      • .
    • Video Tutorials

      • Supply Chain Videos
      • Report Wizard Videos
      • Human Resources Videos
      • .

EAGenerateDraftEntityFromEntityAction

This document was generated using Claude.ai Please review the human-written page at Field Values Calculator

Overview

Creates new entities from existing entities and saves them as draft documents for review. Identical to standard entity generation but saves as drafts instead of committing, allowing review before finalization.

When This Action Runs

Manual execution or automated through entity flows for draft entity creation requiring review or approval before finalization.

How It Works

  1. Analyzes source entity for data extraction
  2. Maps fields from source to target based on configuration
  3. Searches for existing target entities using finder SQL
  4. Creates or updates target entity with mapped values
  5. Saves as draft without full commitment for review

Key Parameters

Same as EAGenerateEntityFromEntityAction but saves result as draft:

  • Parameter 1: Target Type (Required) - Entity type to create
  • Parameter 2: Finder SQL (Required) - Query to find existing entity for updates
  • Parameter 3: Field Map (Optional) - Field mapping configuration
  • Parameter 4: Update Only (Optional) - Only update existing entities
  • Parameter 5: Inverse Copy (Optional) - Copy fields back to source entity
  • Parameter 6: Run Per Each Line (Optional) - Execute for each collection item
  • Parameter 7: Insert Only (Optional) - Only create new entities
  • Parameter 8: Apply When Query (Optional) - Conditional logic for generation
  • Parameter 9: Group Details By (Optional) - Group detail lines by criteria
  • Parameter 10: Run Only If (Optional) - Execute only if expression returns > 0

Database Tables Affected

  • Target Entity Table - Creates/updates records with draft status
  • Source Entity Table - May update via inverse copy configuration
  • Detail Collections - Generates detail lines based on source collections
  • Related Tables - Updates cross-references and relationships

Key Difference

Creates entities in draft status for review/approval instead of immediate commitment like the standard generation action.

Important Warnings

⚠️ Draft Status Impact

  • Draft documents may not trigger all business processes
  • May be excluded from certain reports until committed
  • External systems may not process draft documents

⚠️ Performance & Dependencies

  • Complex field mappings and SQL queries impact performance
  • Requires proper approval workflow configuration
  • Needs procedures for draft document cleanup

Related Actions

  • EAGenerateEntityFromEntityAction
  • EAAutomaticGenerateEntityFromEntityAction
  • EAGenerateEntityFromEntityActionNoFlushWithApproval
  • EAGenerateEntityFromEntityActionWithApproval
  • EAAutomaticGenerateEntityFromEntityActionWithApproval
  • EAGenerateDraftEntityFromEntityActionNoFlush

Module: core

Full Class Name: com.namasoft.infor.domainbase.util.actions.EAGenerateDraftEntityFromEntityAction

Edit On github
Last Updated:: 7/27/25, 8:34 PM
Prev
EAForceApplyInstallmentEffects
Next
EAGenerateDraftEntityFromEntityActionNoFlush