getDependencies

Returns the dependencies for an asset. The dependencies resource returns only assets for which the user has view access.

Syntax 

1import { LightningElement, wire } from "lwc";
2import { getDependencies } from "lightning/analyticsWaveApi";
3
4export default class GetDependencies extends LightningElement {
5  @api aId; // this is the CRM Analytics asset ID
6  @wire(getDependencies, {
7    assetId: "$aId",
8  })
9  onGetDependencies({ data, error }) {
10    if (error) {
11      console.log("getDependencies ERROR:", error);
12    } else if (data) {
13      console.log("getDependencies RESPONSE:", data.dependencies);
14    }
15  }
16}

CRM Analytics API Resource 

1GET /wave/dependencies/${assetId}

getDependencies uses this CRM Analytics API resource.

Parameters 

Parameter NameTypeDescriptionRequired?
assetIdStringThe ID of the CRM Analytics asset.Yes

Returns 

Release Preview

This release is in preview. Features described here don't become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can't guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.