Variables not expanding when running integration through phone system.

Status
Not open for further replies.

Utdom Thol

Gold Partner
Joined
Jan 8, 2019
Messages
10
Reaction score
0
When I perform an outgoing call test from the template generator I can see the expected result but when I make an outgoing call from the phone system the variables are not being expanded. This only happens on one scenario. Where should I be looking?

CRM Template generator test
{
"id": "11770334",
"version": "0",
"createdDate": 1663248087860,
"creatorUserId": "5349196",
"customAttributes": [],
"customerId": "1234567",
"customerNumber": "16425",
"description": "9/15/2022 8:15 PM: Answered outgoing call from 0000 to Contact +491123456789 (05:00)",
"inOut": "Outgoing",
"lastModifiedDate": 1663248087856,
"leadId": "1234567",
"leadNumber": "16425",
"logType": "LOG_CALL",
"subject": "9/15/2022 8:15 PM: Answered outgoing call from 0000 to Contact +491123456789 (05:00)",
"supplierId": "6173456"
}

3CX Phone system log

'https://customer.weclapp.com/webapp/api/v1/_app_crmCallLog/' with message '{"customerId":"","inOut":"Outgoing","description":"[DateTime]: Answered outgoing call from [Agent] to [[Number].Replace(\"0049\",\"+49\")] [Name] ([Duration]","logType":"LOG_CALL","subject":"[DateTime]: Answered outgoing call from [Agent] to [[Number].Replace(\"0049\",\"+49\")] [Name] ([Duration]","customerNumber":""}'.

For the not answered scenario I get

{
"id": "11770345",
"version": "0",
"createdDate": 1663248140167,
"creatorUserId": "5349196",
"customAttributes": [],
"customerId": "1234567",
"customerNumber": "16425",
"description": "9/15/2022 8:15 PM: Unanswered outgoing call from 0000 to +491123456789 ",
"inOut": "Outgoing",
"lastModifiedDate": 1663248140166,
"leadId": "1234567",
"leadNumber": "16425",
"logType": "LOG_CALL",
"subject": "9/15/2022 8:15 PM: Unanswered outgoing call from 0000 to +491123456789 ",
"supplierId": "6173456"
}

'https://customer.weclapp.com/webapp/api/v1/_app_crmCallLog/' with message '{"customerId":"1234567","inOut":"Outgoing","description":"[DateTime]: Unanswered outgoing call from [Agent] to [[Number].Replace(\"0049\",\"+49\")] [Name]","logType":"LOG_CALL","subject":"9/15/2022 7:47 PM: Unanswered outgoing call from 0000 to +491123456789 customer, Name","customerNumber":"1234567"}'.
 
Have you set "Passes=2" for the post value of the text? Assuming that's the one not working as your examples are not very clear.
 
  • Like
Reactions: edossantos
Yes , I spotted that first and thought that was this issue. Here is the xml for the call recording.

Looking at the outboundAnswered I see that it is not getting the search results

