Category: Import / Export solution

How to change Publisher Prefix

How to change Publisher Prefix

What we do if we need to change prefix  for already created entity in CRM dynamics. Today i’ll explain how we can do this without creating entity and all other solution component from skretch. I’ll explain step by step with screenshots.

 

First we create a new solution in CRM dynamics and also create and add new publisher for this solution.
Solution Name – Sample Solution For 2015
Publisher Name- Aman Kothari
Publisher Pregix – am15

s1

 

For our demo purpose i just created  a new entity  i.e. am15_student

s2

s3

After that we export it as unmanaged solution.

s4

 

s5

we are open it into winrar or any other zip extract tool (without extracting into folder). It contains three xml files i.e.
[Content_Types].xml
customization.xml
solution.xml

we need to change only the highlighted files.

s6

s7

let’s create one more publisher in CRM i.e. Admin CRM 2015 and prefix name is am2016.

we’ll change Student entity from am15_student to am2016_student

s8

First we open solution.xml file in VS. after that we replace unique name , lozalized name, customized prefix name of solution with new one.
E.g. am15 to am2016 , Aman Kothari to Admin CRM 2016 etc.

 

s9

s10

after changing it we need to save xml file.

s12

after updating solution.xml file, customization.xml file needs modification .

In cusomization.xml we replaced prefix for entities, attributes, relationships, formxml of forms etc from am15_ to am2016_  and save it.

 

s13

s14

Now our zip solution is ready with new publisher name and prefix let’s import this file after delete the first solution.( because solution name is same so it conflicts with old solution components).

 

s16

Solution imports successfully. 🙂

s17

So this is how you can change the schema of unmanaged solution component.

Thank you for visiting my blog 🙂