- Joined
- Oct 17, 2019
- Messages
- 5
- Reaction score
- 0
Many thanks up front for all the assistance.
So I have a template that it says is working but get this error:
CRM Integration is working OK but contact number does not exist. Check log for more info or try a different number.
I've look at other solutions and have tried to use those troubleshooting examples but still am not having luck.
I can lookup the contact in the CRM and return back the ContactID but it just never seems like 3cx knows anything about what that ContactID means. Also, how would 3cx know that contact id exists anyway because it is in the CRM system and not in 3cx?
In the templates it looks like the create contact scenerios take a contact id. Is that the new contact id that I should put somewhere in the CRM record to tie it to the 3cx system? When I attempted to retrieve the value in the CRM there was nothing in it.
Overall I feel pretty good in understanding the template itself and there are lots of example templates the part I'm confused on is what exactly to return back and how 3cx knows what to do with the output values. Also how the contacts in the 3cx system are tied to the CRM.
I've attached the template I'm using scrubbed of url/auth info.
Finally the ReportCall scenario never seems to fire. I've made sure to check it in the template test. The URL i specify in the template never even gets called. I had read somewhere that it won't fire in the test ever and then I read somewhere else it only works if a record is found in the 3cx system. Can I get some clarification on the best way to test the logger?
All the help is appreciated. I feel like I'm getting close!
The result I'm currently getting in the test of the CRM integration tool is below:
Started scenario with empty id
Started Auth
Request text: https://os.isp.XXXXXXXXXXXXXX.com/api/authentication/oauth2/token
Request form value grant_type set to password
Request form value client_id set to xxxxxxxxxxxxxxxxxxxxxxxxxxx
Request form value client_secret set to xxxxxxxxxxxxxxxxxxxxxx
Request form value username set to [email protected]
Request form value password set to xxxx!
Response text: {"access_token": "xxxxxxxxxxxxxxxx", "expires_in": 3600, "token_type": "Bearer", "scope": "", "refresh_token": "LPrg7HxxxxxxxxxxxxxxxaTJamAWKNvb"}
Response finished
Variable AccessToken set to GCQlap7SxxsasdasdasdZDSSDSADASXXXSAA
Variable ExpiresIn set to 3600
Finished Auth
Request text: https://os.isp.XXXXXXXXXXXXXXXXXX.com/api/custom/call/contact?phone=551234
Response text: {
"endpoint": "/api/custom/call/contact",
"result": {
"CompanyName": "XXCVCVCVVV",
"ContactID": 58221,
"ContactURL": "https://os.isp.XXXXX.com/web#id=58221&action=118&model=res.partner&view_type=form&menu_id=94",
"Email": "[email protected]",
"FirstName": "J",
"LastName": "dfdsf",
"PhoneBusiness": "(304) 555-1234",
"PhoneMobile": ""
}
}
Response finished
Finished scenario with empty id
Started CreateContactRecord
Request text: https://os.isp.sdfsadfdfd/api/custom/call/create_contact?phone=555-1234
Request form value FirstName set to First Name
Request form value LastName set to Call 555-1234
Request form value Phone set to 555-1234
Response text: {
"endpoint": "/api/custom/call/create_contact",
"result": {
"ContactID": 82051,
"FirstName": "First Name",
"LastName": "Call 555-1234"
}
}
Response finished
Finished CreateContactRecord
Result obtained
So I have a template that it says is working but get this error:
CRM Integration is working OK but contact number does not exist. Check log for more info or try a different number.
I've look at other solutions and have tried to use those troubleshooting examples but still am not having luck.
I can lookup the contact in the CRM and return back the ContactID but it just never seems like 3cx knows anything about what that ContactID means. Also, how would 3cx know that contact id exists anyway because it is in the CRM system and not in 3cx?
In the templates it looks like the create contact scenerios take a contact id. Is that the new contact id that I should put somewhere in the CRM record to tie it to the 3cx system? When I attempted to retrieve the value in the CRM there was nothing in it.
Overall I feel pretty good in understanding the template itself and there are lots of example templates the part I'm confused on is what exactly to return back and how 3cx knows what to do with the output values. Also how the contacts in the 3cx system are tied to the CRM.
I've attached the template I'm using scrubbed of url/auth info.
Finally the ReportCall scenario never seems to fire. I've made sure to check it in the template test. The URL i specify in the template never even gets called. I had read somewhere that it won't fire in the test ever and then I read somewhere else it only works if a record is found in the 3cx system. Can I get some clarification on the best way to test the logger?
All the help is appreciated. I feel like I'm getting close!
The result I'm currently getting in the test of the CRM integration tool is below:
Started scenario with empty id
Started Auth
Request text: https://os.isp.XXXXXXXXXXXXXX.com/api/authentication/oauth2/token
Request form value grant_type set to password
Request form value client_id set to xxxxxxxxxxxxxxxxxxxxxxxxxxx
Request form value client_secret set to xxxxxxxxxxxxxxxxxxxxxx
Request form value username set to [email protected]
Request form value password set to xxxx!
Response text: {"access_token": "xxxxxxxxxxxxxxxx", "expires_in": 3600, "token_type": "Bearer", "scope": "", "refresh_token": "LPrg7HxxxxxxxxxxxxxxxaTJamAWKNvb"}
Response finished
Variable AccessToken set to GCQlap7SxxsasdasdasdZDSSDSADASXXXSAA
Variable ExpiresIn set to 3600
Finished Auth
Request text: https://os.isp.XXXXXXXXXXXXXXXXXX.com/api/custom/call/contact?phone=551234
Response text: {
"endpoint": "/api/custom/call/contact",
"result": {
"CompanyName": "XXCVCVCVVV",
"ContactID": 58221,
"ContactURL": "https://os.isp.XXXXX.com/web#id=58221&action=118&model=res.partner&view_type=form&menu_id=94",
"Email": "[email protected]",
"FirstName": "J",
"LastName": "dfdsf",
"PhoneBusiness": "(304) 555-1234",
"PhoneMobile": ""
}
}
Response finished
Finished scenario with empty id
Started CreateContactRecord
Request text: https://os.isp.sdfsadfdfd/api/custom/call/create_contact?phone=555-1234
Request form value FirstName set to First Name
Request form value LastName set to Call 555-1234
Request form value Phone set to 555-1234
Response text: {
"endpoint": "/api/custom/call/create_contact",
"result": {
"ContactID": 82051,
"FirstName": "First Name",
"LastName": "Call 555-1234"
}
}
Response finished
Finished CreateContactRecord
Result obtained