Dynamic object reference?

hi all, super simple question that I’ve tried to answer on my own, but struggled.

I’ve got an input field (string) called selectProperty. Property could have a value of “name”, “description” or “url”.

I’d like to loop through a ‘get all records’ query, and retrieve item.selectProperty but unsure how I’d convert it to a valid path e.g item.name

Apologies for the very basic question, but I really look forward to your answers.

Other
4 replies