- Joined
- Apr 28, 2020
- Messages
- 2
- Reaction score
- 1
Hey all,
I've got a scenario that retrieves the Contact from our CRM via an API and it's displaying correctly and the ContactURL is succesfully using the 'ContactID' variable I'm extracting from the initial MatchingScenario result.
However, when I attempt to use a ReportCall Scenario, it cannot identify the ContactID variable previously saved. It HAS used the Access_Token variable that I saved as part of the initial OAuth scenario.
Relevant XML:
Can anyone assist with this issue?
Thanks
Aaron
I've got a scenario that retrieves the Contact from our CRM via an API and it's displaying correctly and the ContactURL is succesfully using the 'ContactID' variable I'm extracting from the initial MatchingScenario result.
However, when I attempt to use a ReportCall Scenario, it cannot identify the ContactID variable previously saved. It HAS used the Access_Token variable that I saved as part of the initial OAuth scenario.
Relevant XML:
XML:
<Scenario Id="" Type="REST">
<Request Url="http://localhost:63584/api/upvise/contacts/findcontactbyphonenumber?PhoneNumber=[Number]" MessagePasses="0" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json">
<Headers>
<Value Key="Authorization" Passes="0" Type="String">Bearer [access_token]</Value>
</Headers>
</Request>
<Rules>
<Rule Type="Any">id</Rule>
</Rules>
<Variables>
<Variable Name="id" Path="id">
<Filter />
</Variable>
<Variable Name="FirstName" Path="name">
<Filter />
</Variable>
<Variable Name="Email" Path="email">
<Filter />
</Variable>
<Variable Name="PhoneBusiness" Path="phone">
<Filter />
</Variable>
<Variable Name="PhoneMobile" Path="mobile">
<Filter />
</Variable>
</Variables>
<Outputs AllowEmpty="false">
<Output Type="id" Passes="1" Value="[id]" />
<Output Type="FirstName" Passes="1" Value="[FirstName]" />
<Output Type="Email" Passes="1" Value="[Email]" />
<Output Type="PhoneBusiness" Passes="1" Value="[PhoneBusiness]" />
<Output Type="PhoneMobile" Passes="1" Value="[PhoneMobile]" />
<Output Type="ContactUrl" Passes="1" Value="https://www.upvise.com/uws/?func=Contacts.viewContact('[id]')" />
</Outputs>
</Scenario>
<Scenario Id="ReportCall" Type="REST">
<Request SkipIf="[ReportCallEnabled]!=True||[CallType]!=Inbound" Url="http://localhost:63584/api/upvise/Contacts/CallLog" MessagePasses="1" RequestContentType="application/json" RequestEncoding="Json" RequestType="Post" ResponseType="Json">
<Headers>
<Value Key="Authorization" Passes="0" Type="String">Bearer [access_token]</Value>
</Headers>
<PostValues>
<Value Key="contactid" Passes="1" Type="String">[id]</Value>
<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="callstarttime" Passes="1" Type="String">[CallStartTimeLocal]</Value>
<Value Key="callendtime" Passes="1" Type="String">[CallEndTimeLocal]</Value>
</PostValues>
</Request>
<Variables />
<Outputs AllowEmpty="false" />
</Scenario>
Can anyone assist with this issue?
Thanks
Aaron