---
schema_version: "1"
id: 600f9b4b1dca8736f9f2cbc55bae8c51fa4021df08cb18f5a01a96bd4784b913
title: PageReference(record)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_System_PageReference_ctor.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_System_PageReference_ctor.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7c84e6de3dae55aa1d056ac7007d727f294319943536fe5d033223e11ea9e410
description: Generate a new instance of the PageReference class for the specified sObject record.
---
# PageReference(record)

Generate a new instance of the PageReference class for the specified sObject record.

## Signature

public PageReference(SObject record)

## Parameters

- **record**: Type: SObject The sObject record that references the ApexPage. The reference must be an ApexPage.

#### See Also

- [_Visualforce Developer Guide_: apex:page](https://developer.salesforce.com/docs/atlas.en-us.264.0.pages.meta/pages/pages_compref_page.htm)
- [_SOAP API Developer Guide_: ApexPage](https://developer.salesforce.com/docs/atlas.en-us.264.0.api.meta/api/sforce_api_objects_apexpage.htm)