- Joined
- Feb 4, 2025
- Messages
- 24
- Reaction score
- 4
Hy everybody.
I've been trying to use the 3cx crm wizard to send the call journalist to a crm through api request with json format.
I've tried to mount the body request this way :
{ "Phone" : [Number] , "Duration" : 5 , "Agent" : [Agent] , "StartDate" : "[CallStartTimeLocal]" , "EndDate" : "[CallEndTimeLocal]" , "Direction" : "[CallDirection]" , "Inbound" : "" , "Outbound" : "" , "MissedCall" : "" , "NotAnsweredOutboundCall" : "" }
Trying the wizard with Parameter Values to check if the request is well formed, I found this result:
{ "Phone" : 1234567890 , "Duration" : 5 , "Agent" : 100 , "StartDate" : "04/02/2025 10:08:45 , "EndDate" : 04/02/2025 10:13:45 , "Direction" : Inbound" , "Inbound" : "" , "Outbound" : "" , "MissedCall" : "" , "NotAnsweredOutboundCall" : "" }
The problem is the quotes on some fields disapear and this makes the request fail.
How could I avoid this problem?
Kind Regards.
I've been trying to use the 3cx crm wizard to send the call journalist to a crm through api request with json format.
I've tried to mount the body request this way :
{ "Phone" : [Number] , "Duration" : 5 , "Agent" : [Agent] , "StartDate" : "[CallStartTimeLocal]" , "EndDate" : "[CallEndTimeLocal]" , "Direction" : "[CallDirection]" , "Inbound" : "" , "Outbound" : "" , "MissedCall" : "" , "NotAnsweredOutboundCall" : "" }
Trying the wizard with Parameter Values to check if the request is well formed, I found this result:
{ "Phone" : 1234567890 , "Duration" : 5 , "Agent" : 100 , "StartDate" : "04/02/2025 10:08:45 , "EndDate" : 04/02/2025 10:13:45 , "Direction" : Inbound" , "Inbound" : "" , "Outbound" : "" , "MissedCall" : "" , "NotAnsweredOutboundCall" : "" }
The problem is the quotes on some fields disapear and this makes the request fail.
How could I avoid this problem?
Kind Regards.