If you haven’t, sign-up for the account, and you’ll see the option of Share New workflow. You can add a title, description as well as paste this workflow.
Sorry @jan, by codes I meant random strings generated by me.
So for example, I have the following:
1234
1235
1236
1237
1238
1239
1240
These are actually staff ID’s which I’m using N8N to assign tickets and to - I’d like to use a script that randomly selects one of these so that the same person isn’t constantly bombarded with tickets. I hope that makes sense.
Those codes never change, so I could use them directly in the function if easier. However, getting them from another http request would make it easier to manage should a new member of staff join. Each time the function gets run I’d like it to randomly select any one of those codes and serve it for the next node, rather than multiple items for each.
What would I do if I queried this data from somewhere?
I realized that through Edit JavaScript Code it is not possible to get information received in n8n