Home Discussions Questions & Answers What information is automatically available to my custom script?

What information is automatically available to my custom script?

Avatar photoCustomer January 11, 2020 at 8:43 am

If my custom post-processing script needs to know the name of the report and the concurrent request ID, how does Blitz Report pass these values?

Viewing 6 reply threads
  • Author
    Replies
    • Support January 13, 2020 at 6:05 am  

      The custom postprocess script is called with several variables automatically. These include metadata such as $p_report_name, $p_template_name, and $p_request_id.

    • Avatar photoCustomer January 14, 2020 at 10:14 am  

      I also need access to the report parameters entered by the user, like Operating Unit.

    • Support January 15, 2020 at 10:53 pm  

      All user-entered input parameters are passed as variables, starting from $parameter1, $parameter2, and so on, up to $parameter87. You can retrieve the Operating Unit value using the corresponding parameter number.

    • Avatar photoCustomer January 16, 2020 at 5:58 pm  

      What variable gives me the file path to the generated Excel file?

    • Support January 18, 2020 at 4:18 am  

      You get the full path using $outfile_name. There is also $output_filename for the base filename, and $additional_outfile_name if you defined an additional output directory.

    • Avatar photoCustomer January 18, 2020 at 1:36 pm  

      What if the script needs to run another concurrent process? Are the necessary credentials passed?

    • Support January 19, 2020 at 11:28 am  

      Yes, the script receives the concurrent login credentials via the $FCP_LOGIN variable, which allows external processes to operate within the EBS context.

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

Login with: