The Invoke Code activity does not accept long text values retrieved from Get Text and sent to the Webhook.
If the text is short, it can be sent to the Webhook successfully—I have tested this. However, long text or text captured using Get Text, especially when the selection box is large, fails to send.