Antoine CASTEX
Antoine CASTEX

Reputation: 25

Google Cloud Workflows API result with nextPageToken

In Cloud Workflows, I have to

call an API this API returns a lot of results iterate over that through the nextPageToken

I was thinking maybe to use switch/condition to do a while nextPageToken exist,

Like: the condition is result.nextPageToken (supposing that it exist)

It seems that it doesn't work

Upvotes: 2

Views: 345

Answers (1)

Pentium10
Pentium10

Reputation: 208012

Well essentially you have a map and you need to check for the existence of a key.

 switch:
        - condition: ${not("nextPageToken" in result)}
          next: NextPageMissing

Upvotes: 0

Related Questions