getRecipeNotification

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

Syntax 

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}

Data Prep Recipe API Resource 

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

getRecipeNotification uses this Data Prep Recipe API resource.

Parameters 

Parameter NameTypeDescriptionRequired?
idStringThe ID of the recipe.Yes

Returns