Unable to use return value from custom module in later action

you may also find this post useful re connections