How to insert multiple records in database

How to insert multiple records in database

  

Hi All,

In a REST api I am passing a List of structure, now I need to insert those records in a database entity.

Do you have any idea how to achieve this?

Thanks for your help!

Kind Regards

Sandeep

Hi Sandeep,

To achieve this, you should use a 'For' loop to loop over the inputted list, and in the loop, create a record in the entity, based on the current record being looped over.

You can reference the current record like:

Input.List.Current.Record

Let me know if you have any issues,

Justin