How to execute Python or bash script after create a new record?

Hi,

I’m new to Corteza and javascript. I’m try to execute an external Python or bash script existing on my server after create a new record, but how can I pass the field value of record to the scripts and attach the resulting file to the record? I have read the documentation and found workflow can solve it, but I have no idea for it? Can you help me?

Feng

well, you need to overengineer it!

Hi, munawir.
Thanks for you quick reply. Can you show me some code snippets or give me some hints about it? Any help will be as always appreciated.
Feng

execute python script as child process or as external 3rd party (api)

1 Like

Hi Munawir,

I don’t know how to execute the scripts as child process, can you show me some snippets or snapshots? Any help will be really appreciated. :pray:

Feng

you’ll create a server-script(in coredor) that runs python as child process

1 Like

Hi, munawir,
Thanks for your reply, I will try to learn it.

Feng

1 Like

Basically what @munawir said.
As far as our automation goes, you have automation scripts (JavaScript) and workflows (visual drag & drop builder).

If you’re set on using Python/bash scripts, you’ll need to invoke it from a server-side automation script. At some point we’ll consider supporting different languages but for now you can either overengineer it or move the code to JavaScript.