クラシックファイルタイプは 2021 年 1 月をもって使用できなくなりました。クラシックファイルを移行することも、PDF をダウンロードすることもできます。詳細はこちら

Retrieve a list of activities for an organization API

回答済み
0

コメント

5件のコメント

  • Jeff Hickey

    Hi Talia Test, You're on the right track with the @nextLink! You can configure the Group Node to loop until you have iterated over all pages of the Retrieve a list of activities for an organization endpoint. Use the URL value in @nextLink to make additional GET requests within the Group Node as needed until all pages are retrieved. After all pages are retrieved, exit the Group Node and continue on with any other logic of your chain.

    0
  • Talia Test

    Hi Jeff! Thank you for your response. Would I then need to change the group command iteration type to "Repeat Until" instead of "List"?And would this be the new chain structure with the @nextlink in the URL field of the new GET command?

    0
  • Jeff Hickey

    Hi Talia Test. You're correct that you'd use the Repeat Util. You could then either configure the rule within the Repeat Util window in the Group to break out of the loop, or include a conditional to check if @nextLink does not have a new URL and an Exit Group Event to break out of the loop.

    There are a few ways to handle this within the Group. For example, you can use the GET command's Previous Response to get the new @nextLink value, or use a Dynamic Chain Variable and update its value with the current URL value.

    0
  • Talia Test

    Thanks Jeff Hickey! I have this chain structure with the following command configurations:

    I think where I am stuck is how to retrieve the previous response from the GET command since it is before the group iteration. Based on your response, I think this ties into the conditional command, which I have left blank as I am not sure how to configure that to check against previous response. Am I correct to use the 'Repeat until @nextlink is blank' logic in the group iterator and the group iteration response for the URL in the second GET command?

     

    It would be great if there was a chain with a similar structure I could follow. Are there any chain templates or previous community posts with a similar structure to mine that could get me on the right track? It would help to see the logic. Thanks again for your help!!

    0
  • Jeff Hickey

    Hi Talia Test,

    There are a couple of ways to configure this. An easy way to do it would be to not have the first GET outside of the Group Node because you want it to always do at least one iteration. Check if a @nextLink value exists and repeat. If a value doesn't exist, then exist the group. You can configure the Group Node to simply just repeat or configure a dynamic chain variable to and check for 'false' (or something similar) and allow the Group Node to continue while the value is not false. I am happy to provide more details if this is not clear.

    0

サインインしてコメントを残してください。