cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to run Python script

HarshithKumar
Level 4
Hello Everyone!

What is the best way to run python script in blue prism?

Appreciate the answer.

Thanks.

------------------------------
Harshith Kumar
Graduate Engineering Trainee
Schneider Electric
------------------------------
10 REPLIES 10

jegendra
Staff
Staff
Hi Harshith,

You could utilise the Utility - Environment VBO and invoke your Python script through the Arguments under Start Process Action.

------------------------------
Jega Avinasinathan
Customer Support Engineer
Blue Prism
------------------------------
Jega Avinasinathan Customer Support Engineer Blue Prism

Hi Jegendra,

Can I get output from that python script onto blueprism using your method?

Thanks.

------------------------------
Harshith Kumar
Graduate Engineering Trainee
Schneider Electric
------------------------------

Hi Harishith, 

Using the Action (Start-Process) would not give you any outputs.
Output needs to be written into a file, and the file subsequently read.

Alternatively, you could investigate and experiment writing your own code stage.
Or expose your python script as web service and then invoke the web service into Blue Prism to retrieve the output value.

------------------------------
Jega Avinasinathan
Customer Support Engineer
Blue Prism
------------------------------
Jega Avinasinathan Customer Support Engineer Blue Prism

Ohh ok, Got it.

Thanks.

------------------------------
Harshith Kumar
Graduate Engineering Trainee
Schneider Electric
------------------------------

Use Start Process Read Stderr and Stdout of Utility - Environment output will be read to Std Output dataitem.

------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------

Hi Gopal,

Could You Elaborate on your solution, please?

Coz I'm not able to find Read Stderr and Stdout

Thank you

------------------------------
Harshith Kumar
Graduate Engineering Trainee
Schneider Electric
------------------------------

You probably have an older version of the Utility - Environment VBO.

I think the one that gets Standard Output and Standard Error was packaged with one of the V6 Blue Prism versions. Maybe 6.3 or so? I'm not sure.

You can download this one from the Digital Exchange. It has the action 'Start Process Read Stderr and Stdout' in it: https://digitalexchange.blueprism.com/dx/entry/9648/solution/blue-prism-environment

------------------------------
Dave Morris
3Ci @ Southern Company
Atlanta, GA
------------------------------
Dave Morris 3Ci at Southern Company Atlanta, GA

Yeah, Dave, you're right.

I have an older version. 

Thanks for your solution.

------------------------------
Harshith Kumar
Graduate Engineering Trainee
Schneider Electric
------------------------------

Hi Dave,

Can you please share the above link again. Because I am using BP V6.10, but I can't find the Action 'Start Process Read Stderr and Stdout'.

Thanks



------------------------------
Simanchala Pattanayak
Lead Solution Advisor
Deloitte USI
Bangalore
------------------------------