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

Copy Markup charges while posting purchase invoice using X++

 Copy Markup charges while posting purchase invoice using X++ Class: Important: Code logic is just for Reference.  New class => Duplicate...