46
Views
3
Comments
Solved
Is it possible to call a python script within my outsystems app?
Question

Hey everyone, 

I have an existing Python script that pulls data from platforms (takes in project name, project id, etc) -> JSON format.  

My script then parses the JSON-formatted data and pushes it to an internal tool we have. 

So my question is, is there any way I can integrate my Python script with my outsystems app?

example data source platforms: gsheets, smartsheet, trello, etc

Solution

Hi Alex,

If your OutSystems app runs in the cloud on OutSystems cloud infrastructure you simply cannot (but read on), since OutSystems cloud servers do not host Python, and can therefore not run Python scripts.

If you are hosting OutSystems on-premise, you may look at a Forge asset like this (disclaimer: I have never used it), or make your own Extension to start Python and run the script.

Another possibility (which works in both cases) is host the Python on a different (cloud) computer and expose an API that you can call from OutSystems.

Hi Alex Chen

OutSystems runs is a .NET C#/ASPX. 

please refer the below post

Integrating Python  output with Outsystems 

https://www.outsystems.com/forums/discussion/76788/integrating-python-output-with-outsystems/ 

It may help you


Regards

Murali

Hello Alex,

You will not able to integrate Python script to OutSystems directly. OutSystems support C# as Murali said so you can create extension using C# which call Python script and return JSON data to OutSYstems.

Also if the other platforms that you use to pull data has APIs you can consume them directly to OutSystems or if you can connect to these platforms databases you can integrate with external databases using OutSystems. 

You can check this URL for external database integration:

https://success.outsystems.com/documentation/11/extensibility_and_integration/integrate_with_an_external_database/integrate_with_an_external_database_using_integration_studio/

Solution

Hi Alex,

If your OutSystems app runs in the cloud on OutSystems cloud infrastructure you simply cannot (but read on), since OutSystems cloud servers do not host Python, and can therefore not run Python scripts.

If you are hosting OutSystems on-premise, you may look at a Forge asset like this (disclaimer: I have never used it), or make your own Extension to start Python and run the script.

Another possibility (which works in both cases) is host the Python on a different (cloud) computer and expose an API that you can call from OutSystems.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.