Thursday, August 2, 2018

Enabling workflow related properties on FORM design in Dynamics 365 for finance and operations

Enabling workflow related properties on FORM design in Dynamics 365 for finance and operations

Achieve workflow feature  enabling using extensions without overlay.

[FormDataSourceEventHandler(formDataSourceStr(CustTable, CustTable), FormDataSourceEventType::Initialized)]
public static void CustTable_OnInitialized(FormDataSource sender, FormDataSourceEventArgs e)
{
    sender.formRun().design().workflowDatasource("CustTable");
    sender.formRun().design().workflowEnabled(true);
    sender.formRun().design().workflowType("CustTable_DevWkType");
}

No comments:

Post a Comment

Convert Call stack to readable format in D365FO X++

//Input --container _xppCallStack = xSession::xppCallStack();  Public static str POL_formatXppCallStack(container _xppCallStack, int _skipFr...