Deploy Data Kit Components by Using Deploy Data Kit Components Flow
Deploy all standard data kit components sequentially to a target org using the Deploy Data Kit Components flow.
You provide the input for the flow: data kit name, data space name, and the component payload list and send the POST request to trigger the flow.
Before moving to the next component, the flow waits for the deployment status of the previous component.
The response body contains the Flow_InterviewGuid.
This flow is available by using the REST API version 61.0 and later.
The basic workflow to deploy standard data kit components includes these steps.
This is the syntax required for the request payload. The payload can be in either JSON or XML format.
HTTP Method
POST
Authentication
Authorization: Bearer token
Properties
Name
Type
Description
dataKitComponentsInput
sfdatakit__DeployComponentInput
Required. A collection of data kit components to deploy. The collection list contains the payload details about the components.
dataKitNameInput
Text
Required. The data kit name that contains the components.
dataKitDataSpaceInput
Text
Optional. The name of the data space to deploy the data kit. If a data space isn’t defined, the system deploys the components in the default data space.
Request Payload Examples
The example shows sample input payloads for different data kit components:
1{2 "inputs": [3 {4 "dataKitComponentsInput": [5 {6 "componentType": "CalculatedInsight",7 "calculatedInsightsConfig": {8 "apiName": "crm",#full Qualified CI Name with namespace in datakit9 "apiNameOverride": "hello", #api name of CI to be created on org10 "label": "lab", #label of CI to be created on org11 "publishInterval":"NotScheduled" #NotScheduled,One,Six,Twelve,TwentyFour12 }13 }14 ],15 "dataKitNameInput": "datakit1",16 "dataKitDataSpaceInput" : "default"17 }18 ]19}
Data Lake Object
1{2 "inputs": [3 {4 "dataKitComponentsInput": [5 {6 "componentType": "DataLakeObject",7 "dloConfig": {8 "dataSourceObjectDevName": "crm",#full Qualified DLO Name with namespace in datakit9 "apiName": "hello",#api name of DLO to be created on org10 "label": "lab"#label of DLO to be created on org11 }12 }13 ],14 "dataKitNameInput": "datakit1",15 "dataKitDataSpaceInput" : "default"16 }17 ]18}
1{2 "inputs": [3 {4 "dataKitComponentsInput": [5 {6 "componentType": "DataTransform",7 "dataTransformConfig": {8 "dataTransformType": "BATCH", #STREAMING,BATCH9 "dataTransformDevName": "BatchTransformAccount",#full Qualified Transform Name with namespace in datakit10 "apiName":"BatchTransformAccount",#api name of Transform to be created on org11 "label" : "BatchTransformAccount"#label of Transform to be created on org12 }13 }14 ],15 "dataKitNameInput": "datakit1",16 "dataKitDataSpaceInput" : "default"17 }18 ]19}
This example request triggers the deploy data kit components flow to deploy the data stream bundle, data lake objects, and data transforms components from the ** MyTestDatakit** data kit.