Passing Index - Schedule Workflow on List

How do i send the index of the current iteration to the API?

Why do you need to?

to pass it to an external api. my prompts are in a list [p1, p2, p3 etc.]. I want to send 1 prompt at a time instead of sending the entire list.

You don’t need an index for that… just use ‘This Text’ as the prompt to include in the API call…

that works. thanks!

1 Like

Hey! I think there may be a use case to pass this index for an entry in a list along to a separate workflow when doing things like getting a list of scores from a leaderboard and passing the score data and the score position to another workflow for user notifications. Can anyone think of a standard way to get the index?

1 Like

I am looking for this too!