Custom integration with AgileCRM

fireTMS

Customer
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
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
and the response is in json format
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
 

Attachments

Please delete this thread... I don't want to see that system ever again... That crap stored xml and used first that was uploaded, so my changes never had the chance to work. After deleting integration and reuploading file it started to work. Pathetic.
 
Please delete this thread... I don't want to see that system ever again... That crap stored xml and used first that was uploaded, so my changes never had the chance to work. After deleting integration and reuploading file it started to work. Pathetic.
Restart the SystemService when changing the template or modifying it. It is cached in memory.

It's not pathetic, you would know if you had done research on the forums as it was mentioned multiple times.
 

Forum statistics

Threads
112,320
Messages
591,865
Members
165,463
Latest member
ICTSupport@bedfordgirlssc