greychain Gold Partner Advanced Certified Joined Jul 13, 2018 Messages 779 Reaction score 122 Mar 1, 2022 #1 Attached is an example of data returned from a phone number lookup. How would I select the first entry [0]. What would the rule group be for this also what is the purpose of a rule group?
Attached is an example of data returned from a phone number lookup. How would I select the first entry [0]. What would the rule group be for this also what is the purpose of a rule group?
Evolute IT 3CX MVP Gold Partner Advanced Certified Joined Feb 6, 2018 Messages 11,249 Reaction score 7,113 Mar 1, 2022 #2 <Rule Type="Any">customerList.customerId</Rule> It should detect the array and match with this. That's how it knows it has results. Then, set the path for your variable to the same kind. 3CX should take care of grabbing the array element.
<Rule Type="Any">customerList.customerId</Rule> It should detect the array and match with this. That's how it knows it has results. Then, set the path for your variable to the same kind. 3CX should take care of grabbing the array element.
greychain Gold Partner Advanced Certified Joined Jul 13, 2018 Messages 779 Reaction score 122 Mar 2, 2022 #3 I can get some results using customerList.customer.customerId as the rule but am unable to access a value that's path is customerList.customer.addresses.phoneNumber2 even though I can create a variable and output from the results.
I can get some results using customerList.customer.customerId as the rule but am unable to access a value that's path is customerList.customer.addresses.phoneNumber2 even though I can create a variable and output from the results.
edossantos Support Team Staff member Joined Jun 27, 2007 Messages 7,804 Reaction score 2,950 Mar 8, 2022 #4 The only way to select a specific element in an array is using filters. You can check the template we provide for Bitrix to understand how we use this. Also, here you have details of the XML required for that: https://www.3cx.com/docs/server-side-crm-template-xml-description/#h.sx7zatsaqm8l Reactions: Evolute IT
The only way to select a specific element in an array is using filters. You can check the template we provide for Bitrix to understand how we use this. Also, here you have details of the XML required for that: https://www.3cx.com/docs/server-side-crm-template-xml-description/#h.sx7zatsaqm8l