Skip/Bypass validation in Data Entity Import – D365FO

 


Skip/Bypass validation in Data Entity Import – D365FO


I had a scenario where I need to create the Tax Exempt Number dynamically when importing Vendors' data.

For instance, if the given VatNum does not exist in the input data, the system should bypass the validation and create the vendor without any error. 


So, how do we incorporate this validation? Using the COC method of persistEntity.

public void persistEntity(DataEntityRuntimeContext _entityCtx)
{   
    
        next persistEntity(_entityCtx);
     this.skipDataSourceValidateField(fieldNum(VendVendorsV2,
     VatNum),true);
    
}

Support Faryal's Cusine


Entity cannot be deleted while dependent Entities for a processing group exist.

 


An entity cannot be deleted while dependent Entities for a processing group exist.


Sometimes you need to delete a data object from the main data object. Sometimes this is annoying because it is specified in a data project and you need to delete this report before you can delete the master data. Sometimes you have to go through hundreds of data projects and it's very annoying.


So, Go to the Data entity page, find your data entity and click on processing group linked.




Now select the processing group and delete the references of the targeted entity.


You can delete the entity, Once all the references are removed.

Support Faryal's Cusine


Virtual Fields Vs Computed Fields

  Virtual Field: A virtual field in D365FO is a field that doesn't have a direct representation in the database. It's a field that y...