Trying to use the stamp() action in Link Actions and it is not working

I am trying to use the following stamp “Inbound Links” as an OnLink action:

$Features=$Features+links.inbound.“Feature”.$Name

It works perfectly as a stamp, but when I enter stamp(Inbound Links) in the Link Action it does not work.

2020-09-09_14-54-37 2020-09-09_14-54-29

The link action will run in the context of the note creating a new outbound link. It is not stated in your question, but looking at your code I suspect the link action is assuming the context is the destination note. If so, that would explain the outcome seen.

Otherwise, please can you clarify the context of your use of the stamp and of where you assume the link action is applied.