- Joined
- Mar 26, 2020
- Messages
- 15
- Reaction score
- 1
Good morning,
I am new regarding 3CX and now I am testing the functioning of the CRM integration with our custom ERP based on SQL SERVER.
To be clear I set inside CRM Integration the following Lookup SQL Statement:
SELECT contactid, firstname, lastname, companyname, email, phonemobile, phonemobile2, phonehome, phonehome2, phonebusiness, phonebusiness2, phoneother, faxbusiness, faxhome, pager, photourl, IDAnagrafica FROM CX_Contacts WHERE phonebusiness LIKE '% [Number]%' or phonebusiness2 like ' % [Number]% 'or phonemobile LIKE'% [Number]% 'or phonemobile2 LIKE'% [Number]% 'or faxbusiness LIKE'% [Number]% 'or faxbusiness LIKE'% [Number]% 'or faxhome LIKE' % [Number]% '
I have the following questions.
Question 1.
In order to correctly write the WHERE clause of the previous query I would need to understand better the format of the [Number] parameter:
for example my telephone number is 049633656 but as far as I know I do not know which value the parameter [Number] could assume, infact
it could have the Italian prefix 39 with or without the prefix '+' or '00'. Moreover can the [Numbre] have intermediate spaces or other not-digit characters or separator like '+', ' spaces' or separators '-'?
So the combinations for one numbre like '049633656' are many: '049633656' or '049 633-656' or '39049633656' or '0039049633656' or '00 39 049633656'.
On the other hand when I query the database I need to know the format of the [Number] parameter.
So I would like to know if 3cx "cleans" the input number in some way from non-numeric characters and expect only digits.
2. If there were multiple records meeting the WHERE clause criteria of the query, would 3cx take only the first record, correct?
3. Which fields are shown on the display according to the various apps (web app, android app and windows app)?
When I create a new contact besides FirstName and LastName there are other fields that I would like to manage or show during a call, like for example Company, but also Businness (equivalent to department or job?) Or Other (in Other I'd like to insert some useful info in a short text format to the telephone operator such as "PAY ATTENTION TO THIS ONE!").
So how do you know which fields will be shown and how to set their visibility at the time of the call?
Thanks
I am new regarding 3CX and now I am testing the functioning of the CRM integration with our custom ERP based on SQL SERVER.
To be clear I set inside CRM Integration the following Lookup SQL Statement:
SELECT contactid, firstname, lastname, companyname, email, phonemobile, phonemobile2, phonehome, phonehome2, phonebusiness, phonebusiness2, phoneother, faxbusiness, faxhome, pager, photourl, IDAnagrafica FROM CX_Contacts WHERE phonebusiness LIKE '% [Number]%' or phonebusiness2 like ' % [Number]% 'or phonemobile LIKE'% [Number]% 'or phonemobile2 LIKE'% [Number]% 'or faxbusiness LIKE'% [Number]% 'or faxbusiness LIKE'% [Number]% 'or faxhome LIKE' % [Number]% '
I have the following questions.
Question 1.
In order to correctly write the WHERE clause of the previous query I would need to understand better the format of the [Number] parameter:
for example my telephone number is 049633656 but as far as I know I do not know which value the parameter [Number] could assume, infact
it could have the Italian prefix 39 with or without the prefix '+' or '00'. Moreover can the [Numbre] have intermediate spaces or other not-digit characters or separator like '+', ' spaces' or separators '-'?
So the combinations for one numbre like '049633656' are many: '049633656' or '049 633-656' or '39049633656' or '0039049633656' or '00 39 049633656'.
On the other hand when I query the database I need to know the format of the [Number] parameter.
So I would like to know if 3cx "cleans" the input number in some way from non-numeric characters and expect only digits.
2. If there were multiple records meeting the WHERE clause criteria of the query, would 3cx take only the first record, correct?
3. Which fields are shown on the display according to the various apps (web app, android app and windows app)?
When I create a new contact besides FirstName and LastName there are other fields that I would like to manage or show during a call, like for example Company, but also Businness (equivalent to department or job?) Or Other (in Other I'd like to insert some useful info in a short text format to the telephone operator such as "PAY ATTENTION TO THIS ONE!").
So how do you know which fields will be shown and how to set their visibility at the time of the call?
Thanks