https://retellai.com/?utm_source=discord&utm_medium=seo logo
: I'm having trouble with Custom Functions that ne...
# ❓・ai-evy-support
d
@AI Evy : I'm having trouble with Custom Functions that need dynamic path variables in GET endpoints. Query parameters work fine (e.g., /employees?TenantId=4), but I can't get path variables to substitute properly (e.g., /employee/{employeeId}/services?TenantId=4). When I define {employeeId} in the URL, it's not being replaced with the actual value from the function arguments. This is blocking integration with standard REST APIs that use path variables. Has anyone successfully used dynamic path variables in GET requests, or is this a known limitation? The same endpoints work perfectly via Postman
a
Thanks for tagging me @dazzling_kiwi_86761. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, dynamic variables are supported for query parameters in custom functions, but there is no documented support for substituting dynamic variables directly into the path segment of a GET endpoint URL (e.g., replacing /employee/{employeeId}/ with the value from function arguments) [(1) ]() [(2) ]() [(3) ]() [(4) ]() . The documentation and community discussions focus on using dynamic variables in query parameters and headers, and do not provide an example or explicit support for dynamic path substitution in URLs [(1) ]() [(2) ]() [(3) ]() [(4) ]() [(5) ]() [(6) ]() [(7) ]() . Therefore, this appears to be a limitation and not a supported feature at this time.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[4] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[5] Can't use dynamic variable with date-time format in GET URL for custom function?](https://discord.com/channels/1186424376300679209/1405204331896246434) [[6] dynamic variables in function query parameters are not parsed](https://discord.com/channels/1186424376300679209/1414306451656151291) [[7] How to insert a path parameter in a url that’s used inside of Custom Function?](https://discord.com/channels/1186424376300679209/1397544316251017287) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.