Genesys Cloud - Main

 View Only
Discussion Thread View
Expand all | Collapse all

Activate or deactivate an #emergency group by call

  • 1.  Activate or deactivate an #emergency group by call

    Posted 05-11-2022 10:35
    Edited by Thomas Repking 05-11-2022 11:06
    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 05-12-2022 03:46
      |   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

    Posted 05-13-2022 05:10
    Edited by Thomas Repking 05-13-2022 05:10
    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 05-13-2022 05:32
      |   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

    Posted 05-13-2022 08:37
    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 05-13-2022 08:47
    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

    Posted 05-13-2022 08:58
    Edited by Thomas Repking 05-13-2022 08:59
      |   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 05-13-2022 10:09
    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

    Posted 05-16-2022 06:09
    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
    ------------------------------



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

    Posted 05-17-2022 04:24
    Try the action without requesting group name

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



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

    Posted 05-17-2022 05:54
    Thank You again, got it working now!

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



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

    Posted 05-17-2022 06:00
    Brilliant, happy to be of help

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



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources