Skip to main content
gopinathb0002
April 12, 2022
Question

Manipulation of list of dictionary for record data source

  • April 12, 2022
  • 5 replies
  • 0 views

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
April 12, 2022

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

stefanhelzle0001
Brainy
April 12, 2022
gopinathb0002
April 12, 2022

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

peter.lewis
Employee
April 12, 2022

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