'Is it possible to create a loop within a loop in order to get all the finance and expenses lines in the project? when filling a docgen template

I am trying to create a word document using docgen functionality. The document is created in the Object Project, I need to get multiple lines from the Objects Finance & Expenses, my idea is to create a loop within a loop. I would like to know if this is possible.

This image shows the loop that I created but it only shows the expenses line



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source