# DAML Trigger access result of exercised choice

**URL:** <https://forum.canton.network/t/daml-trigger-access-result-of-exercised-choice/1918>\
**Category:** App Development\
**Tags:** trigger\
**Created:** [January 11, 2021, 1:13pm UTC](https://forum.canton.network/t/daml-trigger-access-result-of-exercised-choice/1918 "2021-01-11T13:13:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arne\_Gebert](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/arne_gebert/32/1213_2.png) [@Arne\_Gebert](https://forum.canton.network/u/Arne_Gebert)\
**Post date:** [January 11, 2021, 1:13pm UTC](https://forum.canton.network/t/daml-trigger-access-result-of-exercised-choice/1918/1 "2021-01-11T13:13:04Z")

</div>

Using DAML Triggers, I want to exercise a choice and then access the return of the exercised choice. (I then want to make the further trigger execution dependent on the returned result.)  
So something like:

```haskell
result <- dedupExercise cid choice

```

Is this possible? Looking at the [documentation](https://docs.daml.com/1.0.0/triggers/trigger-docs.html), I don’t see a way to do this at the moment.

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [January 11, 2021, 1:21pm UTC](https://forum.canton.network/t/daml-trigger-access-result-of-exercised-choice/1918/2 "2021-01-11T13:21:50Z")

</div>

Triggers submit commands asynchronously so you cannot get access to the result of a choice exercise.

I recommend thinking of triggers as state-based automation: If your trigger should depend on something, that information should be reflected in the ACS and not only as part of the exercise result.

---

<div class="post-metadata">

**Author:** ![Arne\_Gebert](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/arne_gebert/32/1213_2.png) [@Arne\_Gebert](https://forum.canton.network/u/Arne_Gebert)\
**Post date:** [January 11, 2021, 3:33pm UTC](https://forum.canton.network/t/daml-trigger-access-result-of-exercised-choice/1918/3 "2021-01-11T15:33:09Z")

</div>

Thanks! Makes sense, just wanted to make sure.

For my use case, I have now adapted my DAML model such that the `result` is created as a template (thus appears in the ACS) and added a second trigger that checks for the existence of the result (and then executes more logic based on the `result` template).
