VisualizationDelete

Use this node to delete visualizations from an app. You can delete all visualizations or selectively delete specific visualizations by specifying their template asset names.

Asset Type Name for Rules 

visualization

Example Definition in chain.json 

Delete all the visualizations for an app or only delete specific visualizations by name with templateAssetNames.

Delete All Visualizations 

1{
2  "name": "delete_all_visualizations",
3  "label": "Deletes All Visualizations",
4  "dominoVariant": "sfdc_internal__UnifiedAnalyticsDominoVariant",
5  "parameters": {},
6  "definition": {
7    "nodes": {
8      "delete_visualization": {
9        "graphNodeType": {
10          "name": "VisualizationDelete"
11        },
12        "parameters": {
13          "condition": "${Variables.shouldDeleteVisualizations}"
14        },
15        "sources": [],
16        "runAs": "CurrentUser"
17      }
18    }
19  }
20}

Delete Specific Visualizations 

1{
2  "name": "selective_delete_visualization",
3  "label": "Selectively Deletes Specific Visualizations",
4  "dominoVariant": "sfdc_internal__UnifiedAnalyticsDominoVariant",
5  "parameters": {},
6  "definition": {
7    "nodes": {
8      "delete_visualization": {
9        "graphNodeType": {
10          "name": "VisualizationDelete"
11        },
12        "parameters": {
13          "templateAssetNames": ["my_visualization"]
14        },
15        "sources": [],
16        "runAs": "CurrentUser"
17      }
18    }
19  }
20}

Parameters 

ParameterDefinition
condition(Optional) An EL expression, evaluated at runtime, that determines whether to execute the delete operation or not. If the condition evaluates to false, the node is skipped.
templateAssetNames(Optional) A list of template asset names to selectively delete. When specified, only the visualizations matching these template asset names are deleted. When omitted or empty, all visualizations in the app are deleted.

Set runAs to CurrentUser so that deletion is limited to the permissions of the user installing the app. If you omit runAs, the node runs as AutoProc, a system user, which fails security review in delete chains.

Note

App Context Values 

Nothing added to App Context.

On Failure 

If this task fails, it returns a FAIL_TERMINAL status. The chain stops and no downstream nodes run.

See Also