Completed
Access default context

Patrick ONeill
I have setup default context. Numbers for keys and dates for values.
"101": "1/1/2011" and so on. This number is used to decode a serial number. I am super new to this, talking day 1 here. I am simply trying to access the data by using
{{cc.101}} but I get nothing. If I add to the context in the flow, like "hello": "world" and I say {{cc.hello}}, I get world back. Can someone clarify what I am missing??
Didn't find what you were looking for?
New postWas this post helpful?
-
Official commentAlexander Teusz (Cognigy)
Hello Patrick,
Thanks for your community request. You are almost right with your solution, however, when you use a number as a context key accessing this value is a bit different. Please take a look at my example:
Solution:
{{cc["101"]}}
or
{{context["101"]}}
Please find more about the Cognigy Context here: https://docs.cognigy.com/docs/context
This should work for you as well.
Best Regards
Alex
-
Patrick ONeill
THANK YOU!!!
1
Please sign in to leave a comment.
Comments
2 comments