Get Usercode for Siri Shortcut

Tags: #<Tag:0x00007f325e86c418>

I’m trying to setup a Siri Shortcut where I or close friends can SMS a specific phrase that triggers a shortcut to get the front door usercode and SMS it to the person who requested it.
I can’t seem to work out how to effectively get the usercode and convert it into text to then send.
Any assistant is very much appreciated.