We can create virtual entity just like other custom entities by navigating to Settings-> Customization-> Customize the System or we can also create our own custom solution and create virtual entity there. While creating a virtual entity, we need to select Virtual Entity checkbox and need to configure below 4 points. We are using a test service from odata.org as a data source. You can refer to detailed steps here to use the test service from odata.org. External Name is the name of the object that we want to show over the virtual entity and external collection name is the name of the object collection, for example - employee is the object and employees is the name of the collection here. While creating a virtual entity, you need to make sure that the external name and external collection name should match to the entity type name and entity set name exactly.A Virtual Entity is created with just two out of the box fields - primary id and primary field. But, we can add custom fields and relationships as required. While adding other custom fields, keep in mind that their data type should be exactly mapped to the data type of the external object’s properties. Apart from these, an external object must have a unique key (GUID) which can be mapped to the primary id of the virtual entity.
In the next article, we are going to demonstrate how to write our own OData Web API for Virtual Entity. So, stay tuned!!
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: