Hi @Amar Agnihotri ,
Thanks for the question and posting it on Microsoft Q&A platform.
I can think of two options.
- You can use fail activity inside true part in the if condition so that the loop breaks and comes out when the Continuationtoken is null
- You can make use of an until activity, instead of a foreach. Reference
Please revert for any further question on the same.