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

Search hierarchy for a match (TableALLGroup) X++

  Table1 ppt;  select firstonly ppt  order ItemCode, ItemRelation, AccountCode, AccountRelation where      (ppt.ItemCode == TableGroupAll::T...