# How to use GetNext block in the Fetch URL block

**URL:** <https://community.brightpattern.com/t/how-to-use-getnext-block-in-the-fetch-url-block/867>\
**Category:** API and Integrations\
**Tags:** scenario, variable, fetchurl\
**Created:** [March 18, 2024, 3:22pm UTC](https://community.brightpattern.com/t/how-to-use-getnext-block-in-the-fetch-url-block/867 "2024-03-18T15:22:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kefilwe](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@Kefilwe](https://community.brightpattern.com/u/Kefilwe)\
**Post date:** [March 18, 2024, 3:22pm UTC](https://community.brightpattern.com/t/how-to-use-getnext-block-in-the-fetch-url-block/867/1 "2024-03-18T15:22:59Z")

</div>

I have an object that contains arrays and I want to access each array after the other. Each array has a text which I want to send out using “send message” and send the other, after the previous one has been answered by customer. Object may have different number of arrays so this has to be dynamic.

Can “GetNext” block within “Fetch URL” block assist in this regard or should I be using something different? If yes, what can I use?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![ivan.malyshkin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.brightpattern.com/ivan.malyshkin/32/8_2.png) [@ivan.malyshkin](https://community.brightpattern.com/u/ivan.malyshkin)\
**Post date:** [May 2, 2024, 7:36pm UTC](https://community.brightpattern.com/t/how-to-use-getnext-block-in-the-fetch-url-block/867/2 "2024-05-02T19:36:03Z")

</div>

This exactly what it should be able to do. is there any issue with the approach ?
