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
BridgetreeBridgetree 

ID for account??

Hello everyone!!!

 

        I am new to visualforce.  I want to pass id to page. But I am unable to find my account id.

Can anyone tell me how to find it.

 

Thanks & Regards

Phaniraj N

Best Answer chosen by Admin (Salesforce Developers) 
Jan DrommershausenJan Drommershausen

If you only need the specific ID for one static Account you can find it in the adress of your browser if you are on the Account Detail page

 

For example:

https://na11.salesforce.com/001A000000FE06W

 

 

Is this what you were searching for?


All Answers

MarkWaddleMarkWaddle

Hello Phaniraj,

 

You will need to provide some more context for anyone to answer this question. Like, what are you passing the ID from? Another VisualForce page? Does this page have a reference to the Account object? By "pass", what exactly do you mean? Are you sending it in the URL?

 

Mark

BridgetreeBridgetree

Hi Mark, Thanks for the reply.

 

Actually i want pass id in the url like this

 

https://c.ap1.visual.force.com/apex/helloworld?id= ??

 

the id to be passed should be an id for the account. How to find the id?

 

Phaniraj N

BridgetreeBridgetree

Hi !!

 

           suppose i have record in Accounts named phaniraj. I want to pass the id of this account in the URL.

 

Where can i find the URL for any record in the account?

 

 

Jan DrommershausenJan Drommershausen

If you only need the specific ID for one static Account you can find it in the adress of your browser if you are on the Account Detail page

 

For example:

https://na11.salesforce.com/001A000000FE06W

 

 

Is this what you were searching for?


This was selected as the best answer
BridgetreeBridgetree

Hi Jan,

 

         That is what i was searching for!!!

Well got to know before as i went doing research on it.

 

Thanks

Phaniraj N