Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to create a site map for a model-driven app, which uses entities from several managed solutions?

Posted on by 287

Dear Community,

there are 3 managed solutions installed on my prod environment. I want to create a model-driven app, which uses entities all three solutions. Should I create a new solution, which contains just the model driven app? I have a development and production environment, so my idea would be to create an unmanaged solution on my development env with the model driven app and import it as managed on the production environment.

Thank you!

  • Suggested answer
    Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: How to create a site map for a model-driven app, which uses entities from several managed solutions?

    Indeed I think it's a matter of solution layering so I would make sure that the app is only present once (and so naturally at the top).

  • BrettL Profile Picture
    BrettL 30 on at
    RE: How to create a site map for a model-driven app, which uses entities from several managed solutions?

    That makes sense. Now that I read your link, I've run into that, too. I wonder if the "fix" is the same... In any case, I think your way is the way most likely to not create exotic failure methods. It stinks that you can really only work on one solution at a time if it affects the app. I'm going to bookmark this to look into in the future. I'm an old coder, and playing with an xrmtoolbox extension might be a fun side project. You won't be the last person to have this issue.

  • KVa Profile Picture
    KVa 287 on at
    RE: How to create a site map for a model-driven app, which uses entities from several managed solutions?

    Thank you for your answer. This link got me thinking: crmtipoftheday.com/.../ as well this plugin: www.xrmtoolbox.com/.../

    I experienced difficulties with the following scenario:

    * Unmanaged solution A with model driven app and is exported from dev and import into production as managed (all fine)

    * Unmanaged solution B provides only additional entites. Solution B is exported as managed and imported into production.

    * Unmanaged solution C adds the model driven app from solution A and modifies is. Solution C is exported as managed and imported into prod.

    Now, when I open the model driven app on my development environment it looks fine. However, when I import solution A into prod the model driven app sitemap looks different compared to when I import solution C. It seems to me, that as soon as I added the model driven app of A into C the state of the app froze as is in solution A. That's why I am thinking about add a solution with just a model driven app to put on top of all solutions.

  • BrettL Profile Picture
    BrettL 30 on at
    RE: How to create a site map for a model-driven app, which uses entities from several managed solutions?

    Its an interesting question. I think you will find that manageable. The part that challenges the traditional solution model is that now if you make changes to one of underlying solutions, you have to change the app solution as well. I guess the other way to do it is to put the app in all of the solutions so that if you change that solution, you can change the app in that solution. The app really lives on its own in each environment as a single app, so it should stay up to date across solutions, but I haven't verified that behavior in real life.

    After thinking about this some more, I'm not sure that in either case you will be able to change two base solutions in ways that affect the app at the same time, safely.

    In the App Isolated case, if you are making solution changes to two of your base solutions, the app solution can't be deployed until both base solutions are deployed. Or another way to say that is that you can only change one base solution at a time if you want a clear dependency path. 

    In the App in All case, you're going to run into the same problem because there's really only one App. Although your changes "should" technically be isolated by solution, when you go to export the App in one solution it is still going to have all of the other solution's dependencies attached to it.

    Cool problem. Let me know how you solve it.

    Brett

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans