Search Results activity_script_id




Overview

The AMS_ACT_SCRIPTS table is a core data repository within the Oracle E-Business Suite Marketing (AMS) module, specifically for versions 12.1.1 and 12.2.2. It serves as the central storage entity for scripts associated with marketing activities. These scripts can be designated for either inbound or outbound communications, facilitating structured and consistent dialogue in marketing campaigns. The table's primary role is to link reusable script content to specific marketing execution objects, thereby enabling script-driven campaign interactions and ensuring that representatives follow predefined communication guidelines.

Key Information Stored

The table's structure is designed to manage script metadata and relationships. Its primary key, ACTIVITY_SCRIPT_ID, uniquely identifies each script record. A critical column is ACT_SCRIPT_USED_BY_ID, which functions as a foreign key to link the script to the specific marketing object utilizing it. While the provided metadata does not list all columns, typical data stored in such a table includes the script content or a reference to it, script type (inbound/outbound), status, creation dates, and the identifier of the parent campaign or schedule. This design allows for the centralized management and reuse of script templates across different marketing activities.

Common Use Cases and Queries

A primary use case involves retrieving all scripts configured for a specific campaign or campaign schedule for audit or execution purposes. For instance, a report to list scripts used by a campaign would join on the ACT_SCRIPT_USED_BY_ID column. Another common scenario is querying the script library to find available templates for a new activity. Sample SQL to find scripts linked to a specific campaign schedule would follow this pattern:

  • SELECT scr.* FROM ams_act_scripts scr, ams_campaign_schedules sch WHERE scr.act_script_used_by_id = sch.schedule_id AND sch.schedule_id = :p_sched_id;

Data from this table is also integral to operational reports that analyze script usage and effectiveness within marketing campaigns.

Related Objects

The AMS_ACT_SCRIPTS table maintains defined foreign key relationships with two primary campaign entities in the AMS schema, as documented in the ETRM metadata. These relationships are established through the ACT_SCRIPT_USED_BY_ID column, indicating the table's dependency on higher-level marketing objects.

  • AMS_CAMPAIGNS_ALL_B: This table stores campaign definitions. The foreign key (AMS_ACT_SCRIPTS.ACT_SCRIPT_USED_BY_ID → AMS_CAMPAIGNS_ALL_B) allows scripts to be directly associated with a master campaign.
  • AMS_CAMPAIGN_SCHEDULES: This table holds schedule details for campaigns. The foreign key (AMS_ACT_SCRIPTS.ACT_SCRIPT_USED_BY_ID → AMS_CAMPAIGN_SCHEDULES) enables scripts to be linked to specific instances or executions of a campaign.

These relationships ensure referential integrity, meaning a script must be used by either a valid campaign or a valid campaign schedule, anchoring the script data within the campaign hierarchy.

  • Table: AMS_ACT_SCRIPTS 12.1.1

    owner:AMS,  object_type:TABLE,  fnd_design_data:AMS.AMS_ACT_SCRIPTS,  object_name:AMS_ACT_SCRIPTS,  status:VALID,  product: AMS - Marketingdescription: Stores the Scripts ( Inbound / Outbound ) used by a marketing activity. ,  implementation_dba_data: AMS.AMS_ACT_SCRIPTS

  • Table: AMS_ACT_SCRIPTS 12.2.2

    owner:AMS,  object_type:TABLE,  fnd_design_data:AMS.AMS_ACT_SCRIPTS,  object_name:AMS_ACT_SCRIPTS,  status:VALID,  product: AMS - Marketingdescription: Stores the Scripts ( Inbound / Outbound ) used by a marketing activity. ,  implementation_dba_data: AMS.AMS_ACT_SCRIPTS