process backed records, querying nested CDTs in the process model not working

Hi all,

I have a nice process model, let's call it ProcessModel_A

The process model has a PV, of a CDT type. Let's call it CDT_A.

This CDT has some text and number attributes and also contains an attribute which type is a second CDT, let's call it CDT_B:

CDT_A:

   name - text - no multiple

   age - number - no multiple

...

   moreData - CDT_B - multiple

There is no database here, just the process models, and no Records, just CDTs.

Please, bear in mind that the moreData is a list.

I've created a Process backed record, RecordPM_A, of type ProcessModel_A.

When I run a query on the process, like:

a!queryRecordType (

  recordType: RecordPM_A,

  fields: {

     [RecordPM_A.fields.moreData.CDT_B]

...

when I query it like this, in the attribute moreData it keeps telling me that this is a list of text and is retrieving only the first element of CDT_B.

Any idea on how to FORCE it to understand that the list of elements is of a CDT type, not a text type?

Remember that I'm not defining the data types, this is a process backed record.

Thanks.

All goes well, but in the content of

  Discussion posts and replies are publicly visible