-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchapter47.amp
More file actions
29 lines (22 loc) · 930 Bytes
/
chapter47.amp
File metadata and controls
29 lines (22 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
%%[
/* Declare variables */
Var @rows, @rowCount, @filterExtId
/* Set the filter external ID to get the relevant data */
set @filterExtId = "a1b2c3d4-56e7-890f-gh12-ijklmnop3456"
/* Execute the filter to retrieve rows based on the external ID */
set @rows = ExecuteFilter(@filterExtId)
/* Get the number of rows returned by the filter */
set @rowCount = RowCount(@rows)
/* Check if any rows were returned */
If @rowCount > 0 then
/* Loop through each row of the returned data */
For @counter = 1 to @rowCount do
/* Get the current row based on the counter */
set @row = Row(@rows, @counter)
/* Retrieve specific fields from the row */
{{columnAssignments}}
/* Optionally: you can output these values for debugging or further use */
OutputLine(concat({{outputLineColumns}}))
Next @counter
EndIf
]%%