I want to create a call flow that creates an action, confirms that the "operationalStatus" of the hard phone is "OPERATIONAL", and then calls the hard phone.
I am using the following template for the request.
/api/v2/telephony/providers/edges/phones?phone_hardwareId=${input.HardwareID}&expand=status
The return is stored as follows.
However, if the primary Edge is down, the status entity will not be returned and only the secondaryStatus entity will be returned.
This will cause an error.
"$.entities[0].status.operationalStatus".
{
"translationMap": {
"status": "$.entities[0].status.operationalStatus"
},
"translationMapDefaults": {},
"successTemplate": "{\n \"status\": ${status}}"
}
As for what we want to achieve.
I want to store the status of either status or secondaryStatus.
#Integrations