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
skm191913skm191913 

Access Salesforce Account Visualforce page from External application

I need to access salesforce Account Visualforce page by passing an External Id value from a java based application.
The salesforce Account object has the external id field stored inside account object.
I can simply create a link in the java based application and access the page by passing the salesforce id.
https://cs43.salesforce.com/apex/pagename?18digitId (SSO Enabled)
But the java based application did not have salesforce id. So, how can I access the salesforce account page passing the external id?
https://cs43.salesforce.com/apex/pagename?ExternalId
Lokeswara ReddyLokeswara Reddy
As input for the VF page is SFDC Id, it can not be accessed by passing the ExternalId, the solution for this is
Either
 1. Store SFDC id in Java and pass this while framing the sfdc url 
OR
 2. VF page logic should be changed to process the request based on ExternalId rather than SFDCId
Anthony Williams 34Anthony Williams 34
As Lokeswara said, you could modify the control of the VF page so that it would query the Account object by the ExternalId instead of the Account Field.