<p>MS CRM Dynamics 4.0 incorporates the MS WF engine.  The built in designer allows the creation of sequential workflows whos activities have native access to CRM entities.</p>

<p>Is it possible to:</p>

<ul>
<li>Create a state machine workflow
outside of CRM (i.e. in visual studio) and import it into CRM? </li>
<li>Have this workflow access the CRM
entities?</li>
</ul>

[{'answer_id': 37294, 'author': 'Curt Hagenlocher', 'author_id': 533, 'author_profile': 'https://Stackoverflow.com/users/533', 'pm_score': -1, 'selected': False, 'text': '<p>I don\'t know the answer to your specific question, but hopefully this information will point you in the right direction.</p>\n\n<p>The "native" format for WF workflows is ".xoml" files.  These are basically identical to XAML files, and both are nothing more than generic persistence formats for a .NET object tree.  If you can access the saved data that is output by the Dynamics designer, it should be in the same format.  If it is, you should be able to open it from the Visual Studio designer.</p>\n\n<p>The key here is that CRM undoubtedly defines its own set of custom activities that you\'ll need to be able to reference from within the alternate designer.  With any luck, these will be in assemblies with obvious names and/or in the GAC.</p>\n'}, {'answer_id': 502997, 'author': 'Robert MacLean', 'author_id': 53236, 'author_profile': 'https://Stackoverflow.com/users/53236', 'pm_score': 4, 'selected': True, 'text': '<ul>\n<li>It is NOT possible to create a state machine workflow for use in MSCRM.</li>\n<li>It is also not supported to create any workflow outside of MSCRM and import it.</li>\n<li>As a work around you could write either all the logic you need into a custom workflow activity and import that into MSCRM and have it called from a normal workflow.</li>\n<li>The other option is build a seperate application which runs a state machine workflow and interacts with MSCRM via the web services. You could (would need to?) combine this with a custom workflow activity to kick off processes.</li>\n</ul>\n'}, {'answer_id': 2765840, 'author': 'BeardinaSuit', 'author_id': 309977, 'author_profile': 'https://Stackoverflow.com/users/309977', 'pm_score': 1, 'selected': False, 'text': '<p>It is possible to create no code workflow...</p>\n\n<p><a href="http://blogs.msdn.com/jonasd/archive/2008/01/21/Creating-a-no_2D00_code-workflow-for-CRM-4.0-with-Visual-Studio-2005-_2800_2008_2900_.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/jonasd/archive/2008/01/21/Creating-a-no_2D00_code-workflow-for-CRM-4.0-with-Visual-Studio-2005-_2800_2008_2900_.aspx</a></p>\n\n<p>and take a look at the other thread...</p>\n\n<p><a href="https://stackoverflow.com/questions/2762144/is-is-possible-a-good-idea-to-edit-workflows-in-visual-studio">Is is possible/a good idea to edit workflows in Visual Studio?</a></p>\n'}]
['https://Stackoverflow.com/questions/34109', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3580/']