Create a Query Parameter
Query parameters are the variables used in a query condition.
Required Editions
Available in: Lightning Experience Available in: Enterprise and Unlimited Editions where Consumer Goods Cloud is enabled |
| User Permissions Needed | |
|---|---|
| To create a query parameter: | CGCloud Business Admin |
- In Setup, find and select Custom Metadata Types.
- For Query Parameters, click Manage Records.
- Click New.
- Add a label and a name.
-
Select a parameter type.
- Static: If the parameter value remains unchanged
- UI Driven: If the parameter value is dynamically added based on the query UI
- Contextual: If the parameter value is derived from a contextual object
-
Enter a unique number as the order of the query parameter.
All related query parameters must be sequential and one record must have the parameter order value set to 0. To ensure that you enter a unique number, check the query parameters added to the query definition.
- To add a single quotation to the supplied parameter value, select Requires Single Quotation.
- Select a query definition.
- If the parameter type is Contextual, enter a default value of the parameter.
-
If the parameter type is Static or Contextual, enter a parameter value.
If the parameter type is Contextual, enter a field name for the contextual object. If the parameter type is Static, enter the list with actual values for the query parameter record, each value in a new line.
- Save your changes.
Did this article solve your issue?
Let us know so we can improve!

