Loading
メールアドレスがデフォルトのログイン方式となります 続きを読む
Tableau Next
Promote Tableau Next Assets to Production Using the Salesforce CLI

Promote Tableau Next Assets to Production Using the Salesforce CLI

Download a manifest from Task Manager, retrieve asset metadata from the source org, and deploy it to your production org using the Salesforce CLI and VS Code.

Required Editions

View supported editions.
User Permissions Needed
To deploy Tableau Next assets: System Administrator profile AND Data Cloud Architect permission set AND Tableau Next Admin permission set
To access asset metadata: Metadata API Edit Access

Before you begin, complete these prerequisites:

For previous steps in the promotion process, see Review and Complete Asset Promotions from Personal Orgs to Production.

In this flow, you download a manifest from Task Manager in Tableau Next, use the Salesforce CLI to retrieve the asset from the Personal Org into a local project, and then deploy the asset to your production org. This flow is required when promoted content includes Excel files or data connections, and is also available for any promotion.

Authorize Your Org

  1. Authorize your CLI environment using one of these methods.

Create a Project for Promotion Assets

  1. Open VS Code and create a Salesforce DX project.
    1. Open the VS Code Command Palette (⇧⌘P) and enter SFDX: Create Project.
    2. Press Enter to use a standard project template.
    3. Enter a project name and press Enter.
    4. Select the directory where you want to create your project and click OK.
    5. In the new project, create a folder for the package manifest files. For example, manifests.

Retrieve the Promotion Asset

  1. In Task Manager in Tableau Next, download the manifest file for the promotion request. You can use the downloaded manifest file to retrieve the asset metadata from the source org.
    Fetching data: Manifest and data kit are about to be fetched. The files will download automatically to your computer when they are ready. After the download is completed, review the content and then return to Task Manager to complete the promotion.
  2. In VS Code, run the sf project retrieve start command to retrieve the asset metadata from the Personal Org.

    Syntax

    sf project retrieve start --manifest <path_to_manifest_file> -o <source_org_alias>

    Example

    sf project retrieve start --manifest manifests/manifest.xml -o personal-org

    The command creates metadata files for each asset in the manifest and writes them to ../force-app/main/default in your project.

Deploy the Promotion Asset

  1. Now that all metadata files are in your project folder, you can deploy them to the destination org. In VS Code, run the sf project deploy start command to deploy the assets to your production org.
    Note
    Note Before you can deploy the project to the destination org, you must Authorize Your Org.

    Syntax

    Add the manifest path to the project json file.

    sf project deploy start --manifest <path_to_manifest_file> -o <target_org_alias>

    Example

    sf project deploy start --manifest manifests/manifest.xml -o prod

    The command creates the Tableau Next assets in the production org using the metadata files for each asset in the manifest.

  2. Confirm that the assets appear in Tableau Next. Then, mark the promotion completed in Task Manager
    .
    Task Manager in Tableau Next with a table of promotion assets. A promoted asset line includes a button labeled Complete Promotion.
    The promoted assets are available in your production org.
 
読み込み中
Salesforce Help | Article