<Scenario Id="ReportCall" Type="REST">
<Request SkipIf="[IIf([ReportCallEnabled]!=True||[EntityId]==&quot;&quot;;,True,[IIf([CallType]!=Inbound,True,False)])]" Url="https://[Domain].weclapp.com/webapp/api/v1/_app_crmCallLog/" MessagePasses="0" RequestContentType="Content-Type: application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
<Headers>
<Value Key="AuthenticationToken" Passes="0" Type="String">[AuthenticationToken]</Value>
</Headers>
<PostValues>
<Value Key="customerId" Passes="0" Type="String">[EntityId]</Value>
<Value Key="inOut" If="" SkipIf="" Passes="0" Type="String">Incoming</Value>
<Value Key="description" Passes="2" Type="String">[InboundCallText]</Value>
<Value Key="logType" Passes="0" Type="String">LOG_CALL</Value>
<Value Key="subject" Passes="2" Type="String">[InboundCallText]</Value>
<Value Key="customerNumber" Passes="0" Type="String">[EntityId]</Value>
</PostValues>
</Request>
<Variables />
<Outputs Next="ReportCall-Outbound" AllowEmpty="true" />
</Scenario>
<Scenario Id="ReportCall-Outbound" Type="REST" EntityId="" EntityOrder="">
<Request SkipIf="[IIf([ReportCallEnabled]!=True||[EntityId]==&quot;&quot;;,True,[IIf([CallType]!=Outbound,True,False)])]" Url="https://[Domain].weclapp.com/webapp/api/v1/_app_crmCallLog/" MessagePasses="0" RequestContentType="Content-Type: application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
<Headers>
<Value Key="AuthenticationToken" Passes="0" Type="String">[AuthenticationToken]</Value>
</Headers>
<PostValues>
<Value Key="customerId" Passes="0" Type="String">[EntityId]</Value>
<Value Key="inOut" If="" SkipIf="" Passes="0" Type="String">Outgoing</Value>
<Value Key="description" Passes="2" Type="String">[OutboundCallText]</Value>
<Value Key="logType" Passes="0" Type="String">LOG_CALL</Value>
<Value Key="subject" Passes="2" Type="String">[OutboundCallText]</Value>
<Value Key="customerNumber" Passes="0" Type="String">[EntityId]</Value>
</PostValues>
</Request>
<Variables />
<Outputs Next="ReportCall-Missed" AllowEmpty="true" />
</Scenario>
<Scenario Id="ReportCall-Missed" Type="REST">
<Request SkipIf="[IIf([ReportCallEnabled]!=True||[EntityId]==&quot;&quot;;,True,[IIf([CallType]!=Missed,True,False)])]" Url="https://[Domain].weclapp.com/webapp/api/v1/_app_crmCallLog/" MessagePasses="0" RequestContentType="Content-Type: application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
<Headers>
<Value Key="AuthenticationToken" Passes="0" Type="String">[AuthenticationToken]</Value>
</Headers>
<PostValues>
<Value Key="customerId" Passes="0" Type="String">[EntityId]</Value>
<Value Key="inOut" If="" SkipIf="" Passes="0" Type="String">Incoming</Value>
<Value Key="description" Passes="2" Type="String">[MissedCallText]</Value>
<Value Key="logType" Passes="0" Type="String">LOG_CALL</Value>
<Value Key="subject" Passes="2" Type="String">[MissedCallText]</Value>
<Value Key="customerNumber" Passes="0" Type="String">[EntityId]</Value>
</PostValues>
</Request>
<Variables />
<Outputs Next="ReportCall-Notanswered" AllowEmpty="true" />
</Scenario>
<Scenario Id="ReportCall-Notanswered" Type="REST">
<Request SkipIf="[IIf([ReportCallEnabled]!=True||[EntityId]==&quot;&quot;;,True,[IIf([CallType]!=Notanswered,True,False)])]" Url="https://[Domain].weclapp.com/webapp/api/v1/_app_crmCallLog/" MessagePasses="0" RequestContentType="Content-Type: application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
<Headers>
<Value Key="AuthenticationToken" Passes="0" Type="String">[AuthenticationToken]</Value>
</Headers>
<PostValues>
<Value Key="customerId" Passes="0" Type="String">[EntityId]</Value>
<Value Key="inOut" If="" SkipIf="" Passes="0" Type="String">Outgoing</Value>
<Value Key="description" Passes="2" Type="String">[NotAnsweredOutboundCallText]</Value>
<Value Key="logType" Passes="0" Type="String">LOG_CALL</Value>
<Value Key="subject" Passes="2" Type="String">[NotAnsweredOutboundCallText]</Value>
<Value Key="customerNumber" Passes="0" Type="String">[EntityId]</Value>
</PostValues>
</Request>
<Variables />
<Outputs Next="" AllowEmpty="false" />
</Scenario>
</Scenarios>
 
Last edited:
Status
Not open for further replies.

Forum statistics

Threads
111,987
Messages
590,151
Members
164,918
Latest member
Maiwand