Skip to main content
Known Participant
Jul 10, 2023 2:43 PM UTC
Question

Record Type Query

When we try to pass values  queried through entity based expression rule to value field field of record type query filter it fails. How to make it working?

I have checked in both cases for querying data  same set of list of integer is returned but it fails for query entity

9 replies

stefanhelzle0001
Brainy
Jul 10, 2023 2:52 PM UTC

You can cast CDT data to the record type.

Known Participant
Jul 11, 2023 6:17 AM UTC

Still facing the error  Could not cast from Number (Integer) to Record Field. Details: CastInvalidCould not cast from Number (Integer) to Record Field. Details: CastInvalid.

it is of form-

(

cast ( typeof(recordtype!parentrecord.record1.record2.fields.value),

list of integer from query entity

)

shikhat
Inspiring
Jul 11, 2023 6:22 AM UTC

Hi , Can you share the code snippet here?
Also how are you referencing the record fields?