How to store the List of records in the outsystems database on Clicking button

How to store the List of records in the outsystems database on Clicking button

  

I have a local variable and has the list of records in it . I wanted to save these results in the database on clicking on save button.

Hi AfeezPasha,

If I understood correctly you want to save the list of records store in your variable in the DB. If this list represent a List of an Entity, then you can do a loop in these list and use the CreateOrUpdate action of the used Entity. This action will create a record of that Entity in the DB.

Hope it helps.

Best Regards,

Miguel Pinto

AfeezPasha Mohammad wrote:

I have a local variable and has the list of records in it . I wanted to save these results in the database on clicking on save button.

Hi Mohammad,


Simple way to save data for record of list is shown below -


Same Miguel told you in above comments 

You need to put custom validations acc to your requirements.


Thanks,

Rajat