Getting REST API data and inserting it on a Entity

Getting REST API data and inserting it on a Entity

  

Hi, 

I've been using Outsystems for a little as a week and I've done the web developer begginer course in the Learn section of the outsystems website.

Now what I'm trying to do is calling an API to a List or a Table Record and then automatically inserting all of that data to an Entity on outsystems.
Can someone help me with this? 

Solution

Hi Diogo,

A REST API that retrieves information typically returns a Structure or a List of Structures. To save this into the database, you would loop over the List, copy the values of the Current Structure to a local variable of the type Entitiy, and perform a CreateEntity Action (or CreateOrUpdate, depending on how you like to handle things).


Solution