You can use a Data Table Lookup within Architect to search your data table for a particular variable.
So if you wanted to do this by DNIS as it sounds like you are looking to do, you could use the system variable Call.CalledAddressOriginal, keeping in mind that you'll need to make sure that the data in your table it is meant to match against is consistent with the format of the data within the variable.
For example, make sure both are in E.164 format.
This is used as the input variable, which should be set to match to the column in your data table.
From there, you can assign the Found Outputs (Which will also correspond to the columns in your table) to variables you can then use in your call flow.
You can then use a decision or switch statement to direct the interaction to the appropriate call flow.
With the example you indicated here, you could do something like assign Country as a found output to a variable Flow.CountryCode
The decision block could then evaluate: Flow.CountryCode == "CA"
Hopefully this is helpful to get you started.
Thanks,
Matt
------------------------------
Matt Riedl
AdaptHealth LLC
https://www.credly.com/badges/4823ffbe-4cfc-4552-bcb0-0506a0dc978c/public_urlhttps://www.credly.com/badges/4a90f46f-6c8e-4863-8e05-ea08701328ca/public_url------------------------------
Original Message:
Sent: 10-26-2022 09:34
From: Albert Blais
Subject: Data Table lookup and set a value
Hello All
I have been trough some of the training video's and am looking for some direction. since i cant find what i need.
Our center takes calls for US and Canada and need to be able to reference a data table and based off of the location direct the call to a specific flow one for US and one for Canada

I will as well need to do the same for Known toll free numbers (will be in a different table but came ) but would need to validate the full ANI but would be the same setup as the screenshot above
Thanks
#ArchitectureandDesign
------------------------------
Albert Blais
Solera Holdings, LLC
------------------------------