# Data Directive BPM

**URL:** <https://www.epiusers.help/t/data-directive-bpm/77849>\
**Category:** Epicor ERP 10\
**Tags:** bpm\
**Created:** [April 20, 2021, 7:31pm UTC](https://www.epiusers.help/t/data-directive-bpm/77849 "2021-04-20T19:31:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NSP](https://www.epiusers.help/letter_avatar_proxy/v4/letter/n/278dde/32.png) [@NSP](https://www.epiusers.help/u/NSP)\
**Post date:** [April 20, 2021, 7:31pm UTC](https://www.epiusers.help/t/data-directive-bpm/77849/1 "2021-04-20T19:31:33Z")

</div>

Is it possible to access the ttQuoteDtl table for calculation in custom code from - Data Directive, QuoteQty, In-Transaction, Custom Code. I’m working on a BPM to calculate a value at quote entry and need to access both ttQuoteDtl and ttQuoteQty.

---

<div class="post-metadata">

**Author:** ![timshuwy](https://www.epiusers.help/user_avatar/www.epiusers.help/timshuwy/32/90122_2.png) [@timshuwy](https://www.epiusers.help/u/timshuwy)\
**Post date:** [April 20, 2021, 8:27pm UTC](https://www.epiusers.help/t/data-directive-bpm/77849/2 "2021-04-20T20:27:59Z")

</div>

This can get very tricky… data directives only have “access” to the table that they are being triggered by…so if you write a data directive on the QuoteDtl table, you cannot see QuoteQty, or QuoteHed without reading them from the “disk”.  
Typically, you have to write more complex C# code that will go to retrieve all the related data from those tables to do your calculations.

---

<div class="post-metadata">

**Author:** ![NSP](https://www.epiusers.help/letter_avatar_proxy/v4/letter/n/278dde/32.png) [@NSP](https://www.epiusers.help/u/NSP)\
**Post date:** [April 21, 2021, 1:22pm UTC](https://www.epiusers.help/t/data-directive-bpm/77849/3 "2021-04-21T13:22:36Z")

</div>

Thank you for the info.
