05-13-2020 12:28 PM
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>
05-13-2020 01:50 PM
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
05-13-2020 01:58 PM
05-13-2020 03:46 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide