Home Discussions Questions & Answers Mass Export of Configuration Objects via API

Mass Export of Configuration Objects via API

Avatar photoCustomer April 22, 2025 at 1:59 am

I need to perform a backup migration of *all* report templates across our environment, irrespective of which report they belong to. Can the programmatic export API handle non-report specific types like this, and if so, what is the required `p_type`?

Viewing 6 reply threads
  • Author
    Replies
    • Support April 23, 2025 at 1:54 am  

      Yes, the generic API function `XXEN_API.EXPORT_FILE_DATA` is designed to handle various object types beyond just reports . To export all templates, you would set the input parameter `p_type` to the value ‘Templates’ . This function returns a CLOB containing the XML definition of all template objects . Other supported non-report types include ‘LOVs’, ‘Assignments’, ‘Profile Option Values’, and ‘All Contents’ .

    • Avatar photoCustomer April 23, 2025 at 8:45 pm  

      If I only want to export a specific subset of templates, say 10 custom ones, how do I pass their IDs to the API?

    • Support April 25, 2025 at 6:50 am  

      When exporting a subset of objects, you use the `p_ids` parameter, which is of type `fnd_table_of_number` . You must populate this collection (`l_ids`) with the unique ID numbers of the templates you wish to export . The `p_ids` parameter is applicable when `p_type` is set to ‘Reports’, ‘Templates’, ‘LOVs’, ‘Assignments’, or ‘SQLs’ .

    • Avatar photoCustomer April 25, 2025 at 3:57 pm  

      We have template access restricted using the profile option ‘Blitz Report Template Access’. Does the export API respect these security settings?

    • Support April 27, 2025 at 9:57 am  

      The provided documentation does not explicitly state that the export API restricts data access based on the ‘Blitz Report Template Access’ profile option . The API is intended for administrative or developer use, suggesting it operates at a privileged level. Template access controls (No Access, Private only, Private and shared, Super User) are typically enforced through the user interface when accessing templates via the run window . You should ensure the user running the export script has the necessary privileges to extract all required data.

    • Avatar photoCustomer April 28, 2025 at 4:26 am  

      Is there a way to export the history of previous SQL versions for a report using the API?

    • Support April 28, 2025 at 9:51 pm  

      Yes, you can export previous SQL versions. You would set the `p_type` parameter in `XXEN_API.EXPORT_FILE_DATA` to ‘SQL Versions’ . This functionality is further refined by the optional parameter `p_creation_date`, which can be used to filter SQL versions based on when they were created , .

Viewing 6 reply threads
  • You must be logged in to reply to this post.

Login with: