a!queryRecordType( recordType: 'recordType!{cf3ebdf9-1821-4f75-b00c-f8c5ae8762d2}HC CustomerInformation', fields: 'recordType!{cf3ebdf9-1821-4f75-b00c-f8c5ae8762d2}HC CustomerInformation.fields.{0366e14a-a911-453e-9a71-d190171bec3b}custid', filters: { a!queryFilter( field: "custid" operator:"=", value:ri!ID) }, pagingInfo: a!pagingInfo( startindex: 1, batchSize: 500 ), fetchTotalCount: true()).data
Discussion posts and replies are publicly visible
1) if you use a code box ("insert -> insert code") then snippets even as small as this will be quite a bit more readable
2) it would helps us out a lot if you could also post a screenshot of the exact error you're getting
3) otherwise, my first guess just based on what you've posted here, your QueryFilter "field" entry needs to be a recordType! field reference, not just a string like you currently have ("custid").
You have a comma missing at the end of this line:
field: "custid"