Create hyperlink in gmail to file on shared drive - gmail

I want to send to my team an email that includes a hyperlink to a file on a shared drive that we all have access to. I can open a pdf in chrome from windows explorer by either dragging and dropping it in chrome or by right clicking > Open with > chrome. Copying and pasting the resultant address reads file:///Z:/Instructions/MyInstructions.pdf (the Z drive being a shared drive). I want to create a hyperlink to this pdf in a gmail so that recipients will have the file open in chrome when they click on it. (I don't want them to have to copy and paste the address, though I realize that's rather simple). When I try creating a hyperlink in a gmail, the hyperlink doesn't carry over to the recipient, it merely remains plain text.
Is there a way to send a hyperlink of a path to a file in a shared drive though a gmail?

If you are using a desktop to send the email, then you can use the CTRL+K shortcut (or CMD-K shortcut if you are using Mac) to bring up the HyperText menu on Gmail.
From there you can enter the link and even choose custom text on the link as shown below.
Example of HyperText Menu usage

Related

Links in excel stop working when file is saved

I was emailed an excel file with a number of links to install direct printer queues. If I open the excel attachment directly from the email the links work, but if I save the attachment to my desktop the links no longer work and I get an error “Cannot open the specified file”.
If I copy the link into Windows explorer, it works fine. Is there a way to ensure the links still work from excel when the file is saved in a shared location so anyone with access to the file can click on the links without having to copy the link into Windows explorer?

Strange hyperlink handling in Excell, clicking on links always prompts for sign in even when it shouldn't

From my enterprise application, I can export a list of assets into an Excel file or a PDF file which puts a clickable hyperlink that points to the asset. When I open the hyperlink in the browser by clicking on the hyperlink in the excel file, my application prompts me to sign in (which it shouldn't).
This doesn't happen when I click on the hyperlink in the PDF file or manually copy the hyperlink and paste it into the browser window. When I save this excel file as a PDF and then click on the hyperlinks then it works as expected(without re-prompt for sign in). I have also manually created hyperlinks both using the formula(=HYPERLINK) and using the Link context menu and the behaviour is the same in these two cases (Prompted for signing). I have also tried this with word and it's also prompting for me to sign in.
Is Excell/MS Office doing anything additional whenever I click on these hyperlinks and if so how can I disable this functionality? How are external URL's handled in the MS office?
My document would look something like below(with a lot more columns)
This is because when a hyperlink is opened in any word document MS office process it and if it needs to be opened in a browser it opens with a new session ignoring the session id. Some SSO providers do not recognise authentications across sessions and hence prompt for authentication again. This can be avoided by instructing the MS office to open the URLs directly in the browser by modifying the registry key.
Create a new DWORD named ForceShellExecute and set its value to 1 in the below registry entries (Most probably the registry key will not be present, create a new one)
For 32-bit versions of Office installed on 64-bit operating systems:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\9.0\Common\Internet
For 32-bit versions of Office installed on 32-bit operating systems, or 64-bit versions of Office installed on 64-bit operating systems:
HKEY_LOCAL_MACHINE\Software\Microsoft\Office\9.0\Common\Internet
Note: Even though I have 64bit Office 365 enterprise I had to set the 32bit registry key.
Links to Microsoft KB articles: Issue explanation and Solution

Excel hyperlink to google sheets not working

When I click on a hyperlink with gsheet url in excel, "Update your browser to use Google Drive, Docs, Sheets, Sites, Slides, and Forms" page opens in browser each time. And when I manually copy paste the link in browser, it works.
It is not caused by malware, it is likely a Windows update that causes Office and Google Docs not to communicate correctly.
See this link for more details
The thing is you cannot click on cell link, you need to hover the cell and after that click on appearing link. That's how links in google sheets work
I found a solution to overcome this challenge. Using the Shell command I was able to achieve it. I used VBA to execute the command:
Shell "explorer ""https://www.google.com"""
This command will open the URL in default browser of user.

Disabling Excel Warning Message about Active Content

I am dynamically creating Hyperlinks in an excel spreadsheet linking to a set of html pages also located on the same PC. The html pages load java script files. When clicking on the URL then the correct HTML page opens in the browser but as a side product I am also getting the following warning message:
My question is how to stop the information window popping up after clicking on the hyperlink in Excel. I looked at internet options and also at the Trust Center within Excel but was not able to successfully remove the information window.
There are two options to solve this without messing with security options.
Use the UNC path
change the link to call the file via a local webserver (e.g., IIS or Apache) on localhost

Open a file directly in Teams from a tab

I have deployed a SharePoint webpart (SharePoint Framework) to Microsoft Teams. In this web part, I have a list of files that I want to open directly in Teams.
I have tried to get the link from the "Files" tab (https://teams.microsoft.com/l/file/7FFA7D9D-CBF1-4679-9C80-76446AE11ABD?tenantId=0f48c6f4-52a5-4553-b476-4ee2ee0aecca&fileType=docx&objectUrl=https%3A%2F%2Fxyz.sharepoint.com%2Fsites%2FAZRTZ%2FShared%20Documents%2FGeneral%2FArchitecture%2FTest.docx&baseUrl=https%3A%2F%2Fxyz.sharepoint.com%2Fsites%2FAZRTZ&serviceName=teams&threadId=19:0d1f6f397c51421189e791a9ab436a48#thread.skype&groupId=98edc5a8-02ac-4f58-8638-ea88ac6aaa4d) and put it in the href="" of the link. It does not work, it opens the file in the browser.
I also tried to put the direct link in the href (https://xyz.sharepoint.com/sites/AZRTZ/Shared Documents/General/Architecture/Test.docx). It downloads a copy of the file in the browser.
I want to open the file directly into Teams, the same way the files are opened if the user goes to the "Files" tab (eg. if the user opens a .doc file, Word Online in Teams must open, if the user opens an image, a previsualisation in Teams must be opened, ...)
Succeed with a shorter version of the Deep Link syntax myself, in a message card from an incoming webhook connector, provided I used the OpenUri action syntax and not a plain markdown link:
https://teams.microsoft.com/l/file/?fileType=<extension>&objectUrl=<absoluteUrl>
this was linking to Sharepoint files.
Using the Deep link I managed to open the file directly in Teams. I had to format the URL :
https://teams.microsoft.com/l/file/{file-id}
?tenantId={tenant-id}
&fileType={file-type (jpg, xlsx, docx, ...)}
&objectUrl={file-encoded-link (SharePoint link, aboslute URL)}

Resources