CRM Template I can't get data from a list

Status
Not open for further replies.

dperuzzo

Platinum Partner
Joined
Aug 13, 2020
Messages
6
Reaction score
0
Hello !

I created an integration model for my own CRM.
I am not able to get data from a list for PhoneBusiness

How can I set this?

1597438035169.png
1597438243457.png
 

Attachments

  • 1597438210226.png
    1597438210226.png
    69.2 KB · Views: 6
I tried that. It also didn't work.

1597448545351.png1597448545351.png
 
The only way is filtering the record. If you can change the web server response, then this is an example of how you should generate the response:
JSON:
"phones": [
{
"number": "79692284200",
"type": "work"
},
{
"number": "89692284201",
"type": "mobile"
}
]

As you can see, each item in the array specifies the phone type. Then you can use the filters as follows in the XML template when defining the variables:
XML:
<Variable Name="PhoneBusiness" Path="customers.phones.number">
<Filter>
<Rule Type="Equals" Ethalon="work">customers.phones.type</Rule>
</Filter>
</Variable>
<Variable Name="PhoneMobile" Path="customers.phones.number">
<Filter>
<Rule Type="Equals" Ethalon="mobile">customers.phones.type</Rule>
</Filter>
</Variable>
 
I have no way to change the CRM response.
Is there any other way to obtain this information?
 
What you can do is defining an Output with the number being searched, this way the returned record will be considered a match. For example:
<Output Type="PhoneBusiness" Value="[Number]"/>

However, please note that if the contact has other phones, they will not be added to the 3CX Contact when more than 1 phone is returned in the array.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,325
Messages
591,898
Members
165,477
Latest member
Mueller