getRecipeNotification

Retrieves the notification settings for a specific data prep recipe by ID.

Syntax 

import { LightningElement, api, wire } from "lwc";
import { getRecipeNotification } from "lightning/analyticsWaveApi";

export default class GetRecipeNotification extends LightningElement {
  @api recipeId; // or fetch the ID
  @wire(getRecipeNotification, {
    id: "$recipeId",
  })
  onGetRecipeNotification({ data, error }) {
    if (error) {
      console.log(`getRecipeNotification(${recipeId}) ERROR:`, error);
    } else if (data) {
      console.log(`getRecipeNotfication(${recipeId}) RESPONSE:`, data);
    }
  }
}

Data Prep Recipe API Resource 

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

getRecipeNotification uses this Data Prep Recipe API resource.

Parameters 

Parameter NameTypeDescriptionRequired?
idStringThe ID of the recipe.Yes

Returns 

The Summer '25 guide is now live

Looking for the Component Reference? Go to https://developer.salesforce.com/docs/component-library/.