Hello!
I’m setting up Backend API to send recurring email to a list of users. And each email contains a ‘Question’ derived from a list of questions. I’m doing this to create a personalized quiz sent out via email.
How can I build a workflow to match the two lists?
Some pre-conditions
- The number of users and questions in the list are not defined upfront.
- I want to distribute the questions to users as much as possible, instead of one question got asked all users.
For instance in one set of lists:
User: A, B, C
Question: 1, 2, 3, 4
A possible result would be: A-1, B-2, C-3 (or other order of matches). Questions are distributed to users. I don’t want A-1, B-1 , C-1, unless there are less number of question than number of users. The number of users and the number of questions in the list is dynamic.
I thought of assign iteration number value in the parameter to count the items in the list. But the fact that the number of two list will be identical make it harder to solve…
It would be great to hear how you would approach this case!
Thank you
Ohyoon