- Joined
- Jan 22, 2024
- Messages
- 22
- Reaction score
- 3
Hello,
I have implemented a custom integration to report calls, using the provided XML template and SQL Statement.
However, calls which should have had CallType = 'Unanswered' or 'Missed', seem not to be logged.
Any idea what is happening?
Template:
SQL Statement:
I have implemented a custom integration to report calls, using the provided XML template and SQL Statement.
However, calls which should have had CallType = 'Unanswered' or 'Missed', seem not to be logged.
Any idea what is happening?
Template:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Crm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Country="US" Name="EventInc Custom Integration" Version="1" SupportsEmojis="true" ListPageSize="0">
<Number Prefix="AsIs" MaxLength="15" />
<Connection MaxConcurrentRequests="2" />
<Parameters>
<Parameter Name="Server" Type="String" Parent="General Configuration" Editor="String" Title="Server:" />
<Parameter Name="Port" Type="String" Parent="General Configuration" Editor="String" Title="Port:" />
<Parameter Name="Database" Type="String" Parent="General Configuration" Editor="String" Title="Database:" />
<Parameter Name="Username" Type="String" Parent="General Configuration" Editor="String" Title="Username:" />
<Parameter Name="Password" Type="Password" Parent="General Configuration" Editor="String" Title="Password:" />
<Parameter Name="ReportCallSQLStatement" Type="String" Parent="General Configuration" Editor="Sql" Title="Call Journaling SQL Statement:" />
</Parameters>
<Authentication Type="No" />
<Scenarios>
<Scenario Id="ReportCall" Type="SQLDatabase">
<Query DatabaseType="PostgreSQL" ConnectionString="Server=[Server];Port=[Port];Database=[Database];User Id=[Username];Password=[Password]" StatementPasses="2" Statement="[ReportCallSQLStatement]" />
<Variables />
<Outputs AllowEmpty="false" />
</Scenario>
</Scenarios>
</Crm>
SQL Statement:
Code:
INSERT INTO calls (agent_extension, agent_firstname, agent_lastname, agent_email, number, call_direction, call_type, call_starttime, call_endtime) VALUES (@Agent, @AgentFirstName, @AgentLastName, @AgentEmail, @Number, @CallDirection, @CallType, @CallEstablishedTimeLocal, @CallEndTimeLocal)
Last edited: