URL to enable internal teammates to open modal with a view defined by a variable

Goal: I have an app to track "opportunities", and am using a modal window to enable users to view / edit opportunity details. Each opportunity has details across a number of different tabs. I want to be able to be able to share a link to each unique opportunity (via slack or email, for example). Is there a way to do this?

I am currently using opportunities_table.selectedRow to display the correct opportunity (using a unique id), but this of course shows the same URL for all opportunities. The desired behavior is for the user to click a url outside of retool, and then immediately be brought to the application with the modal window open and the specified opportunity selected.

I've started to look into url parameters, but am unsure if this will enable the desired behavior. Customize web app URLs | Retool Docs

Will I be able to achieve the desired functionality using url parameters?
THANKS!

Hi @eric3,

Yes, I do think this can be solved with url parameters :slightly_smiling_face: It's a little hard to say the best approach without seeing the UI of the app. If you can share screenshots or a recording, that could be helpful. We're also happy to take a closer look in office hours

It would also be helpful to know if you're using our new multipage app model.

In the meantime, here's an example of using url params with multipage:

Here's a page where the components are based on the url params (the user can add any name to the url and the app will reload with that info) :

Here's another page of the app where the user can set the url params from the table's selected row:

Thanks Tess! I was able to figure it out using url_params. Much appreciated :slight_smile:

1 Like