# Make fields nested inside a data type from template parameters available for autowiring/autobinding in choice scope

**URL:** <https://forum.canton.network/t/make-fields-nested-inside-a-data-type-from-template-parameters-available-for-autowiring-autobinding-in-choice-scope/3044>\
**Category:** App Development\
**Tags:** daml\
**Created:** [August 30, 2021, 5:56pm UTC](https://forum.canton.network/t/make-fields-nested-inside-a-data-type-from-template-parameters-available-for-autowiring-autobinding-in-choice-scope/3044 "2021-08-30T17:56:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stephen/32/102_2.png) [@Stephen](https://forum.canton.network/u/Stephen)\
**Post date:** [August 30, 2021, 7:18pm UTC](https://forum.canton.network/t/make-fields-nested-inside-a-data-type-from-template-parameters-available-for-autowiring-autobinding-in-choice-scope/3044/5 "2021-08-30T19:18:50Z")

</div>

TBQH it is _less_ devilish than `..` in record-creation; introducing a bunch of bindings seems much less scary to me than automatically using whatever bindings are laying around. Certainly one of the unstated reasons I posted [about using records more](https://discuss.daml.com/t/workflow-template-factoring-with-records/2608) was to encourage a Daml style that wouldn’t lean so heavily on `..` record creation.

Then again I come from the “DI is useless, just pass arguments to a function” school of thought.

@meet On a more serious note, if the same set of fields happens to be used in several places, it may be clearer to factor that set of fields to a record, and then pass it explicitly. Of course that totally depends on the other code details not seen here.

---

_[View the full topic](https://forum.canton.network/t/make-fields-nested-inside-a-data-type-from-template-parameters-available-for-autowiring-autobinding-in-choice-scope/3044)._
