Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2022 Release Wave 2Check out the latest updates and new features of Dynamics 365 released from October 2022 through March 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I have a lot of workflows (400+) where fields and entities have changed names, then the workflow rules will point to in existing fields/entities. We are migrating from CRM 2015 to CRM 365 Online.
I cannot just export the solution from CRM 2015 and re-import to CRM 365 Online without any errors due fields and entities have changed names.
My idea was to export the workflows as an unmanaged solution from CRM 2015. Then unzip the solution and then open the workflows in a text editor ex. Notepad++ and just edit the variables from the old names to the new names and save the file. Then zip the file again and import it into CRM365 Online.
Anyone that have experience with this?
You can try this, I am not sure that it will work.
Why are you not updating field from CRM UI?
What do you mean by "Why are you not updating field from CRM UI?"?
Only the current fields/entitys are available on my CRM 2015 platform. The new fields/entitys in CRM 365 Online are actually replacements. And therefore they are only available in CRM 365 Online... So I cannot change my workflows in CRM 2015 to "point to" the new fields/entitys...
You can export unmanaged solution from Dynamics 365 and re-import by making the changes but the solution can't be imported from MSCRM 2015 to Dynamics 365 directly as there are a lot of changes in the xml formats of solution files. I would suggest doing the changes in Dynamics 365 environment directly.
Kalpavruksh -> Is there anyhow I can "prepare" my solution to imported into Dynamics 365 Online, so the xml structure would be correct? Ex. By upgrading my CRM 2015 to 2016 or something like that?
1. Export the same workflow from MSCRM 2015 and create an unmanaged solution.
2. Follow the same steps for Dynamics 365.
3. Compare customizations.xml file and get the difference in the xml format.
4. Also, compare solution.xml of both the solutions.
Try tweaking Dynamics 365 solution with the above steps with the desired changes and import in Dynamics 365 environment. We had followed the same steps while importing few workflows from V9.0 to V8.2.
If found useful, please mark this answer as verified.
If I export the workflows from MSCRM 2015 as unmanaged and import them into Dynamics 365. Im sure the import will fail? As the workflows are referring to fields and entitys that doesn't exist in the Dynamics 365 solution. The workflows are currently ONLY in MSCRM 2015 and not in Dynamics 365...
I would not recommend manually editing Workflow XAML, especially when you have 400+ workflows. You can definitely edit XAML its a the format is not very intuitive and you could easily make mistake and you could end up spending a lot of time in manual edit.
You could consider one of the following options
Option 1 :
01. Create an Un-managed solution on CRM 2015 and add all you workflows.
02. Try to export this solution and CRM will give you the dependent components warning - take screenshot of this and cancel the export
03. Add all the dependencies it was complaining about - refer the screenshot from Step 02.
04. Export the solution from CRM 2015 and Import onto Dynamics 365 online.
05. Change the workflows (Entity / Field change) using Workflow Designer.
01. Create an un-managed solution on Dynamics 365 online and add all the entities and fields that you are going to be using in the workflow
02. Export the solution and change the solution version by unzipping and editing the Solution xml file
03. Import the solution onto CRM 2015, Add all the workflows to this solution
04. Change the workflows (Entity /Field change) using workflow designer
05. Export this solution and import onto Dynamics 365 Online
I would only consider going down the path of editing XAML if the option 1 and option 2 are not going to work at all.
Do you have replaced entities in CRM 2015?
If not then update solution xml but it may take time.
By the way how many workflows you have that has deprecated entities and fields?
Kokulan Eswaranathan ->
I also share your concern manually editing it. I will try with 1 to see if it's easy and decide if I will try this solution.
And thanks for presenting option 1 and 2. I will definitely consider those before editing the XAML. The only issue is that it can be tricky editing the workflows using workflow designer since Field "Display Names" are the same between the old field a the new field (schema name is of course different). So using the workflow designer this can be tricky, since it only displays the "Display name". Then I will need to edit "Display Name" of all the old fields. To Ex. Field 1 OLD, Field 2 OLD etc. So I can tell the difference in workflow designer when changing the entity / fields..
Dynamics365 Rocker ->
What do you mean by, if I have replaced entities in CRM 2015?
I have 400+ workflows with deprecated entities and fields, that are replaced with new entities and fields..
Replaced entity means --> new entities.
Editing Workflow XAML manually from Solution is NOT supported in Dynamics CRM. CRM throws error if you try to import, something like--> "Workflow is not from trusted source". You cannot do this even on the same instance.
I tried some solutions in this thread. Importing the solution with the missing fields, entities etc. (Solution 1 suggested by Kokulan Eswaranathan). However I didn't success.
So I tried manually editing the workflow with notepad ++. This turned out fine, when I figured out there to edit, so it pointed to the correct entity and field. However I learned that the field with the name specified in the workflow must exist in the target entity for I was able to import. Further more that the entity reference was not only present in the workflow file but also in customizations.xml and solution.xml. In solution.xml it also contains a list of the required fields/entitys and speicifc solution. I was having some errors during import so I modified the required fields etc by deleting them. Finally I managed to import 1 test workflow from CRM 2015 to Dynamics 365 with editing the entitys manually in the XAML file.
There was to warning with not from trusted source etc.
I found a program that can run through all the workflow files in the exported solution and replace the wrong tags with new tags. So I will proceed with this approach.
Thanks for sharing the details. If possible could you share the name of the program you are using for this.
Business Applications communities