I want to pass the Record ID to a visualforce page and reference that ID on an outputLink URL to take them back to the account. The User cannot "Save" the visualforce page, so how can I keep the ID?


Account page VF button ---> VF page to View Inventory Object Records ---> Select Inventory Record ---> OutputLink URL retains Inventory Record ID and adds Account ID so user is taken back to the Account with Inventory Record ID.

Since the VF page is just a view, How do I retain my Account ID? Is there a way for the Account ID to float around while choose the user chooses the Inventory Record ID?

| improve this question | | | | |

I used the standard Account controller with my extension.

<apex:page standardController="Account" extensions="naicssearchcontroller">

The standard controller retains the Account Record ID for use.

| improve this answer | | | | |

If your Visualforce page is related to a standardController, like account, you can use the record data, like account id.

| improve this answer | | | | |
  • Sorry, I just saw you answered yourself. – Javier Vazquez Jan 29 '16 at 16:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.