New POST data delay after updating CRM Integration template?

Status
Not open for further replies.

AdamTR

Free User
Joined
Mar 24, 2022
Messages
16
Reaction score
1
Hi all,

I've updated my CRM Integration template with a new field, but I am yet to see the new POST data come through to our API.

Is there a known delay in the data POSTed to come through, or is that I've added the new field incorrectly?

XML:
 <PostValues Key="">
          <Value Key="duration" Passes="1" Type="String">[Duration]</Value>
          <Value Key="phone" Passes="1" Type="String">[Number]</Value>
          <Value Key="agent" Passes="1" Type="String">[Agent]</Value>
          <Value Key="callType" Passes="1" Type="String">[CallType]</Value>
          <Value Key="DateTime" Passes="1" Type="String">[DateTime]</Value>
          <Value Key="CustomerID" Passes="1" Type="String">[EntityId]</Value>
          <Value Key="CallStart" Passes="1" Type="String">[CallStartTimeUTC]</Value>
          <Value Key="CallAnswered" Passes="1" Type="String">[CallEstablishedTimeUTC]</Value>
          <Value Key="CallEnd" Passes="1" Type="String">[CallEndTimeUTC]</Value>
        </PostValues>

All of the fields are coming through fine, with the exception of the "CallAnswered" value (this happens to be the one that I have added).

Any tips/pointers would be appreciated.

Many thanks,
 
How did you upload the updated template? You will need to delete the existing one first, and then upload. Or, you can replace the XML file in the 3CX server and restart the 3CX System Server service. The file is located here:
  • Windows: C:\ProgramData\3CX\Instance1\Data\Http\Templates\crm
  • Linux: /var/lib/3cxpbx/Instance1/Data/Http/Templates/crm
 
  • Like
Reactions: AdamTR
Ah okay! So overwriting it does not work - That's fantastic, thank you @edossantos
 
I would have to try it, but I think that overriding from the management console will not work.
 
I would have to try it, but I think that overriding from the management console will not work.
It does if the template file name and CRM name are the same, and the version is greater in the new file. This also keeps the settings intact.
 
  • Like
Reactions: edossantos
Status
Not open for further replies.

Forum statistics

Threads
112,322
Messages
591,889
Members
165,470
Latest member
Robert Lee