Wednesday, 11 June 2025

Renaming root Business Unit in Dynamics crm

 There is a surprisingly easy solution for this.  

Go to the business unit form (where you normally change the name of businessunit name).  

Notices "Parent Business" unit field is required. We just need to remove that validation. We can do that with a harmless script.

Open browser DevTools (F12) -> open tab Console -> Write or paste following script: -> and press enter.

5756.script.png

Xrm.Page.getAttribute("parentbusinessunitid").setRequiredLevel("none")

The "Parent Business" field is no longer required!
Now change the name and press save. 

No comments:

Post a Comment

PCF Framework - Quick Guide

  Let us see it in action using a sample project. Launching the test harness, we can see the  init  executed followed by  updateView . Makin...