A Reusable Object is a Business Object that was created to be used in one or more Data Models (like a writable object). The Reusable Object can be added to our model and the content (records) could be updated because is full CRUD compatible.
To use a Reusable Object it MUST be make available in advance.
Steps
Navigate to Setup → Data Management → Data Models (1).
Click the plus button to add a New Data Model.
For Parent Type, choose Generic.
For Name, use Employer.
Save it.
In the Data Model Editor for Employer, add the following attributes:
Company Name (Text)
Company Phone (Phone)
Company Address (Text Area)
Save it.
Deploy the Employer data model. To learn how to deploy, use this article: 5. Deploying a Solution
To make the Employer business object available in Auto Loan data model, it must be a presented as a 'Reusable Object'.
Navigate to Setup → Data Management →Reusable Objects (1).
Click the plus button (2) to add the New Reusable Object.
Enter Employer for the Name and select the CDM_Employer from the Table or View drop-down list (3).
Save the new reusable object.
Open the Auto Loan Data Model and add the new Employer Reusable Object to the Auto Loan BO.
If you don’t see the new employer reusable object, refresh the list using the whirlpool icon.
Save the model
Deploy to submit the changes to the database.
Check the status of the model after the deployment. You will see the new BO and the new Relationship with the Auto Loan.
In the next step, we will add these new objects (Bank Account and Employer) to the Auto Loan form and customize them.