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

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Senior Developer
    in reply to ashutoshs4646

    Hi , if you need to cast a list to record , you need to use below steps. The issue is you need to explicitly define the id value which has to be casted into record type via your CDT constructor. Both record field and your CDT field should be of same type. Remember to use () after record name , ex --record!case()

    Use a loop on all your IDs.

    a!foreach(items: local!generatedId (list of integers),

    expression:{

    cast(typeof(recordname)(),

    type!yourcdt(

    id: fv!item // use fv!item for single ID value

    ))

    }

    Thanks