I am looking for some examples and help with how to setup an iterative macro to refresh an API token every 30 minutes before passing data into the API for processing.
I have a standard workflow that is collecting data to pass into the API currently. This workflow also generates the initial token and is passing it to the API. After 30 minutes the token expires and the job fails.
I also have a macro to pass the refresh token data into it and to pull back the refreshed token, but it is generating a new token for each set of data being passed vs. reusing the refreshed token value for a duration of 30 minutes. How can I update the token only once every 30 minutes and to append the value to the data being passed into the API?