What does the flow Execution Data show for the values being compared in the common module?
George Ganahl GCP, GCSME, ICCE, ICHD, etc.
Original Message:
Sent: 11-26-2024 14:20
From: John Francis
Subject: ToPhoneNumber(Call.Ani)
I think everything looks good now with the Variable. Unfortunately, the call is not getting blocked and goes to Active Queue.



------------------------------
John Francis
NA
Original Message:
Sent: 11-19-2024 12:41
From: Vaun McCarthy
Subject: ToPhoneNumber(Call.Ani)
Looks to me like you've created this variable as a Boolean type instead of string.
------------------------------
Vaun McCarthy
Original Message:
Sent: 11-19-2024 11:53
From: John Francis
Subject: ToPhoneNumber(Call.Ani)
Yes, I did get that location and added Call.Ani, still I get sorry an error occurred.

------------------------------
John Francis
NA
Original Message:
Sent: 11-19-2024 10:22
From: Jasper Donovan
Subject: ToPhoneNumber(Call.Ani)
It looks like you have nor defined your variable correct in your common flow
You need to define input and output.
Click on the variable name in the update and this pop-up window should open where you check and correct the varible.
Remember to save and publish the common module. You should then see it in your inbound flow when you edit

------------------------------
Jasper Donovan
na
Original Message:
Sent: 11-19-2024 08:56
From: John Francis
Subject: ToPhoneNumber(Call.Ani)
Hi Jasper,
Thanks for this but I do not see the option for Input "Call.ANI" for the same in my side.

My Flow

------------------------------
John Francis
NA
Original Message:
Sent: 11-19-2024 03:40
From: Jasper Donovan
Subject: ToPhoneNumber(Call.Ani)
Hi Francis
Here is our setup which is not advanced as Antons
In the in-que flow we do a standard common flow

Here is the common flow

------------------------------
Jasper Donovan
na
Original Message:
Sent: 11-14-2024 17:34
From: John Francis
Subject: ToPhoneNumber(Call.Ani)
I was wondering whether I should have the decision here? Since I still get the error message and it kicked me out as it came in the flow.



------------------------------
John Francis
NA
Original Message:
Sent: 11-14-2024 16:33
From: Anton Vroon
Subject: ToPhoneNumber(Call.Ani)
Sorry, I probably explained it poorly.
For the Call Common Module action, don't use call.ani as the Input, use another variable, even if that variable is set to Call.Ani. Call.Ani is a system variable, and in the past i've had issues with those working as common module inputs. - Adding some participant data like I have here just lets you confirm what the value was before the common module, you can do the same with flow execution data instead.
Inbound Flow:

Then in the common module, before applying any functions like substring, again write it to participant data, so you can compare the value you are sending to the common module with the value the common module receives.
Common Module:

Edit: This is just to help you figure out what is happening, from there, as others have mentioned you can use IsSet or IsNotSetOrEmpty functions to then decide what to do, but for calls you should always have a call.ani right, so to me it sounds more like that value is either not set before hand or not passing across, and i've had that issue with system variables, so this is just a good way to confirm if that is happening or not.
Edit2: And I would create a phone variable, with call.ani as the expression in the inbound flow, and just pass the phone number variable as input to the common module, rather than the string, then doing the ToPhoneNumber function in the common module. But that is just a minor thing.
------------------------------
Anton Vroon
Original Message:
Sent: 11-14-2024 16:20
From: John Francis
Subject: ToPhoneNumber(Call.Ani)
I was told that in the Inbound Call Flow that there was no Input, So I add this section which is marked in red. Does that make any sense?

------------------------------
John Francis
NA
Original Message:
Sent: 11-14-2024 15:28
From: Anton Vroon
Subject: ToPhoneNumber(Call.Ani)
Hi John
In the calling flow, instead of putting call.ani as the input, can you try, setting another variable to call.ani eg Task.CallingNumber = Call.Ani, and then set Task.CallingNumber to the input. I've had some issues in the past with using system variables as inputs to common modules so almost always pass it to another variable first.
Would also recommend you write participant data for call.ani or Task.CallingNumber before going to common module so you can see the value as it is before the common module. And the write participant data once in the common module to see that input is carried across.
If not check your variable assignment in the Common module, you should have something like Common.CallerID = Common.CallerID
------------------------------
Anton Vroon
Original Message:
Sent: 11-14-2024 14:49
From: John Francis
Subject: ToPhoneNumber(Call.Ani)
Jasper I set it up as you have done. I have a call routing coming into to Inbound Call Flow where I am calling the Common Module. But, as soon as it comes in it says there is an error and kicks me out. So, I am not sure what is wrong with what I have done. I opened a ticket with Genesys support and their response is as following:
I checked the logs and I see that the Common Module went to error handling as soon as it went to Action 12. The ToString(Common.CallerID) on the below expression does not have a value.
Substring(ToString(Common.CallerID),4,20)
Can you confirm were this should be assigned with a value? Architect does cannot handle variables will null or empty values. Once these variables are called, and error will be thrown and will take the Error Handling setting of the flow. The Error I see is focused on Block 12 of the Blacklisted number Common Module. The Variable Common.CallerID is being assigned to the same variable which I believe does not have a value yet. Is there is reason why that is designed that way? We need to make sure that Common.CallerID already have a value before we can assign it to avoid the flow error.
I am not following where I am doing wrong?
------------------------------
John Francis
NA
Original Message:
Sent: 11-07-2024 03:52
From: Jasper Donovan
Subject: ToPhoneNumber(Call.Ani)
We have a simple common module for blacklisted numbers. We converted call.ani to a string and removed the Tel: for the DT lookup using Substring(ToString(Common.CallerID),4,20)

------------------------------
Jasper Donovan
na
Original Message:
Sent: 11-06-2024 14:13
From: John Francis
Subject: ToPhoneNumber(Call.Ani)
I am trying to use this as an expression under data table and I am getting an error
The variable reference 'Call.Ani' at position 15 is not valid.
#ArchitectureandDesign
#SystemAdministration
------------------------------
John Francis
NA
------------------------------