cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
199
Views
0
Helpful
3
Replies
Highlighted
Beginner

Dialog API to make a call

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
Highlighted
Cisco Employee

Re: Dialog API to make a call

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

Highlighted
Beginner

Re: Dialog API to make a call

Under make rest call step in a script.
Highlighted
Cisco Employee

Re: Dialog API to make a call

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