# Variable in PDF Attachment from TDR File

**URL:** <https://forums.toadworld.com/t/variable-in-pdf-attachment-from-tdr-file/31909>\
**Category:** Toad Data Point & Toad Intelligence Central\
**Created:** [December 2, 2014, 5:51am UTC](https://forums.toadworld.com/t/variable-in-pdf-attachment-from-tdr-file/31909 "2014-12-02T05:51:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gavin20\_781](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@gavin20\_781](https://forums.toadworld.com/u/gavin20_781)\
**Post date:** [December 2, 2014, 5:51am UTC](https://forums.toadworld.com/t/variable-in-pdf-attachment-from-tdr-file/31909/1 "2014-12-02T05:51:00Z")

</div>

Hello,

Could someone point me in the right direction, preferably providing an example on how to loop/generate a PDF attachment which is emailed based on a variable? The PDF is generated from a Toad Data Report. I'm having difficulties understanding how to loop+group thru a variable in the attachment which is emailed. My expectations being:

> Generate unique PDF attachment for each unique 'requester', grouping all records by requester.

> Email PDF attachment to 'requester' based on their associated 'email address' id which exists in the query/table.

Thank you

---

<div class="post-metadata">

**Author:** ![gavin20\_781](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@gavin20\_781](https://forums.toadworld.com/u/gavin20_781)\
**Post date:** [December 2, 2014, 8:07am UTC](https://forums.toadworld.com/t/variable-in-pdf-attachment-from-tdr-file/31909/2 "2014-12-02T08:07:27Z")

</div>

Answered my own question - figured it out from a previous post 😃

[www.toadworld.com/…/20420.aspx](http://www.toadworld.com/products/toad-data-point/f/36/t/20420.aspx)
