CRM Integration and Dynamic JSON path

Status
Not open for further replies.

Nico.ipn

Platinum Partner
Joined
Jul 23, 2021
Messages
15
Reaction score
6
Hello,

I'm trying to setup a crm integration.
I can properly get the informations via the software provider.

But the returned JSON as a dynamic key and i'm stuck on the way to get it in the 3CX CRM integration.

JSON:
{"objects": {
                   "Person::38":{"code":0,"message":"","class":"Person","key":"38","fields":{ "friendlyname":"xxxxxx","email":"[email protected]"}
}},
"code":0,
"message":"Found: 1"}

I need to get the key.
The Path is : objects.Person::38.key

But, i've a problem : Person::38 is dynamic and depend on the entry find. It could be Person::38 or Person::1 or Person::5432, etc
There is a way to have a path that works in any case ?
 
I don't think there's a way to do this in 3CX.

You'd be better off using a proxy script in-between to "translate" the data.
 
  • Like
Reactions: edossantos
I don't think there's a way to do this in 3CX.

You'd be better off using a proxy script in-between to "translate" the data.
Hi,

What do you mean by a "proxy script" ?
 
Last edited:
Something that stands between the PBX and your CRM, which acts as a translator for each of them when sending and receiving data.
 
Ok.
Not easy :D

I've tried to use : objects[0].key
But, 3CX seems to not accept it. :(
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,896
Members
165,473
Latest member
NathanMitchell