A mapped variable does not work in Prompt playback

bwrsmbiz

Customer
Joined
Aug 4, 2021
Messages
8
Reaction score
1
Hello, I am a newbie creating CFD's.
I have created a CFD that starts with a a Web service rest which creates a record on our CRM (Salesforce), I am mapping the created record id into a varible (,callflow$.Created_Call_Id_Record). The record is created just fine.
Then, I have another Web service rest, which retrieves the created record using the callflow$.Created_Call_Id_Record from the previous Rest Service Rest, one of the fields that I have there is the customer's name., I mapped the field into a variable (callflow$.PersonsName)
Then, I have a Prompt Playback object with a text-to-speech with the following content CONCATENATE("Hello ",callflow$.PersonsName)
When I am calling the call script ext, I hear just "Hello", instead of "Hello Joe"
What am I doing wrong here?

I just found out that I am getting a different response for the Web service rest, which is supposed to retrieve the records from salesforce.
It works fine on the Call Flow Designer but not when it triggers from the PBX.
Any guidance?
 
Last edited:
You will need to enable verbose logs, make a test call and see what you can find in the 3CXCallFlow.log file. There you will see all the interactions between 3CX and Salesforce, the JSON sent and received, and you will be able to understand why the name is not being mapped to the variable.
 
It turns out I have to keep the JSON/parser; I thought it could be removed after the fields are mapped.
It works now.
Thank you.
 
Yes, the web service will return JSON, but that's just text if you don't parse it. You need to analyze and get the value you need from it. That's where the JSON / XML Parser component comes in.
 
  • Like
Reactions: Evolute IT

Members Online Now

Forum statistics

Threads
111,835
Messages
589,289
Members
164,666
Latest member
infinititravels