Package Your Tableau Next App

After creating Tableau Next assets in your scratch org and adding them to a data kit, you’re ready to package and deploy.

  1. From the CLI, run the following command to create a beta Salesforce managed package that points to your data kit metadata folder:

    1sf package create -n PACKAGE_NAME -t Managed -v DEVHUB_ALIAS -p PATH_TO_DATA_KIT

    Beta packages can only be installed in scratch orgs. See package create.

  2. If your Data 360 app builds on the Data Cloud Single Source of Truth (SSOT) package, you must declare the SSOT package as a dependency in your sfdx-project.json file. Find the latest SSOT package ID on the Salesforce Partner Community site. For example, if your package includes a CRM data stream that maps to a standard data model object (DMO), include the SSOT package as a dependency.

    1{
    2        "versionName": "ver 0.1",
    3        "versionNumber": "0.1.0.NEXT",
    4        "path": "data-cloud-app",
    5        "default": false,
    6        "package": "PACKAGE_NAME",
    7        "versionDescription": "",
    8        "dependencies": [
    9            {
    10                "package": "0123456789abcdef"
    11            }
    12        ]
    13  }
  3. Creating the managed package produces a 0ho ID. Copy that ID. Next, create a managed package version with the 0ho ID.

  4. Use the following command to create the package version:

    1`sf package version create -v DEVHUB_ALIAS -k INSTALLATION_KEY -p 0ho_ID -w 45 -f config/project-scratch-def.json`

    See package create.

  5. To distribute the package, promote the package version to a released version. The released version can be installed in a production org. See Release a Second-Generation Managed Package.