Skip to Content
1
Aug 01, 2023 at 02:42 AM

Mapping a rest API response in Build Apps

868 Views

I am consuming a REST API in Build App and need to map few fields from data collection and as well as msgs.count from collections collection as shown in below images.

image.png

image.png

I have added below code in Response mapper to map fields from the data collection and created an entity.

image.png

{ records: response.data.data , driverCode: response.status }


Is it possible to map the msgs.count from collections collection as well in the same entity along with other fields from data collection from the rest API?

Attachments

image.png (372.6 kB)
image.png (31.9 kB)
image.png (212.6 kB)