- Joined
- Jul 27, 2020
- Messages
- 12
- Reaction score
- 1
Good day!
I'm trying to create a template for integration with CRM. The JSON data that i have to sent for logging contains an array of objects, and so i've got combinations [{ and }]. Template generation rules say that i must replace [ with {{. Thus I get {{{ instead of [{ and Template Generation Wizzard tells me "This field should be formatted as JSON". What should I do to make this work? This is what i'm putting in the Expression Builder:
{
"apiKey": "uwEjOBDO558XySr9dumccfJwONGyFlVB",
"calls": {{ {
"date": "[[DateTime].ToString("yyyy-MM-ddTHH:mm:ssZ")]",
"type": "in",
"result": "answered",
"externalId": "148822801", <- here has to be call's id in 3CX, how do I get it?
"code": "[Agent]",
"phone": "[Number]"
} }}
}
The red text i added here, that's my second question. My CRM requires the ID of the call in 3CX. How do i get it?
I'm trying to create a template for integration with CRM. The JSON data that i have to sent for logging contains an array of objects, and so i've got combinations [{ and }]. Template generation rules say that i must replace [ with {{. Thus I get {{{ instead of [{ and Template Generation Wizzard tells me "This field should be formatted as JSON". What should I do to make this work? This is what i'm putting in the Expression Builder:
{
"apiKey": "uwEjOBDO558XySr9dumccfJwONGyFlVB",
"calls": {{ {
"date": "[[DateTime].ToString("yyyy-MM-ddTHH:mm:ssZ")]",
"type": "in",
"result": "answered",
"externalId": "148822801", <- here has to be call's id in 3CX, how do I get it?
"code": "[Agent]",
"phone": "[Number]"
} }}
}
The red text i added here, that's my second question. My CRM requires the ID of the call in 3CX. How do i get it?
Last edited:
