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
      • .

EASendHttpRequestByTempo

This document was generated using Claude.ai

Overview

Generates HTTP requests using Tempo templates and queues them for asynchronous execution. Parses Tempo content to extract HTTP request definitions and creates pending system actions for external API communication.

When This Action Runs

Manual execution for integrating with external APIs, web services, or third-party systems. Commonly used for sending notifications, synchronizing data, or triggering external workflows based on entity changes.

How It Works

  1. Parses Tempo template - Processes the Tempo template using ComplexRenderer to extract HTTP request definitions
  2. Renders entity data - Uses entity data to populate template variables and generate final HTTP request content
  3. Extracts HTTP requests - Identifies all HTTP request blocks defined in the rendered Tempo content
  4. Creates pending actions - Generates PendingSystemAction records for each HTTP request
  5. Queues for execution - Stores requests in the system action queue for asynchronous processing

Parameters

Parameter 1: Request Tempo (Required) - Tempo template containing HTTP request definitions with entity data placeholders

Parameter 2: Do Not Delete Task After Finishing (Optional) - true/false to preserve action records after execution (default: false)

Tempo Template Structure

The Tempo template should define HTTP requests using the system's HTTP request format:

  • Example 1:
{loop(details)}
{httprequest}
 {requesturl}https://namasoft.com/api/v3.0/item{endurl}
 {requestmethod}POST{endmethod}
 {contenttype}application/json{endcontenttype}
 {charset}utf8{endcharset}
 {headername}api-key{endheadername}
 {headervalue}xxHjjk889523{endheadervalue}
 {paramname}company_name{endparamname}
 {paramvalue}{legalEntity.name2}{endparamvalue}
 {bodypartname}user_whatsapp_number{endbodypartname}
 {bodypartvalue}{details.ref1.$toReal.contactInfo.mobile}{endbodypartvalue}
 {bodypartname}ordernumber{endbodypartname}
 {bodypartvalue}{details.ref2.$toReal.code}{endbodypartvalue}
{endrequest}
{endloop}
  • Example 2:
{loop(details)}
{httprequest}
 {requesturl}https://namasoft.com/api/v3.0/item{endurl}
 {requestmethod}POST{endmethod}
 {contenttype}application/json{endcontenttype}
 {charset}utf8{endcharset}
 {headername}api-key{endheadername}
 {headervalue}xxHjjk889523{endheadervalue}
 {paramname}company_name{endparamname}
 {paramvalue}{legalEntity.name2}{endparamvalue}
 {requestbody}
\{
"user_whatsapp_number":"{details.ref1.$toReal.contactInfo.mobile}"
,"ordernumber":"{details.ref2.$toReal.code}"
\}
{endbody}
{endrequest}
{endloop}

Database Tables Affected

  • PendingSystemAction - Creates new records for HTTP request execution
  • Entity Data - Reads entity data to populate Tempo template variables

Module: core

Full Class Name: com.namasoft.modules.basic.util.EASendHttpRequestByTempo

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