In this Microsoft Dynamics 365 Finance and Operations blog we will perform some action on inserting of data in data entity using Chain of command
[ExtensionOf(tableStr(SalesOrderHeaderEntity))]
final class LSSalesOrderHeaderEntity_Extension
{
public void insert()
{
next insert();
if(LSParameters::find().FiscalDocumentSourceText == NoYes::Yes)
{
SalesTable SalesTableLocal;
SalesTable_BR SalesTable_BRLocal;
select firstonly SalesTableLocal
where SalesTableLocal.SalesId == this.SalesOrderNumber;
select firstonly SalesTable_BRLocal
where SalesTable_BRLocal.SalesTable == SalesTableLocal.RecId;
SalesTable_BR::getFiscalTextDocument(SalesTableLocal, SalesTable_BRLocal.SalesPurchOperationType_BR);
}
}
}
You can also check out my previous blog: D365 Edit method
Need help? Connect Atul
Latest posts by Atul Yadav (see all)
- Key Vault parameters in Dynamics 365 F&O - July 29, 2025
- User-based authentication RSAT - July 22, 2025
- Boost First-Load Performance in Dynamics 365 F&O with IIS Preload - July 15, 2025