getReplicatedFieldsWithAdvancedProps

Retrieves a collection of fields, using advanced filtering options, belonging to a CRM Analytics replicated dataset, also known as a connected object.

getReplicatedFieldsWithAdvancedProps uses this CRM Analytics API resource.

Parameter NameTypeDescriptionRequired?
idStringThe ID of the replicated dataset.Yes
sourceObjectParamObjectThe SourceObjectDataInput providing the advanced properties for filteringYes

There are several ways to use getReplicatedFieldsWithAdvancedProps. For example, you can display a list of replicated datasets and the filtered fields for each replicated dataset.

This example adds an get button to a page with replicated datasets. The page must contain form elements for the information required to filter the fields for the replicated dataset, like the advanced properties names and values, and a list of fields to filter. Filtering the fields for a replicated dataset displays a toast message using the lightning/platformShowToastEvent module.

This button calls the getReplicatedFieldsWithAdvancedProps() method.