How to add data to a list

I would like to add data into a list and read from this list later on.

  1. how do I add the data into the list?
  2. how can I read from this list?

Thank you very much!

@Vijayakumar_Raghu I really appreciate your efforts.
maybe you can help me with this one as well, please?

Hi @raul,

You may define an array or an object in any action or hook, such as

const list = [] or {}

then use _ (lodash) to manipulate the array, or add a value to your object with list.item1 = value.

If the list is semi-permanent for all users, you may even use the key-value store to save that list to the database.

What is the challenge you are facing?