What Are The Steps To Create An Entity Extension In Guidewire?
4.9 out of 5 based on 16546 votesLast updated on 7th Oct 2026 28.1K Views
- Bookmark
Upgrade your insurance technology knowledge with Guidewire Training covering essential concepts, configuration practices, testing methods and project workflows.
An entity extension adds custom data to an existing Guidewire entity without changing the original base entity definition. In PolicyCenter, ClaimCenter, and BillingCenter, this work is done through the data model configuration. The task is not simply adding an XML field. A developer must check whether the entity can be extended, create the right ETX file, select the correct field type, define relationships, validate the model, test the generated entity, and redeploy the application. This makes entity extension an important practical area in Guidewire Training.
Key Takeaways
- Extend the entity using the ETX file.
- Do not modify the ETI file in case of regular extension.
- Check the field type, null values, naming convention, and size before coding.
- Consider foreign keys and arrays as true relations.
- Validate the metadata and test the entire data path.
- Re-deploy after any change in the supported data model.
Find the Correct Base Entity
Begin with Guidewire Studio. From there, navigate to configuration > config > Metadata > Entity > and identify the entity where the field needs to be added. This process, as per the guidelines provided by Guidewire documentation, is considered the standard first step for an entity extension. The definition of the base entity is generally in an ETI file format.
First check whether the entity is extendable. Then check whether an ETX file already exists. Studio does not allow another extension file for the same entity when an extension is already present. This is useful because all custom changes for that entity can stay in one place.
Before opening the XML editor, decide what the new value really is. It may be a scalar value, type key, foreign key, or array. Each one has a different effect on the data model.
Create the ETX File
Simply right-click on the required entity in Studio and select New > Entity Extension. Studio will generate the ETX file in the entity extensions folder configuration/config/extensions/entity and open the file in edit mode.
The ETX file generated is relatively smaller than the base ETI file. It is done purposely as the ETX file contains only the custom code while the original fields and settings are maintained by the base entity. This will keep the Guidewire Training process more practical.
Make sure that the ETX file refers to the entity which is going to be extended. Always maintain the definition of the custom code and don’t copy the base entity. In case there is an ETX file in your project for the same entity, simply open the existing file.
You May Also Read This:
Guidewire PolicyCenter Developer Career
The Future Of Guidewire Functional Testing
Design the Field Before Adding XML
A good extension starts with field design. Ask these questions first:
- What type of data will be stored?
- Can the value be empty?
- Does it need a fixed list of values?
- Does it point to another entity?
- Can there be several related records?
- Will rules or Gosu code update it?
- Will an API use it?
For text, choose a suitable size. For currency, use the proper currency data type. For dates, decide whether the application needs only a date or a date and time. A wrong type may work at first but create problems in rules, queries, reports, or integrations later.
This model-first thinking is also useful while preparing for Guidewire Certification. The skill is knowing why a field is designed in a certain way, not remembering the XML syntax. The same field decision should stay clear during analysis.
Add the Field to the Extension
After deciding the design, add the field using the supported data model element for that Guidewire version. A basic field normally needs a name, type, and null behavior. Some data types need extra parameters.
Use clear names. A developer should understand the field without opening another document. Many projects use an _Ext suffix for custom properties. This also lowers the chance of a future name collision with base configuration.
Keep the field definition small and exact. Do not add unused fields just because they may be useful later. Every data model field becomes something that developers, testers, reports, and support teams may need to maintain.
Save the file and use Studio validation. A small XML mistake can stop the application from starting, so finding it before deployment is much easier.
Handle Foreign Keys as Relationships
The foreign key requires more care than a regular scalar value. It ties the current entity with another entity. It must be known in advance what entity is being linked to.
Before setting up the foreign key, validate the target entity to determine whether the relationship is optional or mandatory, and its direction. An incorrect target entity will bring problems when loading, saving, and querying related entities.
Foreign keys should never be treated as strings containing an ID. They are parts of the entity relationships model and might impact bundles, queries, validations, API mapping, and other applications.
The cloud API introduces yet another level of complexity. Guidewire documentation recommends separating the schema, mapping, and updater extensions of API properties. The property could already be present in the data model but require API setup before clients can use it.
Use Arrays and One-to-One Links Carefully
Check the child entity, the foreign key, and the direction of the relationship. In case of one-to-one relationships, there may be the need for review on both sides of the data model and API when exposing relationships.
The Guidewire Cloud documentation provides examples where one-to-one API extensions include changes to schema, mappings, and updates for both parent and child entities.
Check Type Keys and Typelists
A type key connects an entity field with a typelist. Use it when the value should come from controlled choices rather than free text.
This keeps data consistent. It also makes rules and UI behavior easier to manage. But the field is only one part of the change. The related typelist and typecodes must also be checked.
This is where Guidewire Functional Course knowledge becomes useful. A business request such as “add a customer category” can become a type key, new typecodes, UI changes, validation, and rule logic. The data model decision controls what happens later.
Check Generated Entity Behavior
After validation of the ETX, ensure that the studio recognizes the new property. XML entity definitions are loaded in the application model by Guidewire and the entity structure is used in Gosu.
Test the new property in Gosu for read-write, null, and bundle capabilities. It is helpful in a Guidewire Functional course.
Check Database Impact
An entity extension alters the data model, so be sure to examine the impact on the database prior to implementation. Scalar property could result in a column while relationship might result in a foreign key. Do not alter the database manually to get the field working. This exercise is important for Guidewire Certification.
Check:
- Expected column or relationship.
- Data type and size.
- Null behavior.
- Existing data impact.
- Deployment and upgrade plan.
Guidewire states that entity definitions are loaded into the application database as part of application processing.
Test the Full Data Path
Testing should not stop when the field appears on a screen. Test metadata, the entity object, Gosu logic, database writes, and external layers that use the field.
A useful path is:
Data model → Entity → Gosu → Rule/transaction → Database → UI/API
This is useful for Guidewire Testing Online Training because the target is the complete flow. Test null and populated values, valid and invalid foreign keys, valid typecodes, and empty or multiple array records.
Check API Exposure Separately
A data model extension and an API extension are different tasks. Guidewire Cloud APIs use schema, mapping, and updater extension files. Schema describes the property, mapping reads it, and the updater handles writable data.
If an integration needs the field, check all three areas. A field can work in Gosu but still be missing from REST when its mapper is not extended. Guidewire Business Analyst Training matters here. Foreign keys can also need reference and resolver configuration.
Deploy and Verify
Documentation for Guidewire demands application redeployment whenever there are data model changes. However, this varies depending on the product and version.
Post-deployment, execute the transaction using the field and look at the logs for errors in metadata, database, bundle, or validation. Verify the integrations and the reports. This ensures Guidewire Testing Online Training a broad testing scope.
In Guidewire Business Analyst Training, it is significant to note that one business requirement may influence the storage, display, validation, and transmission of the data.
Technical Workflow
| Stage | Main Work | Check |
| Find | Locate ETI | Extendable |
| Create | Make ETX | No duplicate |
| Design | Choose field type | Correct data |
| Relate | Add key/array | Correct target |
| Validate | Check metadata | No errors |
| Test | Check Gosu/API | Flow works |
| Deploy | Apply model change | Server healthy |
| Verify | Run transaction | No hidden issue |
Conclusion
An entity extension development process in Guidewire is a data model alteration that involves the whole application. The right way to create the extension is to define the proper base entity, create one ETX file, make sure you design the field correctly, manage relations properly, check metadata validation, test Gosu and database performance, and do the API analysis separately. Even a small field may have influence on rules, screens, integration, reports, and transactions. The fact that the custom code resides in the extensions files will help in the future maintenance as well. The best strategy is to consider the entire data flow before changing XML files.
FAQs
What happens to the ETX file?
The Studio creates it in the entity extensions folder at configuration/config/extensions/entity.
Do I need to edit the ETI file?
No. For an extensible entity, you should create or modify the ETX file using Studio.
Does this field show up automatically on the Cloud API side?
No. API schema mapping and updater setup may be necessary.
Is deployment required?
Yes. Application deployment is required according to Guidewire documentation.
Can I add new fields to an entity extension?
Yes, you can add new fields to the entity extension in the ETX file through Guidewire Studio.
Can I modify the original entity definition?
No, it cannot be modified. The purpose of an entity extension is to customize the base entity definition with additional fields or modifications without affecting the base entity definition.
Where can I view the entity extension in Studio?
The ETX file can be viewed under the entity extensions folder in the Guidewire project.
Can an entity extension modify the application data?
Yes, modifying or adding fields to the entity extension may impact the data and the database design.
How can I check whether my entity extension works fine?
After creating the entity extension, it needs to be validated in the Studio, built in the application, and checked in the application itself.
Subscribe For Free Demo
Free Demo for Corporate & Online Trainings.