getReplicatedDatasets

Retrieves a collection of CRM Analytics replicated datasets, also known as connected objects.

Syntax 

1import { LightningElement, wire } from "lwc";
2import { getReplicatedDatasets } from "lightning/analyticsWaveApi";
3
4export default class GetReplicatedDatasets extends LightningElement {
5  @wire(getReplicatedDatasets, {
6    category: "Output",
7  })
8  onGetReplicatedDatasets({ data, error }) {
9    if (error) {
10      console.log("getReplicatedDatasets ERROR:", error);
11    } else if (data) {
12      console.log("getReplicatedDatasets RESPONSE:", data.replicatedDatasets);
13    }
14  }
15}

CRM Analytics API Resource 

1GET /wave/replicateddatasets

getReplicatedDatasets uses this CRM Analytics API resource.

Parameters 

These parameters are optional.

Parameter NameTypeDescription
categoryStringFilters the collection to include only connected objects of the specified category.
  • Input
  • Output
connectorStringFilters the collection to include only connected objects belonging to the specified CRM Analytics connector.
includeLiveBooleanFilters the collection to include live datasets. The default is false.
qStringSearch terms. Individual terms are separated by spaces. A wildcard is automatically appended to the last token.
sourceObjectStringFilters the collection to include only connected objects belonging to the specified source object.

Returns