Workflow Managerial Hierarchy :Purchase Requester Managerial Hierarchy with in Request for Quote Workflow

Hello Guys,

Recently i have came across an issue in order to customize the Workflow Managerial Hierarchy. You can see the complete question here

https://community.dynamics.com/ax/f/33/t/216355

However there were no response to that. I read the technet about providers and digged in to the class which actually handles this workflow hierarchy which is ‘WorkflowLimitHierarchyProvider’. The two methods there i read and were important and leads to gave me the solution were:

getSupportedDataType()

convertToNodeDataType().

In both methods we have the standard edts setup like

wf-blog-1

wf-blog-2

So it means ,  where ever place these edts are used in the table and if the table is used in the workflow the newly created fields based on these edts will automatically be available in the workflow heirarchy and actually that did the trick for me.

I add a new field in my RFQ table (PurchRFQCaseTable) from the edt ‘PurchReqPreparerRecId’ and gave the name Purch req. prepare . see below

wf-blog-3

and after compilation and IL generate i was able to see the field and workflow hierarchy editor

wf-blog-4

 

So finally i was able to  get the purch requisition prepare value to be used in the Request for quotes workflow hierarchy assignment.

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s