Monday, September 1, 2025

Submit the purch order workflow using x++ d365fo

 PurchTable purchTable;

  purchTable = PurchTable::find("Test001");

    changecompany (purchTable.dataAreaId)

    {

        if (purchTable != null && purchTable.canSubmitToWorkflow(workflowTypeStr(PurchTableTemplate)))

        {

            purchTable.submitToWorkflow(workFlowTypeStr(PurchTableTemplate), '', false);

        }

    }

Call API using x++ D365FO

 System.Net.HttpWebRequest    request; System.Net.HttpWebResponse   response; System.IO.Stream             dataStream; System.IO.StreamReade...