---
schema_version: "1"
id: f5333c8a30cec13f9c2d9b17cdb3f4c6a59c45dfb0acd7b67866960164aa8fcc
title: LoadParameters Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_pref_center_LoadParameters.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_pref_center_LoadParameters.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f14ae6efab81668a18084793b9596a315b32782ebb4092596bf0dd12e103ad48
description: Contains methods to retrieve record Id information for parameters passed into the load-form handler.Returns the untokenized version of the record Id.
---
# LoadParameters Class

Contains methods to retrieve record Id information for parameters passed into the load-form handler.

## Namespace

[Pref\_center](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_pref_center.htm "The Pref_center namespace provides an interface, classes, and methods to create and retrieve data in forms in Preference Manager. Preference Manager, previously called Preference Center, is a feature within the Privacy Center app.")

## Example

String userId = loadParams.getRecordId();

User user = \[SELECT Id, AboutMe FROM User WHERE id=:userId WITH USER\_MODE\];

- **[LoadParameters Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_pref_center_LoadParameters.htm#apex_pref_center_LoadParameters_methods)**

## LoadParameters Methods

The following are methods for LoadParameters.

- **[getRecordId()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_pref_center_LoadParameters.htm#apex_pref_center_LoadParameters_getRecordId)**  
    Returns the untokenized version of the record Id.

### getRecordId()

Returns the untokenized version of the record Id.

#### Signature

public String getRecordId()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")