getActions

CRM Analytics ユーザが使用できる Salesforce アクションのコレクションを取得します。

構文 

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 リソース 

1GET /wave/actions/${entityId}

getActions は、この CRM Analytics API リソースを使用します。

パラメータ 

  • entityId — (必須) CRM Analytics ユーザの ID。

戻り値 

The Japanese Summer '24 guide is now live

日本語の Summer '24 ガイドが公開されました! 「Component Reference (コンポーネントリファレンス)」は、以前と同様にコンポーネントライブラリにあります。