Use of Option Set Vs Two Options in a Business Process Flow
Business processes within Dynamics 365 streamlines and creates a visualization of information flow through various stages. Each stage combine "data steps" to reach a business decision to either move forward or backward.
The data steps in a business process stage are fields used to capture information. Option sets and two options can be used as data steps.
Two option should only be used if a data step is not required in a business process stage. The problem with two options is that they cannot have "unassigned value" as a default. Therefore even if a two option is marked as required on a business process stage, one can still move to next stage based on the default selected.
1) Created two fields onf Opportunity. These will be used as data steps to capture whether due diligence is done.
One field is an option set with two values "Yes" and "No". The default value is unassigned.
https://1.bp.blogspot.com/-M4CwCE1avp4/Wh-rOhe43yI/AAAAAAAABYI/jbFudI5UAuQIv31zrBX9CC_x7bLlKjTpACLcBGAs/s1600/13.PNG |
Option Set Field |
The second field is two options with values "Yes" and "No". The default value is "No". The issue here is that the default value can only be selected as "Yes" or "No".
https://2.bp.blogspot.com/-ucjRSuFA82c/Wh-uXiTIlgI/AAAAAAAABYw/6iS0Gd6bLzUmBDVWdKDaRhtmNIm8olUjwCLcBGAs/s1600/14.PNG |
Two Options Field |
2) Both these fields are displayed as data steps on the Opportunity Business Process "Qualify" stage.
https://1.bp.blogspot.com/-1kfFSrKG5_E/WiDDL3tywJI/AAAAAAAABZA/ILEsIDOaNg4EHuLLPNhT_NYAjKu3qYZBgCLcBGAs/s640/15.PNG |
Business Process on Opportunity |
3) Open a new Opportunity, enter a "Topic" and "Save". This will create a new opportunity for "Qualify" stage. As seen the two fields are displayed as data steps in "Qualify". The top field is an option set and bottom field is a two option.
https://4.bp.blogspot.com/-vVUZ21Au05I/WiDLmkd-oEI/AAAAAAAABZY/_jGiUnM1KgUkMNrOTXzW9_mcW8Akp7cOACLcBGAs/s1600/16.PNG |
Testing these Fields |
4) They both are required but only option set field will force a user to select a value (if nothing is selected) when moving to next stage.
Option set can have an unassigned value as a default. Therefore always use option set over two options whenever it is required to capture data on a business process stage