- Joined
- Dec 30, 2024
- Messages
- 2
- Reaction score
- 0
I'm having difficulties in integrating 3CX with AgileCRM.
I've got running CallLookup via Agile so authentication works.
But I want after the call to create note in AgileCRM this can be done via curl
and the response is in json format
Logging set to verbose, no matter if I set all variable to hard coded or change skipIf or do some other changes that do not break xml format always got this in logs
3cxSystemService.log
This topic is my last result, because I have no idea what I'm missing
I've got running CallLookup via Agile so authentication works.
But I want after the call to create note in AgileCRM this can be done via curl
Code:
curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST "https://[Domain].agilecrm.com/dev/api/notes/" -d '{ "subject": "Some title", "description": "Description of the note", "contact_ids": ["contactID"], "callType": "INBOUND", "status":"Answered","duration":"75"}' -u username:apikey
Code:
{
"id": note_id,
"created_time": 1736500021,
"subject": "Some subject",
"description": "Note description",
"contact_ids": [
"contactID"
],
"deal_ids": [],
"owner_id": "owner_id",
"entity_type": "note",
"callType": "INBOUND",
"status": "Answered",
"duration": 75,
"domainOwner": {
"id": domain_id,
"domain": "domain",
"email": "owner_email",
"phone": "",
"name": "owner name",
"pic": "https://s3.amazonaws.com/agilecrm/panel/uploaded-logo/,
"schedule_id": "owner_schedule_id",
"calendar_url": "https://firetms.agilecrm.com/calendar/",
"calendarURL": "https://firetms.agilecrm.com/calendar/"
},
"contacts": [
{
"id": contactID,
"type": "PERSON",
"properties": [
{
"type": "SYSTEM",
"name": "first_name",
"value": "contact first name"
},
{
"type": "SYSTEM",
"name": "last_name",
"value": "contact last name"
}
]
}
],
"min": 1,
"sec": 15,
"hour": 0
}
Logging set to verbose, no matter if I set all variable to hard coded or change skipIf or do some other changes that do not break xml format always got this in logs
3cxSystemService.log
Code:
[Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Processing scenario 'ReportCall'.
[Integration.Crm.Engine.BasicAuthHttpClientProvider] CRM: Creating new HttpClient for Basic authentication
[Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Skipping request...
[Integration.Crm.Engine.ResultVariableScenarioProcessor] CRM: Continue with empty matching.
This topic is my last result, because I have no idea what I'm missing