Data Merge Scripting
Hi everyone
I am trying to come up with a solution for a time consuming process we have.
The original post here: https://community.adobe.com/t5/indesign/streamline-printing-process/m-p/11735514?page=1#M409925
Had a suggestion to re-post under scripting.

In the image above you can see a snippet of a .csv file containing data merge data and the InDesign file I am connected to
From this file I want to print a series of tax receipts to be posted out
However depending on the person who will receive the receipt, they only need to receive a certain page from the InDesign file.
e.g.
Record 1 - column C contains 'Xmas20' this person should only receive page 1 of the InDesign file or 'Xmas-Master'
Record 2 - column C contains 'Tax20' this person should only receive page 2 of the InDesign file or 'Tax-Master'
For further details, the real data contains 1000s of records and there are dozens of different pages
Any suggestions on how I could accomplish this?
