getActions

Retrieves a collection of Salesforce actions available to a CRM Analytics user.

Syntax 

1import { LightningElement, wire } from "lwc";
2import { getActions } from "lightning/analyticsWaveApi";
3
4export default class GetActions extends LightningElement {
5  @api userId; // this is the CRM Analytics user ID
6  @wire(getActions, {
7    entityId: "$userId",
8  })
9  onGetActions({ data, error }) {
10    if (error) {
11      console.log("getActions ERROR:", error);
12    } else if (data) {
13      console.log("getActions RESPONSE:", data.actions);
14    }
15  }
16}

CRM Analytics API Resource 

1GET /wave/actions/${entityId}

getActions uses this CRM Analytics API resource.

Parameters 

Parameter NameTypeDescriptionRequired?
entityIdStringThe ID of the CRM Analytics user.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.