Skip validataion methods in D365 in DMF:
for skipping table validation methods when import and export the entity we need to write in to below methods. : persistEntity()
public void persistEntity(DataEntityRuntimeContext _entityCtx)
{
this.skipDataSourceValidateField(true);
this.skipDataSourceValidateWrite(true);
this.skipDataSourceValidateField(fieldNum(FBHPrintMgmtSettingsEntity, PrintSettingDescription), true);
this.skipDataSourceValidateField(fieldNum(PrintMgmtSettings, Description), true);
super(_entityCtx);
}
here you can skip the table vaidate write and validate field methods
for skipping table validation methods when import and export the entity we need to write in to below methods. : persistEntity()
public void persistEntity(DataEntityRuntimeContext _entityCtx)
{
this.skipDataSourceValidateField(true);
this.skipDataSourceValidateWrite(true);
this.skipDataSourceValidateField(fieldNum(FBHPrintMgmtSettingsEntity, PrintSettingDescription), true);
this.skipDataSourceValidateField(fieldNum(PrintMgmtSettings, Description), true);
super(_entityCtx);
}
here you can skip the table vaidate write and validate field methods
No comments:
Post a Comment