cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1194
Views
0
Helpful
3
Replies

Dialog API to make a call

ravi.kumar1
Level 1
Level 1

is there a way we can use the variable within the API XML body. for example i can use below body with POST method to make a call to 35159, but i want to use a varibale instead of 35159, i tried using &call(call is a variable)

<Dialog>
<requestedAction>MAKE_CALL</requestedAction>
<fromAddress>58020</fromAddress>
<toAddress>35159</toAddress>
</Dialog>

3 Replies 3

dekwan
Cisco Employee
Cisco Employee

Hi,

 

Where are you trying to execute the Dialog API? Is it in code? Or is it in a workflow?

 

In the pure XML string, you cannot use variables as a value.

 

Thanx,

Denise

Under make rest call step in a script.

Hi,

 

I haven't touched the script editor in a while, but I thought I remember being able to add variables to the body of the request and the values of the variables will be translated before the request body is sent.

 

From a Finesse REST API request perspective, it does not do any variable translation of the body. Therefore, the script needs to put the right values into the body before it is sent.

 

Thanx,

Denise