Search Results jtf_amv_attachments




Overview

The JTF_AMV_ATTACHMENTS table is a core data object within the Oracle E-Business Suite (EBS) CRM Foundation (JTF) module. It functions as the central repository for managing document attachments associated with content items stored in the JTF_AMV_ITEMS_B table. This table is integral to the attachment framework across multiple EBS applications, enabling the linking of external files, such as images, PDFs, or documents, to various business entities. Its role extends beyond simple storage, as it maintains critical metadata about each attachment, including ownership, language, and the application context, while the actual file content is stored in the standard FND_LOBS table. The table's design supports a flexible, shared attachment model used by components in CRM, Marketing (AMS), and iStore (IBE).

Key Information Stored

The table's primary purpose is to store metadata that links an attachment to its parent record and physical file. The key columns include ATTACHMENT_ID, which serves as the primary key for unique identification. The ATTACHMENT_USED_BY_ID column is a critical foreign key that links the attachment to a specific record in the JTF_AMV_ITEMS_B table. The physical file reference is maintained via the FILE_ID column, which points to the corresponding BLOB data in FND_LOBS. Additional important columns define the attachment's context and properties: OWNER_USER_ID (creator), LANGUAGE_CODE (language of the attachment), APPLICATION_ID (owning application), and DOCUMENT_ID for potential integration with the FND_DOCUMENTS entity. This structure separates the attachment's metadata from its binary content, following EBS best practices.

Common Use Cases and Queries

A primary use case is retrieving all attachments for a specific content item or deliverable. For instance, support or content management personnel may need to list documents attached to a marketing item. Common reporting queries involve joining with JTF_AMV_ITEMS_B and FND_LOBS to get both the descriptive details and the file content. A typical SQL pattern to fetch attachment metadata for an item would be:

  • SELECT a.attachment_id, a.attachment_used_by_id, i.item_title, a.file_id, u.user_name AS owner FROM jtf_amv_attachments a, jtf_amv_items_b i, fnd_user u WHERE a.attachment_used_by_id = i.item_id AND a.owner_user_id = u.user_id AND i.item_id = :p_item_id;

Another operational use case is the cleanup or migration of attachments, which requires understanding the linkages to items via the foreign key relationships. Developers may also query this table when customizing or extending the attachment functionality for CRM-related entities.

Related Objects

The JTF_AMV_ATTACHMENTS table has significant integration within the EBS schema, as evidenced by its foreign key constraints. It is fundamentally linked to JTF_AMV_ITEMS_B, which holds the items to which files are attached. The physical file storage is in FND_LOBS. It references master data tables like FND_USER, FND_LANGUAGES, and FND_APPLICATION for validation. Importantly, it is referenced by several other application tables, indicating its shared service nature. Key referencing tables include AMS_DELIVERABLES_ALL_B (Marketing Deliverables), IBE_DSP_LGL_PHYS_MAP and JTF_DSP_LGL_PHYS_MAP (Display mapping), and IBE_EOS_THEMES_B (iStore Themes for logo storage). This wide usage underscores its role as a central attachment hub for the JTF framework.