Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is it possible to run python code in custom block of the Application Automation?
I wrote a custom code to send a visualization in pdf to more than 100 people in python after reading the visualization from Qlik Cloud, I want to know if I can place the same code in the Application Automation block and run it?
Thanks for this, before reading all the documentation, what I am trying to achieve is this I want to print a long table of 211 rows that span more than 4 pdf pages but Qlik can only take the snapshot of a visible sheet. I have done it on my desktop with the code below but I want to know how Ican place the code inside a custom block. Here is the code:
Have a read of this, it is quite limited (you can't install additional packages)
Custom code block | Qlik Cloud Help
However you can use a third party to run more complex code and use the 'Call URL' block
Custom scripts | Qlik Application Automation for OEM (Blendr.io) Help
@André do you have an updated link for " third party to run more complex code and use the 'Call URL' block" it does not work anymore.
Hi @Ken_T,
It was the following:
Externally hosted custom code
The Qlik Application Automation for OEM Custom code block does not support including libraries. If you want to add comprehensive custom code to your automation and include e.g. libraries, you should host your custom code externally.An easy solution is to use repl.it to host your code. Repl.it offers a free account but you need to upgrade to a paid account in order to make your code private.
Here's an example of a Repl in repl.it of type PHP Webserver to host some PHP code, which is exposed using an HTTPS URL:
PHP code in Repl.it:
$input=json_decode(file_get_contents("php://input")); //get inputs from Blend
//add logic here
echo json_encode($input); //send response back to automationCopy the unique URL of your Repl and use it in a block Call URL to include it in your automation:
Obviously you will need to add security checks to avoid unauthorized access to your hosted code, and you have to make sure to use a private Repl (requires a paid account).
Essentially using the Call URL block to ping any external source, do *something*, then the external source returns a response which you can then use in the Automation.