Posts

Showing posts from January, 2026

Managers should be able to approve the Movement Journal through the Mobile App APIs

Managers should be able to approve the Movement Journal through the Mobile App   APIs class MK_InventJournalWFApprovalService { public MK_InventJournalWFApprovalResponse InventJournalTablePendingCount(MK_InventJournalRequest _request) { MK_InventJournalWFApprovalResponse response = new MK_InventJournalWFApprovalResponse(); List InventJournalList = new List(Types::Class); if (_request.parmEmail()) { UserId userId = this.getUserInfo(_request.parmEmail()).Id; InventJournalTable InventJournalTable; WorkflowWorkItemTable workFlowItemTable; select crosscompany count(RecId) from InventJournalTable join workFlowItemTable where workFlowItemTable.RefRecId == InventJournalTable.Recid && InventJournalTable.JournalType == InventJournalType::Movement && InventJournalTable.WorkflowApprovalStatus == InventJournalWorkfl...

Get enum values in D365fo x++

Get enum values  in D365fo x++ static void GetEnumValue(Args _args) { int EnumValue = enum2Int(PurchStatus::Invoiced); //Replace Base enum info(strfmt(“%1 EnumValue”, EnumValue)); } SQL Query: select t1.NAME,t2.ENUMID,t2.ENUMVALUE,t2.NAME EnumValueName from ENUMIDTABLE t1 join ENUMVALUETABLE t2 on t1.ID=t2.ENUMID where t1.NAME = 'AttributeDataType'

Project invoice transactions in D365fo x++

 Project invoice transactions   in D365fo x++ /// <summary> /// Service Contract Invoice Details Report /// Hassan Farooq - 29 Aug, 2025 /// The DP class of the report /// </summary> [ SRSReportParameterAttribute(classStr(MK_RevenueReportContract)) ] public class MK_RevenueReportDP extends SrsReportDataProviderPreProcessTempDB { MK_RevenueReportTmp tmpTable; [ SRSReportDataSet('MK_RevenueReportTmp') ] public MK_RevenueReportTmp gettmpTable() { select tmpTable; return tmpTable; } public void processReport() { ProjProposalJour projProposalJour; MK_DefaultDimensionView defaultDimensionView; MK_LedgerDimensionCostCenter ledgerDimCostCenter; MK_RevenueReportContract contract = this.parmDataContract(); TransDate fromDate = contract.parmFromDate(); TransDate toDate = contract.parmToDate(); List v...