How to generate a random number and store it in an entity

In Designer 2.0, How to generate a random number to act as a unique identifier. This identifier can be stored within an entity, allowing you to utilize it according to your specific requirements

  1. Firstly, create an entity where the random number can be stored and utilized further.
  2. Next, link this entity to your data model.
  3. Set up an event trigger for generating the random number, such as triggering it upon clicking a button.
  4. Utilize the “Copy data” task to transfer the generated random number and store it within the designated entity.

  1. Specify both the lower and upper bounds within which the random number will be generated.
  2. Use your entity in the “copy to” panel to store the generated number in an entity.
  3. Finally, verify that a number within the specified range is stored in the entity (like in below image).

Screenshot from 2024-04-25 11-47-13
8. Now, you can use this random number to your further implementations.

2 Likes