Fetch by query in DAML templates
- gtpaulose1OP
Is there an equivalent function to queryFilter while fetching contracts within a template choice?
- Sofia_Faro
Hi @gtpaulose1,
There is not. In an Update context, you can only fetch by contract id, fetch by key, or lookup by key.
- gtpaulose1
Is this is in the roadmao? Smart contract automation becomes very cumbersome otherwise because i have to use an off-chain API to perform the query before interacting with a choice