Hello all,
I am running into a metaphorical brick wall regarding the LookUp() function with reference to lookup columns in Dataverse. There are two tables, 'tools' and 'actions', and I want to pick out the last action for that specific tool. A One-to-Many relationship has already been set up between 'tools' and 'actions'...
| tools | |
| tool_id | Primary ID (Auto #) |
| ranking | Choice |
| text | Text |
| actions | |
| action_id | Primary ID (Auto #) |
| tool | Lookup (tool_id) |
| status | Choice |
Here's a snippet of the code I'm currently working with... Power Apps indicates that "LookUp has invalid arguments", but this is the format I've taken out of the documentation and have used with success in previous applications.
ClearCollect(data,
AddColumns(
// Get 'tools' table
tools,
// Identify last status from 'action'
"status",
LookUp(Sort(actions, createdon, Descending), cr979_toolsid = tool, status)
)
);
Any ideas/suggestions would be greatly appreciated! If there's an alternative to LookUp() I'd also be very happy to hear them!