How does index array object works in vFlow2.0?

How does index array object works in vFlow2.0?

2 Likes

Suppose you have a table and needs to get the specific index fetched and display it’s details on the form. Then we’ll have to use control copy task and indexing logic to achieve that.

1. If you need to fetch the index value only:

We’ll use Group Copy task to fetch the data from the index object and display the value at specific path.
For instance: Copy From - getVal(“indexObject.1743576970931631”)
Copy To - getVal(“indexObject.tempObject.SPGETBANKUSER.json_build_object.value.data”)

2. If you need to fetch the specific data at that index value:

The process remains the same but the path may vary and will have to add , to get the value from the array of object.

For instance: Copy From - getVal(‘tempObject.SPGETBANKUSERLISTresponse.json_build_object.value.data.name’)
Copy To - getVal(“tempObject.NewUser.Name”)

2 Likes