A developer is creating an entity for home inspections that contains a field for the inspection date. Which configuration of the file name and the field name fulfills the requirement and follows best practices?
Show answerHide answer
Correct answer: B HomeInspection_Ext.eti, InspectionDate.Ext
Explanation
Answer Option (Which option is correct) B. HomeInspection_Ext.eti, InspectionDate.ExtExplanation:
A new custom entity is defined in an .eti file with a customer suffix on the entity name. A field belonging exclusively to that new custom entity generally does not need a second extension suffix. An .etx file instead extends an entity that already exists.
Verification note: The supplied key selects InspectionDate.Ext although Q53 uses an unsuffixed field on a new custom entity. The dot suffix appears malformed; retained verbatim for review.
Why the other options are incorrect:
A. HomeInspection.etx, InspectionDate.Ext:
An etx file extends an existing entity. The stem asks for a new HomeInspection entity. The field suffix also appears malformed.
C. HomeInspection_Ext.etx, InspectionDate:
This still uses an extension file rather than an entity definition. The custom name alone does not change the file purpose. Creating the new entity requires an eti definition.
D. HomeInspection.eti, InspectionDate.Ext:
The entity name has no custom suffix. That can collide with delivered entity names. The dot in the field suffix also needs source review.
E. HomeInspection.Ext.eti, InspectionDate:
The name uses a dot before Ext. Other questions use an underscore in custom entity names. The source does not explain this spelling difference.
References:
Guidewire - Custom entity and subtype data model examples