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
cvm_asishcvm_asish 

How to pass AccountID as a parameter in "StartURL"?

Hello friends,

 

I am facing an issue, While login to the site I am using "return Site.login(username, password, startUrl);",

 

In startURL I need to pass the account ID also.

 

Issue:- I'll not be able to hit the User object and get the AccountID before logged in.

 

Could you please some one tell me whether any other workaround for this?

 

Thanks in advance.

 

Thanks

Asish

Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent
if you only know the account id after the successful login why don't you let the page (defined in the start url) do the job. Once you are logged in the target page can get the required id and show the data desired

All Answers

BulentBulent
if you only know the account id after the successful login why don't you let the page (defined in the start url) do the job. Once you are logged in the target page can get the required id and show the data desired
This was selected as the best answer
cvm_asishcvm_asish

Thanks Bulent!!

 

I have used  a VFP to get ID and redirect to my Account detail page with AccountID.

 

 

Thanks

Asish