Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  JSON Criteria and validiation

    Posted 12-12-2022 09:05
    No replies, thread closed.
    Greetings Community 

    I would like to ask about integration part, Let's presume that I have some requirements to do an integration between Genesys and X-system 

    one of requirements is to obtain data from list that contain meet a specific condition, let's presume I have the below data in system X

    {"employees":[    
        {"name":"Ram", "email":"ram@gmail.com", "age":23},    
        {"name":"Shyam", "email":"shyam23@gmail.com", "age":28},  
        {"name":"John", "email":"john@gmail.com", "age":33},    
        {"name":"Bob", "email":"bob32@gmail.com", "age":41}   
    ]}
     and I asked for retrieve for employees whose age is greater than 30 how I can achieve that in PureCloud ??? 

    BR
    #Integrations

    ------------------------------
    Mohannad haddad
    Fourth Dimension Systems LLC
    ------------------------------


  • 2.  RE: JSON Criteria and validiation

    Posted 12-12-2022 10:40
    No replies, thread closed.
    Genesys Cloud in general, and Architect in particular, isn't a data processing application.

    Your best bet would be to perform the filter within system X and have it only return matching records to Genesys Cloud.

    HTH

    ------------------------------
    Paul Simpson
    Eventus Solutions Group
    ------------------------------



  • 3.  RE: JSON Criteria and validiation

    Posted 12-13-2022 02:24
    No replies, thread closed.
    Hi Mohannad

    For this kind of integration you need to use Data Actions inside Architect

    In this video you can see some examples parsing JSON answers from a thirdparty

    If your Third party can provide this information in this supported formats, you can do interactions in call flow via Data Actions

    https://youtu.be/feXLOBVLOkQ

    Regards

    Alberto

    ------------------------------
    Alberto Sagredo
    Sr Technical Account Manager EMEA
    Genesys - Employees
    ------------------------------



  • 4.  RE: JSON Criteria and validiation

    Posted 12-13-2022 09:34
    No replies, thread closed.
    This is exactly right.  Data Actions include the ability to leverage JSONPath filters as part of the success template.  Examples of filters can be found here: https://github.com/json-path/JsonPath (using age as a filter is actually one of the listed examples).  There's also a couple of good JSONPath tester tools online that will allow you to paste in your JSON response and apply various filters to it to determine the results.

    ------------------------------
    Richard Schott
    Genesys - Employees
    ------------------------------