I have a workflow that was created using the CRM workflow UI. Somehow the UI allowed me to create a workflow using a custom activity that had the SystemUserRole as an input entity. You cannot use this as an input entity because it is a many2many relationship entity. So although the UI allowed it initially, trying to open the workflow to edit it later cause an exception saying that CRM cannot 'retreive' the SystemUserRole entity.
So since I could not open the workflow in the UI to fix this, I exported the workflow and edited the xaml using some sample xaml from another workflow I exported which referenced the correct/intended input entity type 'Role'.
However now when I import the workflow back into CRM, the UI says:
Processes designed outside the Microsoft Dynamics CRM web application
cannot be viewed or edited in the web application.
I have a couple questions about this:
- How did crm know the workflow was edited? I used CRM generated xaml to fix the problem and left everything else the same.
- I there a hash or md5 stored somewhere in the exported workflow?
- Can I generate a new hash to fool CRM into thinking that the workflow originated from the Web UI?