Oracle Analytics Publisher

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Inquiry Regarding Dynamic User Inclusion in Report Emails via Bursting

Accepted answer
38
Views
2
Comments
Sai Sreeram Gundepudi
Sai Sreeram Gundepudi Rank 1 - Community Starter
edited September 2024 in Oracle Analytics Publisher

Summary:

Hi Oracle Experts,

We have received a request from our users to include the username of the individual executing a report in the email body after the "Thanks" section within the bursting logic. This inclusion should occur dynamically whenever a report is executed, whether through a scheduling job or an ESS job.

Could you please confirm if this is feasible? We attempted to implement it using the following SQL, but it did not yield the desired results.

Code Snippet (add any code snippets that support your topic, if applicable):

SELECT
q1.c_q2_delivery_id AS "KEY",
'MT PackingSlip Report' AS TEMPLATE,
'en-US' AS LOCALE,
'PDF' AS OUTPUT_FORMAT,
'EMAIL' AS DEL_CHANNEL,
q1.CUSTOMER_PO_NUMBER AS OUTPUT_NAME,
'true' AS SAVE_OUTPUT,
'user1@xyz.com' AS PARAMETER1,
'user2@xyz.com,user3@xyz.com,user4@xyz.com,user5@xyz.com' AS PARAMETER2,
'bipublisher-report@oracle.com' AS PARAMETER3,
'Shipping Notification - ' || q1.CUSTOMER_PO_NUMBER AS PARAMETER4,
'********** THIS IS A POC EMAIL PLEASE IGNORE **********' || chr(13) || chr(10) ||
chr(13) || chr(10) || 'Hi' || chr(13) || chr(10) ||
chr(13) || chr(10) || 'This email is part of our Proof of Concept (POC) testing. Please disregard these emails as they are only for testing purposes.' ||
chr(13) || chr(10) || chr(13) || chr(10) || 'Thank you for your understanding.' ||
chr(13) || chr(10) || chr(10) || 'xdo_user_name - ' || (SELECT NVL(:xdo_user_name, 'No Data Available') FROM dual) ||
chr(13) || chr(10) || 'xdo_user_report_oracle_lang - ' || (SELECT NVL(:xdo_user_report_oracle_lang, 'No Data Available') FROM dual) ||
chr(13) || chr(10) || 'xdo_user_report_locale - ' || (SELECT NVL(:xdo_user_report_locale, 'No Data Available') FROM dual) ||
chr(13) || chr(10) || 'xdo_user_ui_oracle_lang - ' || (SELECT NVL(:xdo_user_ui_oracle_lang, 'No Data Available') FROM dual) ||
chr(13) || chr(10) || 'xdo_user_ui_locale - ' || (SELECT NVL(:xdo_user_ui_locale, 'No Data Available') FROM dual) ||
chr(13) || chr(10) || 'xdo_user_timezone - ' || (SELECT NVL(:xdo_user_timezone, 'No Data Available') FROM dual) ||
chr(13) || chr(10) || chr(10) || 'Thanks & Regards' || chr(13) || chr(10) ||
chr(10) || 'Test Person' AS PARAMETER5,
'True' AS PARAMETER6,
'user1@xyz.com' AS PARAMETER7,
NULL AS PARAMETER8
FROM [Rest of the query...].

Attaching output Result

Best Answer

Answers