Home Discussions Questions & Answers PLSQL API for Importing Report XML Definitions

PLSQL API for Importing Report XML Definitions

Avatar photoCustomer November 18, 2019 at 2:07 pm

We need to import XML files containing report metadata automatically into our production system via PLSQL. What function in `XXEN_API` handles the XML upload?

Viewing 4 reply threads
  • Author
    Replies
    • Support November 19, 2019 at 8:05 am  

      You can use the function **`XXEN_API.import_xml(p_xml in clob)`**. This function takes the report XML data as a CLOB input.

    • Avatar photoCustomer November 20, 2019 at 4:51 pm  

      What does the function return upon success?

    • Support November 22, 2019 at 2:20 pm  

      The function returns `null` if the import is successful, or an error message if it fails.

    • Avatar photoCustomer November 23, 2019 at 5:55 am  

      Since this is PLSQL, is an explicit commit required after calling the function?

    • Support November 23, 2019 at 12:25 pm  

      Yes, the `import_xml` function does not include a commit, so you must explicitly execute a commit from the calling code to finalize the database transaction.

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

Login with: