[Help Needed] Sending SMS with a Custom URL (Including Parameters) for an External App

We’re working on a Retool workflow to send an SMS that contains a custom URL with two dynamic parameters. The URL belongs to an external app, and we need to ensure that when the recipient clicks the link, the app can properly read and process these parameters.
mydomain.retool.com/p/portal-test/customer?data=MTIzNDU6T1JELTY3ODkw
I have tried:
We’ve tested multiple approaches, but we’re still facing issues with retrieving the URL parameters inside the external app. Here’s what we’ve attempted:

:white_check_mark: Generating the URL dynamically in Retool and sending it via SMS.
:white_check_mark: Using window.location.href to retrieve the full URL (but it returns Retool’s iframe sandbox URL).
:white_check_mark: Trying document.URL to extract the URL but facing similar iframe issues.
:white_check_mark: Extracting query parameters using window.location.search, but it's not always returning the correct values.
:white_check_mark: Testing window.parent.location.href, but it's blocked due to cross-origin iframe restrictions.
:white_check_mark: Using document.referrer to get the previous page's URL, but it doesn’t always contain query parameters.
:white_check_mark: Manually checking in the browser console (F12) to verify if the parameters exist.
:white_check_mark: Using console.log(window.location.href) and console.log(document.referrer) for debugging.

I have used Preload JS and a JS query that runs when page loads

Any insights or suggestions would be greatly appreciated!

Thanks in advance!

1 Like

Hey @Joako_Flores! Welcome back to the community and thanks for reaching out. :slightly_smiling_face:

If I understand your question correctly, you should be able to access that information with the urlparams variable that Retool exposes. There's a little more info in our docs but feel free to ask any additional questions here!