A sample project showing how to create a custom deployment action provider for Application Architect
This project shows a fully working sample to create custom deployment step for Application Architect. This allows you to create custom actions for deployments where you can write files to the deployment folder, create connections to teh Saleslogix database, etc.
To Use This Sample:
- Build the project in Visual Studio
- Copy the DLL to the C:\Program Files (x86)\Saleslogix\Platform folder
- Restart Application Architect
- In Application Architect, expand the Portal Manager and the select the portal you want to add this to, such as the SlxClient portal
- In the Properties grid with the SlxClient portal selected, you'll see a property for DeploymentActionTypes. Click that to bring up the editor
- Add your new assebmbly to the list. In the case of this sample, the "Type Name" value would be "FX.Deployment.SampleDeploymentAction, FX.Deployment"
- Deploy and the code will execute as a part of the deployment
To Create Your Own Deployment Action Provider
- Create a new Class Library project in Visual Studio, set the framework version to .NET 4.5.2
- Add a reference to Sage.Platform.WebPortal.Design.dll in C:\Program Files (x86)\Saleslogix\Platform
- Add a reference to Sage.Platform.Deployment.dll in C:\Program Files (x86)\Saleslogix\Platform
- Add a reference to Sage.Platform.Projects.dll in C:\Program Files (x86)\Saleslogix\Platform
- Add a reference to Sage.Platform.Application.dll in C:\Program Files (x86)\Saleslogix\Platform
- Add a new class to your project that implements the interface Sage.Platform.WebPortal.Design.IDeploymentActionProvider
- For the GetDeployableItems method, you can just add
return new IShadowCopyItem[0];
if you don't want to deploy any new files - Copy the assembly to C:\Program Files (x86)\Saleslogix\Platform
- Restart Application Architect
- In Application Architect, expand the Portal Manager and the select the portal you want to add this to, such as the SlxClient portal
- In the Properties grid with the SlxClient portal selected, you'll see a property for DeploymentActionTypes. Click that to bring up the editor
- Add your new assebmbly to the list
- Deploy and your code will execute