Category Archives: Workflow

D365/AX7: Extend ‘canSubmitToWorkflow’ in standard & base tables without over-layering

Requirement

There is no standard workflow feature in available process ‘Request For Quotations’.There is a requirement of enabling customised workflow in standard process called ”and base table ‘PurchRFQCaseTable’ and form ‘PurchRFQCaseTableListPage’

Issue

In current version of D365/AX7, there is no possible way to use or extend method ‘canSubmitToWorkflow’ in standard table like PurchRFQCaseTable without overlayering.Also there is no event listed in table PurchRFQCaseTable related to ‘canSubmitToWorkflow’.

Sample Code and Instructions

[code language = “cpp”]

[ExtensionOf(ClassStr(FormDataUtil))]
final class ACXFormDataUtil_Extension
{

public static boolean canSubmitToWorkflow(Common _record, str _workflowType)
{
boolean ret = next canSubmitToWorkflow(_record, _workflowType);
if (_record.TableId == tableNum(PurchRFQCaseTable))
return true;
else
return ret;
}

}

[/code]