Apex Class Names and Developer Names

Learn how External Services derives Apex class names from your schema.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Performance, Unlimited, and Developer Editions

The derived Apex class name for a registered API specification schema object can be a maximum of 255 characters. Ensure that class names are the correct length. To create a shorter name if errors are encountered during registration, choose a short service name, or edit the schema object name definition.

The operation developer name is derived from the registered API specification. The object developer name is derived from the Apex class name. The developer name must fit within a maximum of 80 characters. If the name is larger than 80 characters, a unique developer name is automatically derived to fit within 80 characters. If the individual derived object or operation unique developer names in the nested data structure don't themselves exceed 80 characters, then the nested data structure name can go up to 255 characters. If name collision errors are encountered for existing registrations, for example, to activate additional operations, try these steps:

  • If the registration has been distributed in a managed package or is in use by flows, save a new copy of the registration.
  • If the registration isn’t in use, either delete and recreate the registration or make a copy, delete the original registration, and save the copy as the original registration.