Search Results ams_p_source_codes_v
Overview
AMS_P_SOURCE_CODES_V is a public, VALID view owned by the APPS schema in Oracle E-Business Suite, delivered as part of the AMS (Marketing) product family. In EBS 12.1.1 and 12.2.2, it presents descriptive and operational information about Marketing Source Codes: the identifiers that Oracle Marketing uses to classify and attribute responses back to the campaigns, events, offers, and schedules that generated them. The view is a UNION ALL construct rather than a simple projection, so each row represents a source code joined to exactly one underlying marketing entity, with the entity type distinguished by the SOURCE_TYPE column. It exposes the source code itself alongside the "related" metadata — RELATED_SOURCE_CODE, RELATED_SOURCE_OBJECT, and RELATED_SOURCE_ID — which is the reason the view is frequently surfaced when users search for "related_source_id". Because the view is public and read-only, it is a supported surface for reporting, custom concurrent programs, and integration extracts without querying the base AMS_SOURCE_CODES table directly.
Underlying Base Objects
The documented base objects are AMS_SOURCE_CODES (SYNONYM), AMS_CAMPAIGNS_VL, AMS_CAMPAIGN_SCHEDULES_VL, AMS_EVENT_HEADERS_VL, AMS_EVENT_OFFERS_VL, AMS_OFFERS (SYNONYM), and QP_LIST_HEADERS_VL, all VIEWs except the two synonyms. The join logic is driven by AMS_SOURCE_CODES, which is the anchor table in every branch of the UNION ALL. The ARC_SOURCE_CODE_FOR column on the source code determines which entity view is joined and thus which branch the row originates from: 'CAMP' joins AMS_CAMPAIGNS_VL on SOURCE_CODE_FOR_ID = CAMPAIGN_ID; 'EVEH' joins AMS_EVENT_HEADERS_VL on SOURCE_CODE_FOR_ID = EVENT_HEADER_ID; 'EVEO' and 'EONE' join AMS_EVENT_OFFERS_VL on SOURCE_CODE_FOR_ID = EVENT_OFFER_ID; and additional branches cover campaign schedules and offers list headers. Only active source codes are returned, since every branch filters ACTIVE_FLAG = 'Y'.
Key Columns
- SOURCE_CODE_ID — primary identifier of the source code record.
- SOURCE_CODE — the user-visible source code value used for attribution.
- SOURCE_TYPE — sourced from ARC_SOURCE_CODE_FOR; indicates the entity class ('CAMP', 'EVEH', 'EVEO', 'EONE').
- OBJECT_ID — the identifier of the parent entity (campaign, event header, event offer, or schedule).
- NAME, STATUS, START_DATE, END_DATE — descriptive attributes of the parent entity, mapped from each entity view.
- INBOUND_URL, INBOUND_EMAIL_ID, INBOUND_PHONE_NO — channel response destinations for the parent entity.
- RELATED_SOURCE_CODE, RELATED_SOURCE_OBJECT, RELATED_SOURCE_ID — the linkage columns that associate a source code with a related marketing object; RELATED_SOURCE_ID holds the identifier of that related object and RELATED_SOURCE_OBJECT identifies its type.
- CUSTOM_SETUP_ID / SETUP_TYPE_ID — setup or classification identifiers carried from the campaign or event entity view.
Common Use Cases and Queries
Typical uses include response-attribution reports, source code inventories by campaign or event, and extracts feeding external marketing analytics. A frequent requirement is tracing the related object behind a source code:
- List active source codes by type:
SELECT SOURCE_CODE, SOURCE_TYPE, OBJECT_ID, NAME FROM AMS_P_SOURCE_CODES_V WHERE SOURCE_TYPE = 'CAMP' ORDER BY NAME; - Find records with a populated related object:
SELECT SOURCE_CODE, RELATED_SOURCE_CODE, RELATED_SOURCE_OBJECT, RELATED_SOURCE_ID FROM AMS_P_SOURCE_CODES_V WHERE RELATED_SOURCE_ID IS NOT NULL; - Report inbound response channels per campaign:
SELECT NAME, SOURCE_CODE, INBOUND_URL, INBOUND_EMAIL_ID, INBOUND_PHONE_NO FROM AMS_P_SOURCE_CODES_V WHERE SOURCE_TYPE = 'CAMP';
Because the view filters to active source codes and performs UNION ALL joins, queries should filter on SOURCE_TYPE where a specific entity class is intended to avoid scanning all branches.
-
View: AMS_P_SOURCE_CODES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_P_SOURCE_CODES_V, object_name:AMS_P_SOURCE_CODES_V, status:VALID, product: AMS - Marketing , description: This public view shows the information related to Marketing Source code. , implementation_dba_data: APPS.AMS_P_SOURCE_CODES_V ,
-
View: AMS_P_SOURCE_CODES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_P_SOURCE_CODES_V, object_name:AMS_P_SOURCE_CODES_V, status:VALID, product: AMS - Marketing , description: This public view shows the information related to Marketing Source code. , implementation_dba_data: APPS.AMS_P_SOURCE_CODES_V ,
-
VIEW: APPS.AST_SOURCE_CODES_LOV_V
12.1.1
-
VIEW: APPS.AST_SOURCE_CODES_LOV_V
12.2.2
-
VIEW: APPS.AST_CAMPAIGN_LOV_V
12.2.2
-
VIEW: APPS.AST_OPPORTUNITY_LINES_V
12.1.1
-
VIEW: APPS.AS_OPPORTUNITY_LINES_V
12.1.1
-
VIEW: APPS.AST_OPPORTUNITY_LINES_V
12.2.2
-
VIEW: APPS.AST_LS_CAMPAIGNS_V
12.1.1
-
VIEW: APPS.AS_SALES_LEAD_LINES_V
12.1.1
-
VIEW: APPS.AS_SALES_LEAD_LINES_V
12.2.2
-
VIEW: APPS.ASO_I_MKTG_SRC_CODES_V
12.1.1
-
VIEW: APPS.ASO_I_MKTG_SRC_CODES_V
12.2.2
-
VIEW: APPS.AST_CAMPAIGN_LOV_V
12.1.1
-
VIEW: APPS.AS_OPPORTUNITY_LINES_V
12.2.2
-
VIEW: APPS.AST_LS_CAMPAIGNS_V
12.2.2
-
VIEW: APPS.AST_TARGET_CAMPAIGNS_V
12.2.2
-
View: AST_SOURCE_CODES_LOV_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AST.AST_SOURCE_CODES_LOV_V, object_name:AST_SOURCE_CODES_LOV_V, status:VALID, product: AST - TeleSales , implementation_dba_data: APPS.AST_SOURCE_CODES_LOV_V ,
-
View: AST_SOURCE_CODES_LOV_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AST.AST_SOURCE_CODES_LOV_V, object_name:AST_SOURCE_CODES_LOV_V, status:VALID, product: AST - TeleSales , implementation_dba_data: APPS.AST_SOURCE_CODES_LOV_V ,
-
VIEW: APPS.AS_OPPORTUNITY_DETAILS_V
12.2.2
-
VIEW: APPS.AS_OPPORTUNITY_DETAILS_V
12.1.1
-
VIEW: APPS.AMS_DS_SALES_LEADS_V
12.1.1
-
VIEW: APPS.AS_SALES_LEADS_V
12.1.1
-
VIEW: APPS.AS_SALES_LEADS_V
12.2.2
-
VIEW: APPS.AST_TARGET_CAMPAIGNS_V
12.1.1
-
VIEW: APPS.AMS_DS_SALES_LEADS_V
12.2.2
-
View: AS_SALES_LEAD_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_SALES_LEAD_LINES_V, object_name:AS_SALES_LEAD_LINES_V, status:VALID, product: AS - Sales Foundation , description: sales lead line foreign keys , implementation_dba_data: APPS.AS_SALES_LEAD_LINES_V ,
-
View: AS_OPPORTUNITY_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_OPPORTUNITY_LINES_V, object_name:AS_OPPORTUNITY_LINES_V, status:VALID, product: AS - Sales Foundation , implementation_dba_data: APPS.AS_OPPORTUNITY_LINES_V ,
-
View: AS_OPPORTUNITY_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_OPPORTUNITY_LINES_V, object_name:AS_OPPORTUNITY_LINES_V, status:VALID, product: AS - Sales Foundation , implementation_dba_data: APPS.AS_OPPORTUNITY_LINES_V ,
-
View: AST_OPPORTUNITY_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AST.AST_OPPORTUNITY_LINES_V, object_name:AST_OPPORTUNITY_LINES_V, status:VALID, product: AST - TeleSales , implementation_dba_data: APPS.AST_OPPORTUNITY_LINES_V ,
-
View: AS_SALES_LEAD_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_SALES_LEAD_LINES_V, object_name:AS_SALES_LEAD_LINES_V, status:VALID, product: AS - Sales Foundation , description: sales lead line foreign keys , implementation_dba_data: APPS.AS_SALES_LEAD_LINES_V ,
-
View: AST_LS_CAMPAIGNS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AST.AST_LS_CAMPAIGNS_V, object_name:AST_LS_CAMPAIGNS_V, status:VALID, product: AST - TeleSales , implementation_dba_data: APPS.AST_LS_CAMPAIGNS_V ,
-
View: AST_OPPORTUNITY_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AST.AST_OPPORTUNITY_LINES_V, object_name:AST_OPPORTUNITY_LINES_V, status:VALID, product: AST - TeleSales , implementation_dba_data: APPS.AST_OPPORTUNITY_LINES_V ,
-
View: AST_CAMPAIGN_LOV_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AST.AST_CAMPAIGN_LOV_V, object_name:AST_CAMPAIGN_LOV_V, status:VALID, product: AST - TeleSales , implementation_dba_data: APPS.AST_CAMPAIGN_LOV_V ,
-
View: AST_LS_CAMPAIGNS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AST.AST_LS_CAMPAIGNS_V, object_name:AST_LS_CAMPAIGNS_V, status:VALID, product: AST - TeleSales , implementation_dba_data: APPS.AST_LS_CAMPAIGNS_V ,
-
View: ASO_I_MKTG_SRC_CODES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ASO.ASO_I_MKTG_SRC_CODES_V, object_name:ASO_I_MKTG_SRC_CODES_V, status:VALID, product: ASO - Order Capture , description: This view shows the information related to a source code. , implementation_dba_data: APPS.ASO_I_MKTG_SRC_CODES_V ,
-
SYNONYM: APPS.AMS_OFFERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AMS_OFFERS, status:VALID,
-
View: AST_CAMPAIGN_LOV_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AST.AST_CAMPAIGN_LOV_V, object_name:AST_CAMPAIGN_LOV_V, status:VALID, product: AST - TeleSales , implementation_dba_data: APPS.AST_CAMPAIGN_LOV_V ,
-
VIEW: APPS.AST_LM_EVENTS_V
12.2.2
-
PACKAGE BODY: APPS.ASL_EXCEL_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ASL_EXCEL_UTIL_PVT, status:VALID,
-
View: AS_OPPORTUNITY_DETAILS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_OPPORTUNITY_DETAILS_V, object_name:AS_OPPORTUNITY_DETAILS_V, status:VALID, product: AS - Sales Foundation , implementation_dba_data: APPS.AS_OPPORTUNITY_DETAILS_V ,
-
VIEW: APPS.AST_LM_EVENTS_V
12.1.1
-
VIEW: APPS.AST_LM_COLLATERAL_V
12.2.2
-
VIEW: APPS.AST_LM_COLLATERAL_V
12.1.1
-
SYNONYM: APPS.AMS_OFFERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AMS_OFFERS, status:VALID,
-
View: AST_TARGET_CAMPAIGNS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AST.AST_TARGET_CAMPAIGNS_V, object_name:AST_TARGET_CAMPAIGNS_V, status:VALID, product: AST - TeleSales , implementation_dba_data: APPS.AST_TARGET_CAMPAIGNS_V ,
-
View: AMS_DS_SALES_LEADS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_DS_SALES_LEADS_V, object_name:AMS_DS_SALES_LEADS_V, status:VALID, product: AMS - Marketing , implementation_dba_data: APPS.AMS_DS_SALES_LEADS_V ,
-
View: AMS_DS_SALES_LEADS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AMS.AMS_DS_SALES_LEADS_V, object_name:AMS_DS_SALES_LEADS_V, status:VALID, product: AMS - Marketing , implementation_dba_data: APPS.AMS_DS_SALES_LEADS_V ,
-
View: AS_OPPORTUNITY_DETAILS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AS.AS_OPPORTUNITY_DETAILS_V, object_name:AS_OPPORTUNITY_DETAILS_V, status:VALID, product: AS - Sales Foundation , implementation_dba_data: APPS.AS_OPPORTUNITY_DETAILS_V ,
-
View: ASO_I_MKTG_SRC_CODES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ASO.ASO_I_MKTG_SRC_CODES_V, object_name:ASO_I_MKTG_SRC_CODES_V, status:VALID, product: ASO - Order Capture , description: This view shows the information related to a source code. , implementation_dba_data: APPS.ASO_I_MKTG_SRC_CODES_V ,