Hi all,
During creation custom Workflow for Sales, I hit error like when first open Sales Order (SalesTable form)
Unable to cast object of type 'Dynamics.AX.Application.SalesTable' to type 'System.String'.
If I debug, it hit at my CoC class for adding CanSubmitToWorfklow like this :
[ExtensionOf(tableStr(SalesTable))]
final class FMSalesTableCanSubmitToWorflow_Extension
{
public boolean canSubmitToWorkflow(str _workflowtype)
{
boolean ret;
ret = next canSubmitToWorkflow(_workflowtype);
if(this.recID && this.WorkflowStatus == CFMJournalWorkflowStatus::NotSubmitted && this.existSalesLine())
{
ret = true;
}
return ret;
}
}
The error hit at the end of "ret = next canSubmitToWorkflow(_workflowtype);"
Any idea what is that about ?