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 :
Finance | Project Operations, Human Resources, ...
Suggested answer

Publish an organizational Hierarchy via. X++

(0) ShareShare
ReportReport
Posted on by

Hi All, I am trying to publish an organizational Hierarchy which is in draft state. I have to accomplish this using X++.
Why i need to do it using X++? Well, we are trying out an automation possibility for creating an setting up multiple LE's as required. We are not looking for copy LE feature as of now.

I could see "OMORGANIZATIONHIERARCHYPUBLISHEDANDDRAFTENTITY" have the org data in draft state. But when i try to update it to "IsDraft = NoYes::No", its not really updating anything.
Also no record is getting inserted into "OMORGANIZATIONHIERARCHYPUBLISHEDENTITY"

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    297,339 Super User 2025 Season 2 on at
    RE: Publish an organizational Hierarchy via. X++

    Hi Anish,

    On the form HierarchyDesigner, you can find a method called publishRevision which has the coding which can help you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 764 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 619 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 603 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans