Cfd - Select only the ani.session number from the whole json file containing multiple items

Status
Not open for further replies.

_aMiCiCi_

Bronze Partner
Joined
Apr 16, 2022
Messages
41
Reaction score
6
Hi guy, I have this problem, please help me

First of all I assign to the variable callflow $ .Telephone the number of the incoming call with ani.session. "screenshot1"

I access the json file via http reading (for now with direct access, "I deliberately deleted the link"). "screenshot2"

Reading the data and assigning the variables as follows "screenshot3"

Using JsonxmlParsel1, I check the input file to read and assign the variables as follows:

My problem is that in the http file, all the records are contained, I have no way in the view to filter for the moment only the value of my interest.

How can I say check record [0] or [1] or later and download the configuration only if the number contained in the Phone name is equal to the incoming call of the ani.session number?

Can you help me?

Thanks
 

Attachments

  • screenshot.png
    screenshot.png
    15.4 KB · Views: 40
  • screenshot1.png
    screenshot1.png
    9.3 KB · Views: 42
  • screenshot2.png
    screenshot2.png
    33.8 KB · Views: 39
  • screenshot3.png
    screenshot3.png
    50.3 KB · Views: 37
  • screenshot4.png
    screenshot4.png
    45.7 KB · Views: 37
The JSON / XML Parser component will help you with simple task, like getting a static node from the JSON response. However, in your case you will need to analyze the JSON and decide which node you want to get based on some values inside it. The only way to do this is with a C# script, which you need to create. You can pass the JSON text to this C# script, and this script can return the data you need.....
 
  • Like
Reactions: Evolute IT
Status
Not open for further replies.

Forum statistics

Threads
111,973
Messages
590,078
Members
164,896
Latest member
sameage