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

how to access the sample URL without having to login to our SFDC instance

I created a VF page, when we copy that page link with the record id  we should get it worked without logging into the salesforce sandbox and should work across all browsers.

any help is appreciated.-Don


Not quite sure what question you are asking here, but you will need to login to Salesforce in order to view the record.  If you want unauthenticated access you can look at Sites.


Here is the description of what i want to achieve


Let’s take for example that your Visual Force Page has the following URL:


where some_contact_id above will be the contact id of a salesforce contact.


Your page will take the value of some_contact_id, look up the name of contact and display the following:


HELLO, contact_name


where contact_name is the name of the Salesforce contact name whose contacted = some_contact_id


and to access the sample URL without having to login to our SFDC instance




As bob has said, if you want to provide unauthenticated access to VF pages, you need to set up a site and grant access to the the VF page and controllers to the public or guest profile.


That sounds like the exact use case for Sites.


Check out: