Guess I am looking for a way to loop through these records and save each appropriate one (based on ID) as a pdf.
One way to do that:
Create a summary field as Count of primaryKey, and write a script like
# [ find your records ]
# [ sort by sub-summary break field ]
Go to Record/Request [ first ]
Set Variable [
Get ( RecordNumber ) +
GetSummary ( sCountOfPrimaryKey ; subSummaryBreakField )
Find Matching Records [ subSummaryBreakField ; Replace ]
Save Records as PDF [ … ]
Exit Loop if [ $nextGroupAt > Get ( FoundCount ]
Go to Record/Request [ no dialog ; by calculation: $nextGroupAt ]
Perfect solution! Thanks!