Skip to main content

I am constantly stuggling with finding the ACTUAL API names for Fuel Type Units of Measure. We have recently added new fuel types and corresponding units of measure and with all existing Units, the value names include "(Custom)" as a suffix to the value and the API names have "custom_" as a prefix however the developer names listind in the setup don't have this prefix.  

 

Recently in adding new values, we have followed previous API names with the "custom_" prefix howebver these API names seem to be failing. Is there a way to easily source the EXACT API names?

2 respuestas
  1. 26 jun, 6:52

    Hello, 

     

    You can’t reliably infer the correct API names from the UI “Developer Name” or labels because only the actual metadata/API value is used by integrations, and this often differs from what’s shown in Setup; the safest way to get the exact values is to open the field in Setup and copy the picklist value API name directly, or use tools like Salesforce Workbench (via the describe endpoint) or Metadata API/CLI to retrieve the picklistValues.value, since the custom_ prefix is not automatically applied or guaranteed and may not match the system-generated API naming rules, which is why manually

    Milestone Card  following that pattern can lead to failures.

0/9000