- Joined
- Sep 23, 2020
- Messages
- 23
- Reaction score
- 2
Trying to build out our CRM integration and I need a sanity check. I'm at a stage where we're trying to get the call journaling to work and need to use the CallType expression, but no matter how or where I use it, I get slapped with the unknown expression: CallType error every time I run the test. I am only using it in the ReportCall scenario.

Can someone review the below XML, specifically the ReportCall scenario?
I have also tried using it in the SkipIf= like so, but still get the same unknown expression error:
Can someone review the below XML, specifically the ReportCall scenario?
Code:
<?xml version="1.0"?>
<Crm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Country="US" Name="Repairshopr" Version="1">
<Number Prefix="Off" MaxLength="10" />
<Connection MaxConcurrentRequests="2" />
<Parameters>
<Parameter Name="APIkey" Type="String" Parent="General Configuration" Editor="String" Title="API Key:" />
<Parameter Name="Token" Type="String" Editor="String" Title="Caller ID Token" />
<Parameter Name="ReportCallEnabled" Type="Boolean" Editor="String" Title="Enable Call Journaling" Default="True" />
<Parameter Name="Domain" Type="String" Editor="String" Title="Domain" />
</Parameters>
<Authentication Type="Basic">
<Value>[APIkey]:X</Value>
</Authentication>
<Scenarios>
<Scenario Id="" Type="REST">
<Request Url="https://[Domain].repairshopr.com/api/v1/customers?query=[Number]&api_key=[APIkey]" MessagePasses="0" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />
<Rules>
<Rule Type="Any">customers.phone</Rule>
</Rules>
<Variables>
<Variable Name="FirstName" Path="customers.firstname">
<Filter />
</Variable>
<Variable Name="LastName" Path="customers.lastname">
<Filter />
</Variable>
<Variable Name="CompanyName" Path="customers.business_name">
<Filter />
</Variable>
</Variables>
<Outputs Next="ReportCall" AllowEmpty="false">
<Output Type="FirstName" Passes="1" Value="[FirstName]" />
<Output Type="LastName" Passes="1" Value="[LastName]" />
<Output Type="CompanyName" Passes="1" Value="[CompanyName]" />
</Outputs>
</Scenario>
<Scenario Id="ReportCall" Type="REST">
<Request SkipIf="[ReportCallEnabled]!=True" Url="http://[Domain].repairshopr.com/api/callerid/?did=[Number]&token=[Token][IIf([CallType]==Inbound||[CallType]==Missed,"",&outbound=TRUE)]" MessagePasses="1" RequestContentType="application/x-www-form-urlencoded" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />
<Variables />
<Outputs AllowEmpty="false" />
</Scenario>
</Scenarios>
</Crm>
I have also tried using it in the SkipIf= like so, but still get the same unknown expression error:
XML:
<Scenario Id="ReportCall" Type="REST">
<Request SkipIf="[ReportCallEnabled]!=True|[CallType]!=Inbound" Url="http://[Domain].repairshopr.com/api/callerid/?did=[Number]&token=[Token]" MessagePasses="1" RequestContentType="application/x-www-form-urlencoded" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />
<Variables />
<Outputs AllowEmpty="false" />
</Scenario>