FREE OutSystems Workshops - Build an OutSystems App in 1 hour | ENROLL NOW

Tech Bites - Why you shouldn't be using CRUD actions everywhere

< Back to Blog

One common architecture issue when people start learning OutSystems is using entities' CRUD actions in multiple places.


Using our Order Management application as an example, we have a form to create, update and check the status of customers ' orders.


In this case, the Approve and Submit buttons in the save action do not invoke the CRUD action, as you can see.

We use a "server action" as a wrapper between the client-side and the database.

That action, implemented on a core module, makes all the validations needed before committing changes to the database.

Every one of those validations aborts the create or update action if the data is invalid.

For example: trying to approve or submit an amount lower than zero.


This way, when handling orders, we have a server action, which only accepts valid input data!


There are many things to grasp about software development architecture and, in particular, OutSystems architecture layers. Join us in one of our programs to learn more about it and other advanced topics.



Turn Up Academy

Apply to our Turn Up Boot Camp

AND BECOME THE NEXT OUTSYSTEMS CERTIFIED DEVELOPER
(
Instructor
)

Latest Articles

How to process data with Light BPT?

How to process data with Light BPT?

Synchronously uploading and processing data sometimes leads to a timeout. And, if not dealt with, timeouts can result in incomplete or duplicated data. We could solve this using different approaches, but let’s see how to use light BPT to process large amounts of data.

DevZone
Tech Bites - How to process data with Light BPT

How to process data with Light BPT

Synchronously uploading and processing data sometimes leads to a timeout, as we see in the following scenario.

Tech Bites
Tech Bites - How to quickly create elements using only drag and drop

How to quickly create elements using only drag and drop

Let’s go over a few tricks to create new elements and automatically relate them to other existing elements.

Tech Bites