- Joined
- Dec 1, 2017
- Messages
- 20
- Reaction score
- 1
I've noticed in the last week, possibly since the last update but it may have been longer that 3CX is not finding existing contacts in dynamics it just creqates new ones.
This is the query in the 3CX intergration:
I've noticed if i copy this request but instead change the 'eq' to endswith() it finds the contacts. The changed request would be:
This returns the contacts. I don't know if it's a change in dynamics or the most recent 3CX update but it seems to have only started happending recently.
This is the query in the 3CX intergration:
Code:
https://[CRMURL]/api/data/v9.1/contacts?$select=firstname,lastname,_parentcustomerid_value,telephone1,telephone2,telephone3,fax,address2_telephone1,address2_telephone2,address2_telephone3,address2_fax,pager,emailaddress1&$filter=telephone1 eq '933689' or telephone2 eq '933689' or telephone3 eq '933689' or fax eq '933689' or address2_telephone1 eq '933689' or address2_telephone2 eq '933689' or address2_telephone3 eq '933689' or address2_fax eq '933689' or pager eq '933689'
I've noticed if i copy this request but instead change the 'eq' to endswith() it finds the contacts. The changed request would be:
Code:
https://[CRMURL]/api/data/v9.1/contacts?$select=firstname,lastname,_parentcustomerid_value,telephone1,telephone2,telephone3,fax,address2_telephone1,address2_telephone2,address2_telephone3,address2_fax,pager,emailaddress1&$filter=endswith(telephone1,'933689') or endswith(telephone2,'933689') or endswith(telephone3,'933689') or endswith(fax,'933689') or endswith(address2_telephone1,'933689') or endswith(address2_telephone2,'933689') or endswith(address2_telephone3,'933689') or endswith(address2_fax,'933689') or endswith(pager,'933689')
This returns the contacts. I don't know if it's a change in dynamics or the most recent 3CX update but it seems to have only started happending recently.