Function Editor - Linking Table Record To Variable breaks dependent logic

So, long story short, four things I would like to see change in the function editor:

  1. Linking a table result to a variable should update all prior references to that logic block to the variable. If this can not be reversed the same way, so be it, but at least the first linking should not destroy everything.
  2. Decision blocks should be able to read logic block results
  3. Losing a variable / logic block that has been linked to a field in a table record write block should not remove the field, it should just leave it blank. You can already save the function with these blank, so that tells me there isn’t really an issue doing this.
  4. In general, if a button seems to merely toggle a layer of abstraction (like unlink/link to variable) it should not delete my work. At the very least, it should warn people before doing so, as the results of clicking this button in a complex function could be devastating.

When editing functions and pulling up a table record, I assumed linking Table records to variables was just for convenience. It changes the way it is referenced in expression editor and variable selection from a generic “Logic Block Results” to whatever variable it was set to. My choice to do it was based on whether I was going to be using that data in many places or in long expressions where typing the “logic block results.results.result” would get cumbersome.

That is, until now, where I looked and looked and realized you cannot use logic block results in expressions for decision blocks! I was disappointed, because I already know the act of changing it from a logic block result to a variable breaks every single piece of logic referencing the former logic block result.

I was transcribing a significant number of these record fields into a new record in a different table.

Not only did changing this wipe all the fields reading this variable, but it actually removed those fields from the list. So, I can’t just go back and link them all to the new variable, I have to redo the work of figuring out which fields need to be added in the first place.

Now, it’s alright, I didn’t lose that much here. I just feel I have to warn my coworkers to be careful as these link to variable buttons can easily undo hours of work without warning.

Hey @enewton, sorry this cost you work, and thanks for writing it up so clearly.

Linking a record to a variable shouldn’t wipe out the fields that depend on it, and at the very least it should warn you first. I went through this with the Functions team. The fix that we think gets to the root of this is letting you keep using a logic block’s outputs after you link them to a variable, so linking doesn’t break anything downstream in the first place.

That’s a bigger change than a quick patch, so I can’t give a timeline, but it’s logged and I’ll update this thread when it moves. Your other points, including the warning, are noted too. Thanks for warning your coworkers in the meantime.