---
schema_version: "1"
id: c24c62f4863da7d12424c47dfa37ee05ae898c43ffdaae4723d8b72739b51ee1
title: getParameters()
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_System_PageReference_getParameters.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_System_PageReference_getParameters.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 25d41c6faf4e2c75c69e02c9eae7af77578b3598e8dee110673fabe5a014d04c
description: Returns a map of the query string parameters for the PageReference; both POST and GET parameters are included. The key string contains the name of the parameter, while the value string contains the value of the parameter.
---
# getParameters()

Returns a map of the query string parameters for the PageReference; both POST and GET parameters are included. The key string contains the name of the parameter, while the value string contains the value of the parameter.

## Signature

public Map<String, String\> getParameters()

## Return Value

Type: [Map](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_map.htm#apex_methods_system_map "Contains methods for the Map collection 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."), [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.")\>

## Usage

This map can be modified and remains in scope for the PageReference object. For instance, you could do:

PageReference.getParameters().put('id', myID);

Parameter keys are case-insensitive. For example:

Assert.areEqual(
    ApexPages.currentPage().getParameters().get('myParamName'), 
    ApexPages.currentPage().getParameters().get('myparamname'));