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

    • Search
    • Guides

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

      • Core

        • Field Maps in Nama ERP - Complete Guide (AI-Generated by Claude.ai)
        • DeleteRelatedEntityAction
        • EAAllowUseAsFromDocOfAField
        • EAAltCodeValidator
        • EAAttachReportResultToRecord
        • EAAutoCollectSignAndSentEInvoice
        • EAAutoEscalateApprovalToFallBackEmployee
        • EAAutoEscalateApprovalToSupervisor
        • EAAutoSendEInvoice
        • EAAutomaticGenerateEntityFromEntityAction
        • EAAutomaticGenerateEntityFromEntityActionWithApproval
        • EACacheEvicter
        • EACalcCurrencyRate
        • EACalcCurrencyRateInDetails
        • EACheckAndUpdateLinkAtOnlinePaymentTransactionSysEntry
        • EACheckDailyBackupOnGoogleDrive
        • EACheckTaxAuthorityRejectedByReceiverDocuments
        • 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
        • EARunBulkMassagesFromQuery
        • 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
        • .
      • 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
      • .

EASaveToAnotherServer

This document was generated using Claude.ai

Overview

Synchronizes data between different Nama ERP servers by sending entity records to remote servers. Handles authentication, data transformation, and error tracking for reliable data replication.

When This Action Runs

  • Trigger: Manual execution or automated synchronization
  • Target: Any entity record requiring replication
  • Purpose: Multi-site data synchronization and integration
  • Timing: On-demand or scheduled for data consistency

How It Works

  1. Prepares data by converting entity to DTO and applying field overrides
  2. Authenticates with target server using provided credentials
  3. Transmits data via web service calls (EntityService interface)
  4. Tracks results with audit logging and retry logic for failures

Key Parameters

Connection Parameters

  • Parameter 1: Other Server URL (Required) - http://hostname:port/ or https://hostname:port/
  • Parameter 2: Login ID (Required) - Username for target server authentication
  • Parameter 3: Password (Required) - Plain text password (automatically hashed)

Processing Options

  • Parameter 4: Append @draft to Code - Adds "@draft" suffix for first-time saves
  • Parameter 5: Ignore Not Found References - Allows saving without dependencies
  • Parameter 6: Save As Draft - Controls draft vs commit mode
  • Parameter 7: Fields Value Overrider - Custom field mapping syntax
  • Parameter 8: Do Not Use Current User Dimensions - Preserves original dimensions
  • Parameter 9: Max Trials Count - Retry attempts (default: 10)

Advanced Options

  • Parameter 10: Save From Query - T-SQL for bulk synchronization
  • Parameter 11: Add Manual Code Prefix - For auto-coded entities
  • Parameter 12: Keep Creation Date - Preserves original timestamps

Database Tables Affected

SentEntityToAnotherServerSysEntry

  • targetRecord - Reference to synchronized entity
  • status - Success or failure status
  • remoteServer - Target server URL
  • executionTime - Synchronization timestamp
  • errorMessage - Error details if failed

Business Use Cases

  1. Multi-Site Synchronization: Master data between branches
  2. Data Migration: Moving entities between installations
  3. Integration: Real-time or scheduled data replication
SELECT s.targetRecord_entityType, s.status, s.remoteServer, s.executionTime, s.errorMessage
FROM SentEntityToAnotherServerSysEntry s
WHERE s.executionTime >= DATEADD(day, -7, GETDATE())
ORDER BY s.executionTime DESC;

Related Actions

  • EASaveToAnotherServerUsingJSON - JSON-based server synchronization

Module: core

Full Class Name: com.namasoft.commonservices.utils.EASaveToAnotherServer

Edit On github
Last Updated:: 3/18/26, 11:30 PM
Prev
EASaveRecordsFromQuery
Next
EASaveToAnotherServerUsingJSON