Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Fetch by query in DAML templatesForum ↗

Fetch by query in DAML templates

App Development3 posts229 viewsLast activity Mar 2022
GT
gtpaulose1OP
Mar 2022

Is there an equivalent function to queryFilter while fetching contracts within a template choice?

SO
Sofia_Faro
Mar 2022

Hi @gtpaulose1,

There is not. In an Update context, you can only fetch by contract id, fetch by key, or lookup by key.

GT
gtpaulose1
Mar 2022

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

← Back to Discussions