OutSystems Platform allows you to implement server-side logic using C# or Java. This allows you to leverage existing libraries and SDKs.
To use your own C# or Java code:
In this example, we already have a C# and a Java method that calculates the monthly payments for a mortgage.
Instead of implementing the same method from scratch using OutSystems logic, we'll encapsulate that method into an Extension module.
To start reusing your code, you need to create a new Extension module:
Now that we've defined the signature of the action, we need to code its logic, and make it available to reuse. Click 'Edit Source Code .NET' or 'Edit Source Code J2EE'. It will automatically generate the stubs for the actions and open the corresponding IDE;
Now we can implement and test the code as usual.
Once you finish coding go back to Integration Studio and click on '1-Click Publish', or use F5 to deploy your extension.
Once you've published your extension, you can use it in your OutSystems applications:
Connect to an External Database | Use Extension Actions and Structures