Install Sana on a UDE Environment
If you need to apply a deployable Sana package or install a Sana model on a cloud-hosted environment (CHE) through Microsoft Dynamics Lifecycle Services (LCS), skip this article and see Install Sana on a Cloud-Hosted Environment.
Use this article to install Sana Commerce Cloud in a Microsoft Dynamics 365 for Finance and Operations environment that uses the Unified Development Experience (UDE). In a UDE environment, you build and deploy models directly from Visual Studio to an online environment managed in the Power Platform admin center.
Prerequisites
Make sure that you have the following:
-
A UDE environment with Microsoft Dynamics 365 for Finance and Operations, provisioned in the Power Platform admin center.
-
Visual Studio with Power Platform Tools installed, connected to your UDE environment, with the metadata configuration setup.
-
The Sana Commerce package for Microsoft Dynamics 365 for Finance and Operations, downloaded from the Sana Community website (available only to Sana Commerce partners). Download the package that matches the application and platform version of your environment.
-
The Sana Commerce license file for your environment.
The Sana model is available only for the latest supported version of Microsoft Dynamics 365 for Finance and Operations. For more information, see Microsoft Dynamics 365 for Finance and Operations FAQ.
Step 1: Extract the Sana model from the Sana Commerce package to the metadata folder that your Microsoft Visual Studio configuration uses for custom metadata.
To check which folder your configuration uses, in Visual Studio, click: Extensions > Dynamics 365 > Configure Metadata.
Step 2: In the Sana Commerce package folder, create a folder named __License with two underscores at the same level as the bin folder. Then, copy the Sana Commerce license file license_[company].com.txt to this folder.
Example: ...\SanaCommerce\__License\license_democompany.com.txt
The folder name starts with two underscores. If the folder name is different, the license is not applied during deployment.
For more information, see How do I include a license and directly deploy from Visual Studio?
Step 3: In Visual Studio, click: Extensions > Dynamics 365 > Model Management > Refresh models. Visual Studio then loads the Sana Commerce models that you extracted.
Step 4: In Visual Studio, click: Extensions > Dynamics 365 > Build Models. Select the Sana Commerce model and start the build.
Make sure that the build completes without errors before you continue.
Step 5: In Visual Studio, click: Extensions > Dynamics 365 > Deploy > Deploy Models to Online Environment. Select the Sana Commerce model and make sure that the Sana Commerce package is included in the deployment.
During the deployment, the Sana Commerce license is verified and applied.
Step 6: In Visual Studio, click: Extensions > Dynamics 365 > Synchronize Database and run a full database synchronization. The Sana Commerce license takes effect only after a full synchronization.
When the synchronization is complete, open Microsoft Dynamics 365 for Finance and Operations. The Webshop module is now available in the navigation pane.
If the deployment fails during database synchronization, open the log using the link in the Visual Studio Output window. You can also find the log in the Finance and Operations Package Manager app in Dataverse, under Operation History. For more information, see Checking logs and history.