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
------------------------------
Original Message:
Sent: 05-13-2022 05:32
From: Philip Thys
Subject: Activate or deactivate an #emergency group by call
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
------------------------------
Original Message:
Sent: 05-13-2022 05:09
From: Thomas Repking
Subject: Activate or deactivate an #emergency group by call
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
Original Message:
Sent: 05-12-2022 03:46
From: Philip Thys
Subject: Activate or deactivate an #emergency group by call
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