Numbering for list of an entity

0
Hi everyone,   I would like to implement a numbering for a list of my entity. I grabbing a list of entity from an API which only contains string. However I would also like to implement a numbering for the list. Are there any best practice for this?   Thanks.   Best regards,   Jonathan
asked
1 answers
2

Hello Jonathan,

Follow the steps;

  1. Retrieve the list through API.
  2. Create integer variable with initial value 0.
  3. Pass the list to the loop.
  4. Now create object for where you want to save the list and pass data, set serial number attribute to variable + 1.
  5. Change the value of variable to variable + 1.
  6. Commit the changes, now every data will have serial number.

Hope my answer helps. Reach me out for any queries.

answered