Thank you axgr. That worked for me and I can get the link now.
Got another issue though. The document created is restricted to my organization and can’t be accessed to those who are outside of my organization. Is there an option to automatically set these sharing settings?