- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 11:50 AM
Hello guys!
I am new to Outbound REST Message and I believe I am almost there. Currently, I have manually entered a specific city and state called Austin,TX, in an API URL endpoint like this in the studio,
Now, I want to change from manual input to dynamically based on the current logged user location in URL Endpoint something like "city={user_location}". In the server-side script, I have a current user location variable called userLocation that is ready to apply it. My question is, how do I apply that in HTTP Query Parameters from server-side script to HTTP Method in the studio?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 01:21 PM
I figured out and able to solve my issue.
I just need to update endpoint url and add this to HTTP Query Parameters like this,
and then in service side script, I added r.setStringParameterNoEscape('city', userLocation);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 01:03 PM
Hello @bbf35621
Please use ${user_location} instead of Austin,TX in your endpoint, you can do this at multiple places whereever you want to pass dynamic inputs.
Then create this "user_location" in Query Parameters related list. Whatever value you pass there will automatically be passed here.
Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket.
Regards,
Shivalika
My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194
My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 01:21 PM
I figured out and able to solve my issue.
I just need to update endpoint url and add this to HTTP Query Parameters like this,
and then in service side script, I added r.setStringParameterNoEscape('city', userLocation);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2025 01:26 PM
Hello @bbf35621
Yes, that's my answer as well.
We can accept multiple solutions. Please mark helpful or accept solution if it helped you in anyway 🙂.