Forum Discussion
Using List.Generate for Token-Based API Call
- 1 year ago
Your syntax doesn't look right to me.
Compare to the examples in this highly-related article:
How to use List.Generate to make API Calls in Power Query MCode snippet from the article:
List.Generate( () => [ Offset = 100, Pokemon = GetPokemon(0) ], each [Offset] <= 200, each [ Pokemon = GetPokemon( [Offset] ), Offset = [Offset] + 100 ], each [Pokemon] )Your code should probably look more like this:
List.Generate( () => [ token = "", results = Output("") ], each [results][EarliestEntryDate] > Date.FromText("6/15/2025"), each [ token = [results][continuationToken], results = Output(token) ], each [results] )
Hi rdorsey ,
Could you let us know if your issue has been resolved or if you are still experiencing difficulties? Your feedback is valuable to the community and can help others facing similar problems.
Thank You.
Hi rdorsey,
As we haven’t heard back from you, we wanted to kindly follow up to check if the issue is resolved? or let us know if you need any further assistance.
If any response helped in resolving the issue, please mark it as "Accept as solution" and give kudos if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa