Posts

Showing posts from 2022

Post Po invoice In D 365 Fo using x++

 Today we i will show how to post the purchase order Invoice using x++ in D365 FO /// <summary>     /// This method helps to post the invoice journal journal for the purchase order.     /// </summary>     /// <param name = "_vendaccount">The <c>vendaccount</c> Vendor account num.</param>     /// <param name = "_invoiceNum">he <c>invoiceNum</c> invoice  num.</param>     /// <param name = "_invoiceDate">he <c>invoiceDate</c> Invoice Date.</param>     /// <returns> the parm id created after the invoice posted</returns>     private parmId ngPostInvoice(VendAccount _vendaccount, IGPS_ExcelValueStr _invoiceNum, Transdate _invoiceDate)     {         //post invoice for all matched purchase lines         PurchFormLetter_Invoice purchFormLetter;         Q...

how to generate a CAR Report for your model in d 365 fo

Image
  This article describes how to generate a CA Report for your model. It also describes some best practice rules that are included in the report and provides suggestions for fixing errors and warnings that are associated with these rules. What is the Customization Analysis Report? The Customization Analysis Report is a tool that analyzes your customization and extension models, and runs a predefined set of best practice rules. The report is one of the requirements of the solution certification process. The report is in the form of a Microsoft Excel workbook. How to generate CA report Step 1: Run the command prompt as an administrator Step 2: Go to your AOSService folder. You can either find it in C or K drive in your VM. The xppbp.exe tool is located in c:\packages\bin or I:\AosService\PackagesLocalDirectory\bin. Once you found your AosService folder then you can replace it with the below command. Standard syntax xppbp.exe -metadata=<local packages folder> -all -model=<Mode...

Get the vendor Name Create Computed coloum in data entity

 private static str getVendorNameSql()     {         str getVendorNameSql = strFmt(@" select Name from DirPartyTable             JOIN VendTable on DirPartyTable.recid = VendTable.Party             WHERE VendTable.AccountNum = %1",             SysComputedColumn::returnField(tableStr(IGPS_PurchOrderAccrualEntity), dataEntityDataSourceStr(IGPS_PurchOrderAccrualEntity, IGPS_PurchOrderAccrual), fieldStr(IGPS_PurchOrderAccrual, VendAccount)));         return getVendorNameSql;     }

Create custom workflow D365 finance & Operations

Image
  Create custom workflow D365 finance & Operations Create customized workflow on service management module for service agreement. There isn’t any workflow available for this module. Enum add field on the table query workflow category workflow type workflow Approval add workflow approval to workflow type Enable workflow on form Create workflow Difference between AX 2012 and D365 F&O Customizing workflow, which I came across, is the extension of methods on table as overlayering is now not allowed on D365 F&O. The rest of the process is the same. Create Enum Create new enum for the workflow status Create a new field on the table .  Here we use a table SMAAgreementTable. Create extension of table and Drag enum to table. Create methods on table Create a new class. Name it “ devSMAAgreementTable_Extension” Extend for table “SMAAgreementTable”. Create methods canSubmitToWorkflow UpdateCustWorkflowState “canSubmitToWorkflow” method will be using a chain of command. (...