@Martin Kallukalam Thanks for reaching out. From the description i understand that you would need to set the base URL of the backend in the set-backend-service policy from the backend section and append it with a string dynamically using an expression in an inbound policy correct me if i am wrong here
If it is the above case, then unfortunately we don't have a way to retrieve the backend information currently please refer the supported policy expressions: https://video2.skills-academy.com/en-us/azure/api-management/api-management-policy-expressions#ContextVariables.
Feel free to leave your feedback at aka.ms/apimwish.
do let me know incase of further queries, I would be happy to assist you.