How can I determine what fields are available to use with dot notations for field values?

Certified Lead Developer

Using the queryrecord() function I can pass in a text array of field names that I want from the record type via query selection. At runtime I want this list of fields to be dynamically generated based on conditions.

But when I have loaded the queryrecord into a local variable in the dashboard expression how can I determine what fields are available to use with dot notations for field values?...

OriginalPostID-91574

OriginalPostID-91574

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    This is very nearly perfect for my use case but not quite, unless I'm using it wrong. In this scenario I don't seem to be able to pass in an array for the index position:
    ri!selectionFields is effectively {"id", "name", "date"}
    Using local!datasubset.data[ri!selectionFields] give me an invalid index position error.
Reply
  • 0
    Certified Lead Developer
    This is very nearly perfect for my use case but not quite, unless I'm using it wrong. In this scenario I don't seem to be able to pass in an array for the index position:
    ri!selectionFields is effectively {"id", "name", "date"}
    Using local!datasubset.data[ri!selectionFields] give me an invalid index position error.
Children
No Data