Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / If I have made code ch...
Finance forum
Suggested answer

If I have made code changes in Company A's D365FO environment using Visual Studio, is it possible to deploy it in Company B's D365FO environment?

Posted on by 240

If I have made code changes in Company A's D365FO environment using Visual Studio, is it possible to deploy it in Company B's D365FO environment given that Companies A and B have the following resources respectively:

  1. Company A: D365FO, LCS, Visual Studio, RDP (Virtual Machine)

  2. Company B: D365FO, Power Platform

  • Mark JZ Yeap Profile Picture
    Mark JZ Yeap 240 on at
    RE: If I have made code changes in Company A's D365FO environment using Visual Studio, is it possible to deploy it in Company B's D365FO environment?

    Ok. Thanks for the info.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: If I have made code changes in Company A's D365FO environment using Visual Studio, is it possible to deploy it in Company B's D365FO environment?

    Every company who is using D365FO should "have" LCS. If they have D365 licenses, they can (and should) create LCS project(s).

    But, you can deploy deployable packages via LCS, or via command line (to one box environments). You can deploy the same deployable package to any customer's environment. As long as all target environments have same or higher platform version than the build system that you used to create the deployable package.

    But since you talk about copying code of one customer to another customer, please make sure that you have the IPR (Intellectual Property Rights) to this code. This depends on your agreement with the customer. If the first customer owns the code, then you of course need their permission to share it to others.

    Also remember that if the second customer has ANY other customization or ISV solution in their system, you can't just deploy your package to their system (test/prod). If you do it, you will wipe out all other CUS/ISV code from that system. Instead this new code must be added to the source control of that customer, and built into All-In-One deployable package that contains all custom&ISV code for that customer.

  • Mark JZ Yeap Profile Picture
    Mark JZ Yeap 240 on at
    RE: If I have made code changes in Company A's D365FO environment using Visual Studio, is it possible to deploy it in Company B's D365FO environment?

    Company B does not have LCS. It only got D365FO and Power Platform.

    Company A has D365FO, LCS, Visual Studio, RDP (Virtual Machine).

  • huijij Profile Picture
    huijij 19,803 on at
    RE: If I have made code changes in Company A's D365FO environment using Visual Studio, is it possible to deploy it in Company B's D365FO environment?

    Hi Mark,

    The environment ID is a globally unique identifier (GUID) that you can find on the environment's details page, under Environment Details > Environment ID. For example Company B can deploy the enviroment with the LCS Environment ID. And you Can't sync source code, only packages.

    regards

  • Mark JZ Yeap Profile Picture
    Mark JZ Yeap 240 on at
    RE: If I have made code changes in Company A's D365FO environment using Visual Studio, is it possible to deploy it in Company B's D365FO environment?

    Are there any other solutions?

  • Mark JZ Yeap Profile Picture
    Mark JZ Yeap 240 on at
    RE: If I have made code changes in Company A's D365FO environment using Visual Studio, is it possible to deploy it in Company B's D365FO environment?

    LCS does not have a connection between two environments.

  • Mark JZ Yeap Profile Picture
    Mark JZ Yeap 240 on at
    RE: If I have made code changes in Company A's D365FO environment using Visual Studio, is it possible to deploy it in Company B's D365FO environment?

    Ok. Thank you for the answer!

  • Suggested answer
    huijij Profile Picture
    huijij 19,803 on at
    RE: If I have made code changes in Company A's D365FO environment using Visual Studio, is it possible to deploy it in Company B's D365FO environment?

    Hi Mark,

    You can use the Deploy Lifecycle Services (LCS) Asset Deployment task in Microsoft Azure DevOps to automate the deployment of assets that are stored in the Asset library in Microsoft Dynamics Lifecycle Services

    (LCS) to specific environments.

    https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/pipeline-deploy-asset

    regards

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans