How to output Random Text messages

I have 5 text messages (templates) that i want to randomly send.

I am using this within a FOR EACH ROW activity, so for each row i want to get a new random message

How to do this?

Where do you store your prepared messages? Datatable?

Hi @Biskat_Assistant,

Refer this below link

How pick randomly 1000 rows from datatable where datatable contains 10k

Thanks,
Neelima.

Put all the 5 messages in array like this:
cars = {“Volvo”, “BMW”, “Ford”, “Mazda”};
then use: cars(new Random().Next(0,3)) --> It will give you random string from your array, replace the 3 with your array count.

2 Likes

This worked, thank you very much!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.