Way back when I was doing the CRUD Mission, to Retrieve an Object, I was trying to do it with Codeless. But ended up hobbling together a REST statement. That did the job. Now I’m back at the same problem I never solved. For now, I’m just trying to grab any record, but I get this Error Message:
I’ve tried quite a few variations and searched the Codeless Docs and this forum for a Codeless solution. (Just when I thought I was getting good at this.)
I want to use the Load Table Objects block, because I’m going to be using a where clause.
This example gets the 2nd occurrence in a list of 4. No errors now, but still don’t have enough items in the list to add a where clause.
Am I on the right track? Anything coming from the database is always a list. Tried a LOT of List blocks. Though the Filter might be a good way to get all. No.
Got it, so here you get a collection of items and put them through the Filter items in list. Since the filtering block does nothing (there is no logic inside of the block) and it returns nothing, then the Get property "name" of block gets no data and it explains the “undefined” result in the popup.
Inside of the filter block (where you return true now) you need to add logic to decide if Item is a candidate for inclusion into the result. If it is, you can “massage” that object or create another object which has to be returned in the “return” connector of the actual filter block.