Running ETLs via macro using REST standard
The Integrator Server SOAP API has been deprecated as of Jedox 2022.4. If you used this standard to run ETL via macros you will need to change it now. There are two ways of doing that:
Running ETLS via action buttons (highly recommended)
Running ETLs via macro using Rest standard
Action buttons are now already well incorporated in many Jedox projects and running ETL via them should be an easy task. However if you have issue to build such a connection, check out this link.
Running ETLs using Rest standard takes a bit of coding but nothings super complex. IF you had SOAP connection-build-macro-report, make a backup of it and then delete all the code.
Have in mind that if you had any IF or any other statements in the code before, make sure to save them.
First we need to call the library require library('integrator-rest');
After that code for running looks like this:
function sampleETL() {
$etlProject = "PROJECT NAME";
$etlJob = 'JOB NAME';
// define array...