Genesys Cloud CX

 View Only
Discussion Thread View
  • 1.  Activate or deactivate an #emergency group by call

    Top 25 Contributor
    Posted 5 days ago
    Edited by Thomas Repking 5 days ago
    Hi, I created a small flow to activate or deactive an emergency group by calling a certain number. I left the audios in the flow to see the route the call takes. Depending on the status of the emergency group it should activate or deactive the group with the next call. The calls go down audio 1 and 2 meaning the status gets recognized and after the decision the call goes accorgingly to audio 5 or 9. But the PUT data action does not work as the calls go next to audio 7 or 11. Can anyone tell me, what I need to do to get the PUT data action working?

    #ArchitectureandDesign

    ------------------------------
    Thomas Repking
    Canada Life Group Services Limited
    ------------------------------


  • 2.  RE: Activate or deactivate an #emergency group by call

    Posted 5 days ago
      |   view attached
    Hi Thomas
    We have the same requirement and have the following solution

    Check schedule group in main flow for emergency
    Route to Audio when emergency active

    Switch on/off emergency via separate flow containing a pin code (request loops 3 times)
    The data action includes the IVR ID, Emergency group name and ID, Emergency Flow ID I've attached the JSON

    ------------------------------
    Philip Thys
    British Telecommunications PLC
    ------------------------------

    Attachment(s)

    docx
    Emergency flow.docx   14 KB 1 version


  • 3.  RE: Activate or deactivate an #emergency group by call

    Top 25 Contributor
    Posted 3 days ago
    Edited by Thomas Repking 3 days ago
    Thank You, Philip. Very much appreciate Your help but I´m not familiar with using JSON, unfortunately. I´m trying to find someone in my company that could help me, but was not successful up to now.

    ------------------------------
    Thomas Repking
    Canada Life Group Services Limited
    ------------------------------



  • 4.  RE: Activate or deactivate an #emergency group by call

    Posted 3 days ago
      |   view attached
    Hi Thomas
    I've added the fields you need to enter into the action in the attached doc, under request body template ensure the json looks like the text at the bottom.

    Kind Regards

    ------------------------------
    Philip Thys
    British Telecommunications PLC
    ------------------------------

    Attachment(s)

    docx
    Emergency Activation.docx   109 KB 1 version


  • 5.  RE: Activate or deactivate an #emergency group by call

    Top 25 Contributor
    Posted 3 days ago
    Thanks again Philip. Your answer helped me a lot. Currently, I still get an error message when testing the action on step 6. Resolve request body template:

    {
      "message": "Substitution values invalid in action config. Reference ${input.emergencyGroupName} evaluated to null when attempting to render at BodyTemplate[line 2, column 13]  A common reason for this error is needing to prepend the variable with 'input.' or 'credentials.'",
      "code": "invalid.substitution",
      "status": 400,
      "messageParams": {},
      "contextId": "9166f5bf-08c7-4a92-b69c-0844895ff8ec",
      "details": [
        {
          "errorCode": "ACTION.PROCESSING"
        }
      ],
      "errors": []
    }
    I hope I can still solve this.

    ------------------------------
    Thomas Repking
    Canada Life Group Services Limited
    ------------------------------



  • 6.  RE: Activate or deactivate an #emergency group by call

    Posted 3 days ago
    No problem, could you send screen shots of each page of the action config inc the Json and I'll take a look for you.

    ------------------------------
    Philip Thys
    British Telecommunications PLC
    ------------------------------



  • 7.  RE: Activate or deactivate an #emergency group by call

    Top 25 Contributor
    Posted 3 days ago
    Edited by Thomas Repking 3 days ago
      |   view attached
    Great, is it okay like in the attachment? I did not change the Inbound Flow up to now, could this affect the function of Your Data Action?

    ------------------------------
    Thomas Repking
    Canada Life Group Services Limited
    ------------------------------

    Attachment(s)



  • 8.  RE: Activate or deactivate an #emergency group by call

    Posted 3 days ago
    Hi
    On the input contract you need the following
    emergencyGroupID
    emergencyGroupName
    emergencyFlow
    ivrs
    Enabled

    We have nothing in the output contract

    the URL should read - /api/v2/architect/emergencygroups/${input.emergencyGroupID}

    and no headers

    Give that go

    ------------------------------
    Philip Thys
    British Telecommunications PLC
    ------------------------------



  • 9.  RE: Activate or deactivate an #emergency group by call

    Top 25 Contributor
    Posted 22 hours ago
    Hi Philip, I changed it as You described, but the error regarding the Group Name still remains. If I put the Group ID in the Test of an existing "GET EmergencyGroup info" Action, the Group Name is found.

    ------------------------------
    Thomas Repking
    Canada Life Group Services Limited
    ------------------------------