web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / MSD365 F&O Learning / How to Export and Import Wo...

How to Export and Import Workflow if the same version exists in another environment in D365 F&O

Deepak Singh Profile Picture Deepak Singh 164

Requirement

1. Customer need not to create same workflow again and again for different D365 environment. They want to copy the same workflow in different environment.

2. If there is any change in the workflow that has been done in UAT environment manually and same changes they need in Production environment also.

Problem Statement

You may receive error that (V41 already exist. Import has been cancelled) while importing the exported version 41 if there is already version 41 exist in the D365 environment where you are importing this.

8206.pastedimage1663324889641v7.png

Solution

Suppose we want to import Purchase Requisition Workflow:

Go to the procurement and Sourcing > Setup > Procurement and sourcing workflow and select purchase requisition review workflow then click on Versions.

6888.pastedimage1663318257634v1.png

Select the version that you wanted to import in another environment and click on export

2148.pastedimage1663322482966v2.png

Selected version of the workflow will be downloaded in your computer

5383.pastedimage1663322764429v3.png

Now, Let's Import the Exported version of the workflow in another environment

Go to the procurement and Sourcing > Setup > Procurement and sourcing workflow and select purchase requisition review workflow then click on Versions then click on Import:

4024.pastedimage1663323733404v4.png

Now, browse the exported file of version 41.27.2.0 and Upload then click OK 

4188.pastedimage1663324064005v5.png

Here, Important Point to note, you may receive error while importing the above exported version 41.27.2.0 if there is already version 41 exist in the D365 environment where you are importing this.

2526.pastedimage1663324726985v6.png

Let's Rectify the issue:

Go to your downloaded workflow version and right click and EDIT

7776.pastedimage1663325991152v8.png

In my case it is opened in the Notepad, you need to look for VersionIDMajor which will be 41, you need to change this to higher version which does not exist in you D365 environment. We change it to 42 and SAVE this. 

0486.pastedimage1663326426467v9.png

And then try to Import the same it will be imported with major version 42. If you want to activate version 42 just click on Mark Active.

5824.pastedimage1663326857671v10.png

8182.pastedimage1663327198600v11.png

And here we go with newly imported workflow...

Happy learning!

Thank you 

Comments

*This post is locked for comments