How do link a UI button click to an in game object?

Hello all. I am trying to link a UI button Onclicked event to rotating an object in the game space.
I am learning how to use UE and I can’t figure out how to do this.

I know that the script for the rotation works because I can connect it to event begin play easily.

In order to connect it to the UI button I tried creating a variable that is a reference to the UI blueprint and then a reference to the button that is in the UI. Finally I promoted it to a variable and tried to use the Onclicked event.
This has no visible effect. What am I doing wrong?