Attatchment Template Select expression

Hi,

I have an attachment expression that is not working correctly.

My start expression:
<<Start:SELECT(Plug Insertion and Removal Register[Plug ID],([MostRecent].[Project] = [Project]))>><<[Plug ID]>>
Plug ID is the key column.

Here is an image of the bulk of the template.
3X_4_0_408d3ff6e504fed352f6e124db274331f7921477.jpeg

Here is the result
3X_b_4_b4f38925e9f78493346e8792e3d74e4e90bcadb6.jpeg

The issue is the workflow is not returning multiple rows. But for some odd reason it is returning the key column result of each row, you can see this in the plug id row.

Solved Solved
0 9 207
1 ACCEPTED SOLUTION

For that, put your START statement above your table, and keep the END where it was.

View solution in original post

9 REPLIES 9

AAD 225/1, AAD 351/1, 984 are three separate Plug IDs?

Yes they are three seperate Plug IDโ€™s

Move the <<End>> to your last cell of the table to close the <<Start: ...>> expression properly.
3X_3_9_394426ce719a237f59b997d66269f4707ed73d42.jpeg

My intention here was to get it to build another table for each row.
Does this not work the way I expected?

For that, put your START statement above your table, and keep the END where it was.

So thats what I have been missing!
Thank you!

Hi @LeventK,

Nice catch. Could you please guide, when multiple records are there, does the vertically arranged template add records sideways or does the template create a new vertical two column table ( one for field headings and second one for field values) for each new record?

I think one more option may be to create a horizontal format table as shown below. In the horizontal table template format, each new records get added one below the other.

3X_7_f_7fd61da5e226c430c5e3064727b3ee3a92a7b311.png

@Suvrutt_Gurjar it will repeat the table for each row of data in the template if you explicitly put the <<Start: ...>> and <<End>> expressions outside the table. If not, each row data will be a new line next to each column header. Provided itโ€™s explicitly not needed, I generaly use horizontal table with the 1st row being the headers.

Thank you very much @LeventK for your guidance. Got it.

Top Labels in this Space