Hello Everyone,
I need to query the data from the record type and displaying it in a grid in a portal.I have created a web API that queries record type and connected system for authentication and an integration to query data using connected system.I have called the integration and cast the list of dictionary data from integration to a record type to display data in a grid but its not working.Can you help me to solve this on how to display data in grid in a portal?
Thanks,
Discussion posts and replies are publicly visible
Hi Sanjay,
Do you have CDT for this? If so, can try like this,
cast(type!pickYourCDT?list,your Expression )
If I cast to CDT like this.
local!data: todatasubset(rule!WC_queryMatchRecordType().result.body),
So, how do I show the data as I am using recordtype relationship to show normally. But here I need to show on portal in a grid.
Did you see this example in the documentation?
https://docs.appian.com/suite/help/22.4/portals-data.html#query-data
Yes, I did and I got casting error while following the same steps. To cast the data into record type from dictionary.
Looks you are attempting to cast a list value to a single record type value. Instead, in your cast, wrap the record reference in a!listType(). The example would work when retrieving a single record.