# When I Use Data from Table, No Data is Being Pulled

Whenever you use data from tables as source, you need to use the building block [start-repeat](https://docs.zerowork.io/using-zerowork/using-building-blocks/start-repeat "mention") with the loop type [dynamic-loop](https://docs.zerowork.io/using-zerowork/using-building-blocks/start-repeat/dynamic-loop "mention") to make your TaskBot loop through the rows in your table. Alternatively, add a reference to a variable, as variables can be used in any set-up with or without loops.

Consider these three set-ups:

❌ **Won't work: Referencing a table column without loop**

The workflow is set up to open a link and then perform a click action.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2Fdt43ZBEbbrXCZ3j9Q3nD%2FScreenshot%202023-11-22%20at%2016.01.40.png?alt=media&#x26;token=a3ac22cf-b42f-4a88-8034-b0a90bf46b00" alt=""><figcaption></figcaption></figure>

The link in *Open Link* building block refers to a table reference. This won't work because a loop that iterates over the rows is missing.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FLasfgwDSy6C6eSNbhCf7%2FScreenshot%202023-11-22%20at%2016.06.37.png?alt=media&#x26;token=d1932652-2361-4e1c-a837-5cab09ce70ff" alt=""><figcaption></figcaption></figure>

✅ **Works: TaskBot loops through the table**

Workflow set-up now contains a loop.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FbiD3AiS2YInF1tHE7fy5%2FScreenshot%202023-11-22%20at%2016.02.52.png?alt=media&#x26;token=10ab93a4-7e4c-4571-be95-66795ed95f50" alt=""><figcaption></figcaption></figure>

The loop type is dynamic in order to iterate over table's rows.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2F8QHLSzj03T1AIg1wOUxD%2FScreenshot%202023-11-22%20at%2016.03.08.png?alt=media&#x26;token=c0a50401-2384-492c-81d6-66ab20e7ad7c" alt=""><figcaption></figcaption></figure>

✅ **Works: Referencing a variable without loop**

This is the same set-up as in the 1st case.&#x20;

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FcmIJlF9SPzPBzUN8XnPe%2FScreenshot%202023-11-22%20at%2016.07.22.png?alt=media&#x26;token=9404d19c-6400-4d0a-b048-1d4080fcb022" alt=""><figcaption></figcaption></figure>

But the reference is now taken from variables, not from the table. This is correct and will work.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FudHXKJKVfOKQMKpKOGCA%2FScreenshot%202023-11-22%20at%2016.05.24.png?alt=media&#x26;token=74b53484-9b71-4536-95c7-2ee3e45145bc" alt=""><figcaption></figcaption></figure>

#### But I just want to use the first row of the table, I don't need to iterate over all rows

If you don't need to loop through all rows but just want to use the first row from your table (perhaps because you just want to test something), simply enter 1 to the repetition limit:

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FIVtIWrAQVeROFA8FGxGP%2FScreenshot%202023-11-22%20at%2016.10.57.png?alt=media&#x26;token=4c95c1e9-94af-4b60-a361-8ea90eadad7e" alt=""><figcaption></figcaption></figure>
