Look up Variable to reportcall

Status
Not open for further replies.

RingRang

Bronze Partner
Joined
Dec 31, 2021
Messages
4
Reaction score
1
Hi Guys,

I have an issue that im hoping someone can help with.
My contact lookup works perfectly and outputs:
<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="CompanyName" Passes="0" Value="[CompanyName]" /> <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>

My CRM requires the fields below in order to Post to the API.
FirstName​
LastName​
Email​
When i get to the report call i am unable to reference the outputs from the contact lookup.
<PostValues Key=""> <Value Key="EndUserFirstName" Passes="1" Type="String">[S][FirstName[/S]]</Value> <Value Key="EndUserLastName" Passes="0" Type="String">[S][LastName][/S]</Value> <Value Key="EndUserEmail" Passes="0" Type="String">[S][Email][/S]</Value> <Value Key="TicketTitle" Passes="0" Type="String">test1</Value> <Value Key="Description" Passes="0" Type="String">test2</Value> <Object />

Thanks ahead of time
 
You cannot access the Contact lookup variables during call reporting as they are not executed.

Only [Name], [Number], [EntityId] and [EntityType] are available. Maybe during chat reporting.
 
Then why do the lookup at all? Surely we should store it as an array for a rich content to populate the ticket?
 
Then why do the lookup at all? Surely we should store it as an array for a rich content to populate the ticket?
Because normally most CRM only needs the ID of the object to create a task/note/activity associated with it. Also, the lookup takes the data and stores it in the PBX phonebook so that it can do that call report later on without having to make another API request.

Sounds like your CRM is the problem here if it requires more than an ID.
 
@ConceptsWeb , Thanks for replying. I shall carry on and update if i come right.
 
  • Like
Reactions: Evolute IT
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,896
Members
165,474
Latest member
costionofrei