HEY thanks but for some reason the TOC does not keep the Data Merge value on export.
the steps I am doing are:
1 - selecting the data field and applying a paragraph style to it
2 - creating a TOC based on that style (using your screen shots above)
3 - exporting using the data merge
when I open the PDF i only see the field name in the TOC and in the Bookmarks.
I am exporting using the data merge / export to PDF. Am i missing something?
Not sure if you solved this but I thought I'd drop a comment incase anyone else comes here looking for solutions as I'm doing this myself at the moment and this thread really helped.
If you do the data merge after applying the paragraph style and then create the TOC in the document created by the data merge and then export this should work.