entity is an Association property of Asset Entity. And it is mandatory too. I give option to the choose the entity to the user. So the Assets in Excel file should be imported to the selected Entity.
To get this functionality I’m using getDefaultValues method as mentioned in the git documentation of the add on.
I debugged and found that view for this property is coming as null (I could see all the properties view is null), because of this, this property is not getting copied from srcEntity to dstEntity.
Below is the code in the addon which is copying the value from srcEntity to dstEntity.
Is there any config I should make for this property?
you are right. I think this is because of being a reference to another entity. It might be that this use-case I did not think of with the view: so you probably spotted a bug.
The third parameter is the default values map and the fourth parameter is a consumer for an entityImportView, which allows adding your entity to the import view.
It requires you to create a custom service and call the data import API programmatically.