Why is this variable not getting a value assigned?

Status
Not open for further replies.

greychain

Gold Partner
Advanced Certified
Joined
Jul 13, 2018
Messages
779
Reaction score
122
My CRM lookup is working and I'm getting values assigned but when I try to access them in the ReportCall scenario
CRM Lookup result.
{
"result": [
{
"id": "3973",
"version": "2",

2021/11/17 15:43:38.785|356|0076|Verb| 'id' = '3973'
2021/11/17 15:43:38.785|356|0076|Verb| 'firstName' = 'Blah'
2021/11/17 15:43:38.785|356|0076|Verb| 'phone' = '09680000'
2021/11/17 15:43:38.785|356|0076|Verb| 'lastName' = 'de blah'

When I try to access id in the ReportCall it is not getting the id value

1637140371347.png
 
You can't access contact lookup variables from the ReportCall scenario. That was removed in v18, in order to reduce the number of requests to the CRM. The contact lookup returns 2 variables (EntityId and EntityType), which are stored in 3CX Contacts. Then, these variables are available during the ReportCall scenario. Any value that you need to pass should be set there. If you have many values that you need to pass, you can use a separator, for example a pipe | character, and then use the Split function to get individual values.
 
  • Like
Reactions: Evolute IT
I have tried setting the EntityId to the id of customer but it shows as 1

2021/11/17 21:19:48.197|356|0068|Verb| 'firstName' = 'Blah'
2021/11/17 21:19:48.197|356|0068|Verb| 'ContactURL' = '3973'
2021/11/17 21:19:48.197|356|0068|Verb| 'EntityId' = '3973'
2021/11/17 21:19:48.197|356|0068|Verb| 'phone' = '0968697811'
2021/11/17 21:19:48.197|356|0068|Verb| 'lastName' = 'de blah'
2021/11/17 21:19:48.197|356|0068|Verb| 'ID' = '3973'

1637158972966.png

still not getting a value.

{"customerId":"","description":"Inbound:","logType":"LOG_CALL","subject":"3CX Call : .","customerNumber":"10000","inOut":"Outgoing"}

Also is this correct

1637159083285.png
 
I have tried setting the EntityId to the id of customer but it shows as 1

2021/11/17 21:19:48.197|356|0068|Verb| 'firstName' = 'Blah'
2021/11/17 21:19:48.197|356|0068|Verb| 'ContactURL' = '3973'
2021/11/17 21:19:48.197|356|0068|Verb| 'EntityId' = '3973'
2021/11/17 21:19:48.197|356|0068|Verb| 'phone' = '0968697811'
2021/11/17 21:19:48.197|356|0068|Verb| 'lastName' = 'de blah'
2021/11/17 21:19:48.197|356|0068|Verb| 'ID' = '3973'

View attachment 25910

still not getting a value.

{"customerId":"","description":"Inbound:","logType":"LOG_CALL","subject":"3CX Call : .","customerNumber":"10000","inOut":"Outgoing"}

Also is this correct

View attachment 25912
I would have to see the full template to understand this...
 
Status
Not open for further replies.

Latest Posts

Forum statistics

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