getDataflowJob

Retrieves a specific CRM Analytics dataflow job.

Syntax 

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

CRM Analytics API Resource 

1GET /wave/dataflowjobs/${dataflowjobId}

getDataflowJob uses this CRM Analytics API resource.

Parameters 

Parameter NameTypeDescriptionRequired?
dataflowjobidStringThe ID of the dataflow job.Yes

Returns