cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
540
Views
0
Helpful
2
Replies

Webex flow designer - using flow variables in search API request body

maria-crowley
Level 1
Level 1

Hi,

I am building a flow in Webex flow designer and I am using the Search API to retrieve the last agent ID and the last queue ID of the current caller. I am using the HTTP request activity and this is my current API request. It is graphql with JSON structure.

With the Search API the fields "to" and "from" have to be included in the request with an epoch. However I don't want to hardcode the epoch into my request I want to use a flow variable from my flow.

I have attached two snippets of the variables I have set in my flow. I have set "curretnDateEpoch" variable which I want to put in the "to" field of my API request. And I have set a "previousDateEpoch" variable which I want to put in the "from" field of my API request.

I cannot figure out how to use a flow variable in my Search API request.

What syntax can I use to place a flow variable in the request body of my API request?

1 Accepted Solution

Accepted Solutions

gkovanis
Cisco Employee
Cisco Employee

Hey @maria-crowley , when creating the query, you are able to use the {{ }} format to have non-hardcoded values , so it could be something like:

from: {{previousDateEpoch}} to: {{currentDateEpoch}}

Try to replace the above with your hardcoded values and you should get the result you need.

 

 

 

 

View solution in original post

2 Replies 2

gkovanis
Cisco Employee
Cisco Employee

Hey @maria-crowley , when creating the query, you are able to use the {{ }} format to have non-hardcoded values , so it could be something like:

from: {{previousDateEpoch}} to: {{currentDateEpoch}}

Try to replace the above with your hardcoded values and you should get the result you need.

 

 

 

 

Thank you! it is working now.