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

Dynamics 365 — Retrieve More than 5000 records with FetchXML

  When you’re working with Dynamics 365, you may have encountered a limitation when it comes to retrieving records. The maximum number of re...