Jan 06 2024 10:14 AM
I am creating a post in teams channels when a News page is created and published.
I want to be able to create a URL to the specific sharepoint page that opens in the Viva Connection app in Teams.
Currently the only URL i have been able to create is a URL that opens in the browser.
I have tried this powershell script:
# Define variables
$vivaConnectionsAppId = "00000000-0000-0000-0000-ee00425598aa"
$sharePointPageUrl = "https://company.sharepoint.com/sites/net/SitePages/MyPage.aspx"
# Encode the SharePoint URL
$encodedSharePointPageUrl = [System.Web.HttpUtility]::UrlEncode($sharePointPageUrl)
# Generate the deep link
$deepLink = "https://teams.microsoft.com/l/entity/$vivaConnectionsAppId/?webUrl=$encodedSharePointPageUrl"
# Open the deep link in the default web browser
Start-Process $deepLink
The URL i get from this looks like this for example:
https://teams.microsoft.com/l/entity/00000000-0000-0000-0000-ee00425598aa/?webUrl=https%3A%2F%2Fcompany.sharepoint.com%2Fsites%2FIntranat%2FSitePages%2FMyPage.aspx
When someone clicks on the link. Teams opens the viva connection app but only display the startpage of the site. It does not go to the specific page (in this example "MyPage.aspx"
How should i create the URL to deeplink to the specific page in Viva Connection? I want to deeplink in the viva connection application in Teams!
Jan 06 2024 12:50 PM