What is the right logic for that?
This is the only format I need to use. do not use data table component
Please take a look at the following documentation on working with objects in the database:
Updating Single Object
Upsert Single Object
Regards,
Viktor