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

What information is automatically available to my custom script?

Avatar photoCustomer Questions & Answers 7 replies

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?

7 replies

  • Support Enginatics

    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.

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

  • Support Enginatics

    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.

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

  • Support Enginatics

    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.

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

  • Support Enginatics

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

  • You must be logged in to reply to this post.