getRecipeNotification

特定のデータプレップレシピの通知設定を ID で取得します。

構文 

1import { LightningElement, api, wire } from "lwc";
2import { getRecipeNotification } from "lightning/analyticsWaveApi";
3
4export default class GetRecipeNotification extends LightningElement {
5  @api recipeId; // or fetch the ID
6  @wire(getRecipeNotification, {
7    id: "$recipeId",
8  })
9  onGetRecipeNotification({ data, error }) {
10    if (error) {
11      console.log(`getRecipeNotification(${recipeId}) ERROR:`, error);
12    } else if (data) {
13      console.log(`getRecipeNotfication(${recipeId}) RESPONSE:`, data);
14    }
15  }
16}

データプレップレシピ API リソース 

1GET /wave/recipes/${id}/notification

getRecipeNotification は、このデータプレップレシピ API リソースを使用します。

パラメータ 

  • id — (必須) レシピの ID。

戻り値 

The Japanese Summer '24 guide is now live

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