Hey @kaustavdm & @zach_jones_noel !
Thanks for reply! your answer @kaustavdm worked great! thanks so much!
here is my query and response:
Query:
const req = await client.request.invokeTemplate('agentsTickets', {
context: {
id: e.id,
},
});
requests.json:
"agentsTickets": {
"schema": {
"method": "GET",
"host": "<%= iparam.domain %>.freshservice.com",
"path": "/api/v2/tickets/filter",
"query": {
"query": "\"agent_id:<%= context.id %>\""
},
"headers": {
"Authorization": "Basic <%= encode(iparam.api_key) %>",
"Content-Type": "application/json"
}
}
},
and the Response:
once again thanks everyone!