50
Views
1
Comments
How do I pass tenant ID and other params via URL to anonymous landing page?
Application Type
Mobile, Reactive
Service Studio Version
11.54.2 (Build 62176)
Platform Version
11.18.1 (Build 38276)

Hello,

I am trying to build a PWA reactive mobile app. My landing page is an anonymous page. I don't have user logins on the app. I want to pass tenant ID and one more parameter in the URL used to launch the PWA. How can I pass this url and how can I access it to set tenant and other param?
I tried passing it like this 

https://<envaddress>/PreviewInDevices/ShareMobileApp.aspx?URL=/menu/&TenantId=20&TableId=3&_ts=116086

Then I tried to get the url in screen's onInitialise client action using "window.location.href"
However I get URL without any params. Can someone help please?

thanks,

Maruthi

2024-04-05 19-22-12
João Sousa

Hi there,

Have you tried to use the 'HTTPRequestHandler' to get your absolute URL? (like the GetURL action?)

In addition, how are you managing your tenants/user? If you're using the users table each user has a tenant id associated.

There are several ways of managing multitenancy, here's some guidelines if you haven't already seen them =)

https://www.outsystems.com/training/courses/45/master-class-on-multi-tenancy/
https://success.outsystems.com/documentation/how_to_guides/development/how_to_build_a_multi_tenant_application/

Hope it helps

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.