- Joined
- Mar 17, 2022
- Messages
- 21
- Reaction score
- 3
I would like to use the information found from a lookup based on the email address and use it in Call Journaling for "ReportCall". I have the following extract from my XML file, which shows the look up done by number and email and also another scenario, which is for "ReportCall", which logs a ticket in my CRM system,
Now the 2 bits of information I need to send to my CRM are the and [PhoneBusiness] and values. I do not have them present when just running "ReportCall", which uses the parameters from here in the CRM Integration application,
[ATTACH type="full"]37278[/ATTACH]
Is it possible to configure something whereby a look up can be done using [CallNumber], which will then return me the Output values that I could then stick into the "PostValues" section of my "ReportCall" request when doing call journaling?
XML:
<Scenario Id="" Type="REST">
<Request Url="https://login:password@5623-2a01-4b00-e208-dd00-980f-da75-1287-c64d.ngrok-free.app?A=HttpApiQuery&Query=GetCustomerContact&number=[Number]" MessagePasses="0" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />
<Rules>
<Rule Type="Any">id</Rule>
</Rules>
<Variables>
<Variable Name="ContactID" Path="id">
<Filter />
</Variable>
<Variable Name="FirstName" Path="firstName">
<Filter />
</Variable>
<Variable Name="LastName" Path="lastName">
<Filter />
</Variable>
<Variable Name="Email" Path="email">
<Filter />
</Variable>
<Variable Name="PhoneBusiness" Path="phone">
<Filter />
</Variable>
<Variable Name="ContactUrl" Path="url">
<Filter />
</Variable>
</Variables>
<Outputs Next="" AllowEmpty="false">
<Output Type="ContactID" Passes="0" Value="[ContactID]" />
<Output Type="FirstName" Passes="0" Value="[FirstName]" />
<Output Type="LastName" Passes="0" Value="[LastName]" />
<Output Type="Email" Passes="0" Value="[Email]" />
<Output Type="PhoneBusiness" Passes="0" Value="[PhoneBusiness]" />
<Output Type="ContactUrl" Passes="0" Value="[ContactUrl]" />
<Output Type="EntityId" Passes="0" Value="[ContactID]" />
<Output Type="EntityType" Passes="0" Value="Contacts" />
</Outputs>
</Scenario>
<Scenario Id="LookupByEmail" Type="REST">
<Request SkipIf="" Url="https://login:password@5623-2a01-4b00-e208-dd00-980f-da75-1287-c64d.ngrok-free.app?A=HttpApiQuery&Query=GetCustomerContact&email=[Email]" MessagePasses="0" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />
<Rules>
<Rule Type="Any">id</Rule>
</Rules>
<Variables>
<Variable Name="ContactID" Path="id">
<Filter />
</Variable>
<Variable Name="FirstName" Path="firstName">
<Filter />
</Variable>
<Variable Name="LastName" Path="lastName">
<Filter />
</Variable>
<Variable Name="Email" Path="email">
<Filter />
</Variable>
<Variable Name="PhoneBusiness" Path="phone">
<Filter />
</Variable>
<Variable Name="ContactUrl" Path="url">
<Filter />
</Variable>
</Variables>
<Outputs AllowEmpty="false">
<Output Type="ContactID" Passes="0" Value="[ContactID]" />
<Output Type="FirstName" Passes="0" Value="[FirstName]" />
<Output Type="LastName" Passes="0" Value="[LastName]" />
<Output Type="Email" Passes="0" Value="[Email]" />
<Output Type="PhoneBusiness" Passes="0" Value="[PhoneBusiness]" />
<Output Type="ContactUrl" Passes="0" Value="[ContactUrl]" />
<Output Type="EntityId" Passes="0" Value="[ContactID]" />
<Output Type="EntityType" Passes="0" Value="Contacts" />
</Outputs>
</Scenario>
<Scenario Id="ReportCall" Type="REST" EntityId="" EntityOrder="">
<Request SkipIf="[IIf([ReportCallEnabled]!=True,True,[IIf([CallType]!=Inbound,True,False)])]" Url="https://5623-2a01-4b00-e208-dd00-980f-da75-1287-c64d.ngrok-free.app?A=HttpApiSuppdeskWebHook" MessagePasses="0" Message="" RequestContentType="application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
<PostValues>
<Value Key="webhookEvent" Passes="1" Type="String">suppdesk</Value>
<Object Key="call">
<Value Key="reference" Passes="1" Type="String" />
<Value Key="folderno" Passes="1" Type="String">1</Value>
<Value Key="lookupcustfromemail" Passes="1" Type="String">Yes</Value>
<Value Key="email" Passes="1" Type="String">[Email]</Value>
<Value Key="phone" Passes="1" Type="String">[PhoneBusiness]</Value>
<Value Key="status" Passes="1" Type="String">open</Value>
<Value Key="subject" Passes="2" Type="String">[Subject]</Value>
<Value Key="description" Passes="1" Type="String">test desc</Value>
</Object>
</PostValues>
</Request>
<Variables />
<Outputs Next="ReportCallMissed" AllowEmpty="false" />
</Scenario>
[ATTACH type="full"]37278[/ATTACH]
Is it possible to configure something whereby a look up can be done using [CallNumber], which will then return me the Output values that I could then stick into the "PostValues" section of my "ReportCall" request when doing call journaling?
Attachments
Last edited:
