PS:
I have worked with the standard searchTerm feature to prefill the search Filter, but this is not what I want, as the results are not exact, sometimes I do get more results than I want because I´m looking for the id of a specific entry of the list.
Where are you accessing this retool app from?
If it is from inside retool you can use the "go to app" event handler to open with the desired url param:
@TomJaud How are you passing the id into the URL params to begin with?
I second @GuilhermeSilva's point that you can use the 'go to app' event handler to open the app with params you pass in from that GUI and you can dynamically set that to always be a value from a query or component.
if you are looking for a way to store a number to pass in to a query, you can set a Javascript variable to hold this data as well!
Then once you deploy your app with the play button in the top right and the behavior is as intended, you can generate a link to share from the 'share' button in the top right.
The query if set up correctly should run and apply the filter to the table so that users who view the app from the link will see the data filtered as intended.