FINS Salesforce Marketing System API - Implementation Template

(1 review)

Deployment

Each Accelerator implementation template in Exchange includes Bash and Windows scripts for building and deploying the APIs to CloudHub. These scripts depend on repositories, global settings, deployment profiles, and associated properties configured in the Maven settings.xml file.

Many templates can also be run from Anypoint Studio without having to customize the Run/Debug profiles. However, some templates make use of hidden deployment properties to protect sensitive information (e.g., passwords and secret keys). These properties must be supplied to the runtime by updating the configuration profile and adding them as VM arguments.

Preparation

Ensure the Maven profile CloudHub-FINS-DEV has been properly configured in your settings.xml file. In particular, make sure the common properties for your environment have been provided (e.g., Anypoint Platform client ID and secret).

Required property overrides

At a minimum, the following properties must be customized to reflect the target deployment environment. An Installed Package is created on Salesforce Marketing System and details are available from the API Integration section of Installed Package Details screen.

Property NameDescription
api.autodiscoveryIDRequired if using API Manager to secure this API
sfdc-mc.subdomainSalesforce Marketing System sub domain
sfdc-mc.client-idSalesforce Marketing System Installed Package Client Id for API Integration
sfdc-mc.client-secretSalesforce Marketing System Installed Package Client Secret for API Integration
sfdc-mc.account-idSalesforce Marketing System Account Id of the instance
sfdc-mc.auth-urlSalesforce Marketing System Auth URL of Installed Package for API Integration
sfdc-mc.soap-urlSalesforce Marketing System SOAP URL of Installed Package for API Integration

Please refer to the README.md file in the asset for detailed instructions on how to download and deploy the template.

Running the application from Anypoint Studio

The following instructions are for running applications from Studio but apply to debugging as well.

  1. Update the src/main/resources/config/config-local.yaml file and provide values for the properties described above.
  2. Right-click the project and select Run As -> Mule Application (configure)
  3. If hidden deployment properties (e.g., Anypoint MQ credentials) are required, select the Arguments tab and add the property definitions to the VM arguments section. For example:
     -M-Danypoint-mq.client-id=<client id> -M-Danypoint-mq.client-secret=<client secret>
  4. Click Run to launch the application.

To debug an application, choose Debug As -> Mule Application (configure) in the second step instead.

Deployment instructions for CloudHub

The following instructions apply to CloudHub deployments only.

  1. Update the config-dev.yaml properties as described above. You can also choose to add them to your settings.xml file instead.
  2. Use one of the following scripts to deploy application to CloudHub:

    • packageDeploy.sh (Mac/Linux) or packageDeploy.cmd (Windows) - clean, build, and deploy the application
    • deployOnly.sh (Mac/Linux) or deployOnly.cmd (Windows) - deploy a previously-built application
  3. Bring up the Runtime Manager console in Anypoint and monitor the application for proper startup.

Next steps

Visit the Data mappings tab to learn more about how the request and response data structures are mapped between the API interface and the salesforce system.


Reviews

TypeTemplate
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onAug 31, 2023
Asset overview

Asset versions for 3.0.x

Asset versions
VersionActions
3.0.3
3.0.2
3.0.1
3.0.0