What data source shall be used at component level for an API task?

What data source shall be used at component level for an API task?

Firstly, Data Source helps to bind the data to a particular entity of the flow at any
level.
The data source used at component level for an API task will be OBJECT.
The ObjectDataSource control uses reflection to create instances of business objects
and to call methods on them to retrieve, update, insert, and delete data.
We choose OBJECT when data is already present in our data object and we have to
use it for fetching the data.Data will always be picked from the master object using
getVal function.
For Ex

{
tempObject:{
data:{id:1,name:”abc”}
},
P101:[{status:active}]
}
Use statement like getVal(‘tempObject.data’) or getVal(‘P101’)

Firstly, Data Source helps to bind the data to a particular entity of the flow at any
level.
The data source used at component level for an API task will be OBJECT.
The ObjectDataSource control uses reflection to create instances of business objects
and to call methods on them to retrieve, update, insert, and delete data.
We choose OBJECT when data is already present in our data object and we have to
use it for fetching the data.Data will always be picked from the master object using
getVal function.
For Ex

{
tempObject:{
data:{id:1,name:”abc”}
},
P101:[{status:active}]
}
Use statement like getVal(‘tempObject.data’) or getVal(‘P101’)

1 Like