Skip to main content

Find metadata references

Hardcoded values, Find username, Tracking dependencies, Finding references, Metadata dependencies, Find error description

Updated this week

Find Metadata References lets you quickly locate where metadata components, strings, or hard-coded IDs are referenced across your org. This feature is available in the Metadata Dictionary once a synchronisation is run and your metadata is analyzed.

Supported metadata types include:

  • Apex Classes

  • Apex Triggers

  • Aura Component Bundles

  • Data Mappers

  • Flows

  • FlexCards

  • Lightning Component Bundles

  • Omni Integration Procedures

  • OmniScripts

Fields, Records, and Validation Rules are included only when Global Search is selected in this first iteration.

Run metadata search

To access the feature, please navigate to the Org model you would like to search for hard-coded references, and access that org model.

When you click on Find Metadata References, you can choose how you want to search and where to search.

Search type

  • Search for a specific string – find all matches for a user-provided text value.

  • Find hard-coded IDs – locate references to metadata IDs across your org.

Search scope

  • Global search (default) – scans all supported metadata types.

  • Specific metadata types – select one or more metadata types to limit your search.

After selecting the ‘Find all hardcoded IDs’ operating mode, hit ‘Run search’. This will start the search for all hardcoded IIDs (of any type) in the selected metadata scope. A new tab will open in your browser, where the search will be performed. You can close this tab or wait while the processing finishes.

Finding a manually defined string, email, or error

After selecting the ‘Find specific string’ option, enter the string that should be located in the metadata definition.

This capability is a strong win for searching for different hard-coded values:

  • Error description

  • Email addresses

  • Passwords

Analyzing results

The results of the search display different information based on the operating mode you selected to show the most relevant type of information.

For the ‘Find all hardcoded mode, you will be presented with a table where the columns are:

  1. Where the ID was found

  2. What is the type of metadata where the ID was found

  3. What ID was found

  4. What type of metadata a this ID reflect

  5. What is the metadata API name this ID reflects, if present in the org

  6. Number of times this ID is referenced in this metadata definition

Similarly, for the ‘Find hardcoded reference in code’ mode, you will be presented with a table where columns are;

  1. Where the string was found

  2. What is the type of metadata where the string was found

  3. What is the sting found

  4. Number of times this ID is referenced in this metadata definition

TIP You can share the results of your search by clicking on the ‘Share’ button in the top right corner, right under your profile icon.

Working with results

The results of your search allow you to take action on the selected references found.

Please select the lines with references you are interested in taking action on. The actions you can perform are:

  • Mass tag (replace or add), Create a single story for all selected references, Create an individual story for each of the selected references

  • Open a dependency grid for further investigation.

To perform any of those actions, please access the context menu the same way you have accessed the ‘Metadata search’ feature at the very beginning.

Should you select creating a story for each reference found from the results view, please note that the description of each story will be updated with the search results. It is best to simply fill in the Summary, Assignee and hit ‘Attach’.

You will then be able to find the stories in your ‘Changes’ grid and update the necessary details if that’s required.

Did this answer your question?