Share via

I want to Deep link to Viva Engage post draft window with prefilled content

Prashant Singh 0 Reputation points
2026-02-23T08:17:54.4233333+00:00

I am trying to open the Viva Engage platform right within from our web app to share some links or text message content as a post with the prefilled text or that content which would like to share, but currently I am seeing any option available to pass it.
I am currently opening the viva engage thru the deep links provided by the microsoft, I am linking that document here:
https://learn.microsoft.com/en-us/viva/engage/deeplinks?source=recommendations

Now, I want to pass the content to the web composer once it gets opened, as we have currently one option is there to achieve in Microsoft Teams as mentioned here in this document here:
https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/share-to-teams-from-web-apps?tabs=method1

Please help on this as to how to enable this with viva engage platform(yammer)
Thank you

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Kudos-Ng 14,770 Reputation points Microsoft External Staff Moderator
    2026-02-23T10:45:50.2166667+00:00

    Hi Prashant Singh,

    Thank you for posting your question in the Microsoft Q&A forum.

    After researching your scenario, I found that what you are trying to achieve is not currently supported by Microsoft. There is no officially documented mechanism (whether through URL scheme, Microsoft Graph API, or any SDK) that allows passing content into the Viva Engage composer upon opening.

    The reason this differs from the "Share to Teams" experience you referenced is that "Share to Teams" is a purpose-built feature developed by Microsoft specifically for sharing content from external web apps into Teams. It comes with its own JavaScript SDK and dedicated URL endpoints designed to accept content parameters. In contrast, Viva Engage deep links were designed solely for navigation purposes like directing users to existing entities such as threads, communities, storylines, and campaigns. They do not accept any parameters related to message composition or content prefilling.

    That said, there are two possible workarounds you could consider:

    Workaround 1: Deep Link combined with Clipboard API

    You can programmatically copy the desired content to the user's clipboard using the navigator.clipboard.writeText()API, and then open Viva Engage via a deep link (e.g., https://engage.cloud.microsoft/main/groups/<GroupId> or the Teams deep link format). The user would then need to manually paste the content into the composer. The advantage of this approach is that it requires no API permissions or server-side authentication and is straightforward to implement. The downside is that the user experience is suboptimal, as it relies on the user to manually paste the content, and some browsers may restrict clipboard access without a direct user gesture.
    Note: This information is provided as a convenience to you. These sites are not controlled by Microsoft, and Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please ensure that you fully understand the risks before using any suggestions from the above link.

    Workaround 2: Post directly via the Yammer REST API

    You can bypass the composer entirely and post the message directly to Viva Engage using the legacy Yammer REST API endpoint POST https://www.yammer.com/api/v1/messages.json. This allows you to specify the message body, target group, and other parameters programmatically. To mitigate the risk of users not being able to review content before posting, you can implement a preview/confirmation modal within your own web application before making the API call. However, there are important caveats: this approach requires OAuth or Microsoft Entra authentication, and more critically, the legacy Yammer REST APIs using Yammer OAuth2 tokens are set to retire on June 30, 2025. After that date, you must authenticate via Microsoft Entra applications. Additionally, the Microsoft Graph API for Viva Engage does not yet offer an equivalent endpoint for creating posts.

    References:

    I would also recommend submitting a feature request through the Microsoft Feedback Portal for a "Share to Viva Engage" SDK similar to what exists for Teams, as this appears to be a genuine gap in the platform's capabilities.

    Hope this helps.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".         

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Prashant Singh 0 Reputation points
    2026-02-23T12:44:52.2366667+00:00

    Hi @Kudos-Ng

    Thanks for your reply on this request. I would like to know about the legacy REST APIs wether they support the Microsoft Entra applications access tokens or not as Microsoft Graph APIs does to make the api call successfully and also as you mentioned here in your reply that Microsoft Graph API for Viva Engage does not yet offer an equivalent endpoint for creating posts, so on this note, will this legacy REST API to create the post will work or not in the near future if use legacy ones?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.