Help: Email Body Template

Hello,
I have some hard time for what seems an easy task, but I cannot get to the solution even with support tutorials.

I would like to create an Email Body Template and this is the current result I reach:

My current Template:

Any guidance how I should modify my template to reach that ?

btw I was following this tutorial:

but the sample app related seems missing unfortunately.

Thanks in advance for your support.
Thib

0 3 1,573
3 REPLIES 3

The tutorial you followed is like a level 1 tutorial; youโ€™re asking for the next level, if not the one above that.

In order to get grouping things like that to work, you have to wrap your mind around how to use [_thisrow-1] and the like.

What you need to do is create a singular list (in your order table) of each of the suppliers included inside that order.
Once you have that list, then you can create a <<START:>> inside your template to begin a cycle for each of the suppliers inside that list.

This is where the [_thisrow-1] stuff comes inโ€ฆ

Inside that <<START">>, youโ€™ll then need to call back to the order to grab the list of items from the supplier thatโ€™s โ€œcurrently being processed by the systemโ€ - aka, its inside that supplier.

Youโ€™ll end up with something like this:

  • Your order starts
    • You create a section <<START:>> taking you to the Supplier table
      • You create another <<START:>>, this one a table, to list off each of the appropriate records from the order (that match the current supplier)
      • You end the table
    • You end the Section
  • You end your order

I am aware that a simple listing of what you need to do to make this happen isโ€ฆ minimal instructions, at the least. But as you can tell, in order to get what you want to happen there is a LOT of stuff to get right - and any 1 tiny thing thatโ€™s off will break the whole thing (like all programming).

Thank you very much for your answer.

After some times, I managed to get to the result expected, without using โ€œ[_thisrow-1]โ€ as I was not at ease with this Expression.

How I get to the solution: I added 1 column in the Suppliers table where a marker appear when an Order is associated to it. Then I wrote the โ€˜Email Body Templateโ€™ this way:
3X_7_f_7f1c97a73009df210cdb85991eee3a0b666f02c6.png

(the โ€œMarkerโ€ I talked about above is the โ€˜Any Orderโ€™ column).

And here the result:

Hopefully it can be useful for someone else.

Nice one! 3X_d_5_d51363a862e7ab883241c312ac5d7f271579cdd3.gif

Top Labels in this Space