=ENCODEURL(text)
=ENCODEURL("http://contoso.sharepoint.com/Finance/Profit and Loss Statement.xlsx")
The ENCODEURL function can be used to convert a URL into a URL-encoded string. This is useful for sharing and accessing files on a Microsoft SharePoint server. For example, this formula will return a URL-encoded string that points to a particular Sourcetable file on the SharePoint server.
=ENCODEURL("http://contoso.sharepoint.com/Finance/Profit and Loss Statement.xlsx?year=2020")
The ENCODEURL function can also be used to convert URLs that include query parameters. For example, this formula will return a URL-encoded string that points to a particular Sourcetable file on the SharePoint server and includes the query parameter "year=2020".
=ENCODEURL("https://www.google.com/drive/Finance/Profit and Loss Statement.xlsx")
The ENCODEURL function is also useful for sharing files stored in a cloud storage service and will return a URL-encoded string that points to a particular Sourcetable file stored in Google Drive.
The ENCODEURL function allows users to protect URLs from being copied and pasted by encoding the URL string into a shorter alphanumeric value.