function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
punnoosepunnoose 

can validation be done on load of an application

i have an application with 4 tabs, is it possible to check on load if the user has right previlages from an external webservice.

If the user doesnot have any previlages the application should not load (it should show an Error page)like if the login for salesforce is treated as vilidation.

If it is not there in an external database application should not be loaded. Else all the application needs to be loaded

Regards

Punnoose

cgosscgoss

To do this, you'd need to override the standard tab functionality and add your own license check wrapper. We've done this with a VisualForce component that we can just include in every page that needs a license. I'd also recommend caching the license status in either a custom object or protected setting so you don't have to do the callout on every page load.