Hello @Abhijit Shrikhande ,
Thanks for the question and using MS Q&A platform.
As I understand you want help making pipeline logic to renew tokens for your copy in an efficient way.
The base requirement you gave is to renew token every 50 minutes. We can do this separate from the ForEach copy loop, because everything points to the same variable you store token in.
Below I have a proposal diagram.
We can use an Until loop to wait 50 minutes, then fetch and store token (exact same way you already have). It will repeat until something tells it to stop. We need something for this. Create a boolean type variable, with default value of true.
This will be used to tell the until loop whether to repeat or stop. See diagram for implemtation in untl activity.
We need to change the value to false after the ForEach loop ends, no matter success or failure. Use a Completion dependency to link the ForEach to a Set Variable. The Set Variable sets to false the boolean variable.
If you are copying from a REST source, make sure the copy does not take more than 50 minutes. The copy only checks the token variable when it starts. I don't think the pagination checks for new values between pages.
Please do let me if you have any queries.
Thanks
Martin
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators