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
chriscwharrischriscwharris 

Default record when opening TAB

I want to create a visualforce page that is associated with a TAB. When I click the TAB I want to open a specific record based on the currently logged in user. There will be a "User Profile" custom object that has the USER as the owner or as a lookup field.

My initial thinking was using SOQL to lookup on the profile with the !$user to get the ID of the Profile Custom record but that would require me writing the VF page with a custom controller I imagine and my VF and APEX skills are still basic.

I realise that I can pass the ID in the URL if I am opening the page from a button for example and was hoping I could do something with that but I don't want to have to open some other page and click a button to get to the record I want displayed, I just want to click the TAB and have "My" record displayed.

Any thoughts?