Skip to main content
gopinathb0002
Known Participant
Apr 12, 2022 9:07 AM UTC
Question

Manipulation of list of dictionary for record data source

Step1: I have a record type backed by a Webservice.

My expression: local!integrationResponse.result.body.rawData returns list of dictionary as below:

List of dictionary - 4010 items

Dictionary

- Region "" (Text)

- State"" (Text)

When I tested data source, I got below error in record type: The Record Data Source did not evaluate to a DataSubset. Received: List of Dictionary.

Step2: 

I modified my expression as todatasubset(local!integrationResponse.result.body.rawData). Now the record type displays 4010 empty records.
May I know how to resolve the dataset returned to match the datatype of the record.

5 replies

gopalk2865
Participating Frequently
Apr 12, 2022 9:48 AM UTC

Hi Gopinath,you need to add paging info in todatasubset function. Try to to add and then check it.

stefanhelzle0001
Brainy
Apr 12, 2022 10:14 AM UTC
gopinathb0002
Known Participant
Apr 12, 2022 10:18 AM UTC

Hope this should help! Let me go through this. Thanks [mention:126a676c85024855948336691b0a7b92:e9ed411860ed4f2ba0265705b8793d05]

peter.lewis
Employee
Apr 12, 2022 6:26 PM UTC

I would also recommend looking the documentation for creating a web service backed record with sync enabled - in that case you don't need to worry about converting to a datasubset. Here's some documentation about setting up this kind of record type: docs.appian.com/.../configure-record-data-source.html