User Profile
ssj_springctin
Copper Contributor
Joined 3 years ago
User Widgets
Recent Discussions
Re: New Teams - Desktop (banner) Notifications don't work with sendActivityNotification
Hi Meghana-MSFT, Thank you for your response. This issue is breaking a crucial feature in our application. Also, as per this announcement, users on old Teams will also be automatically migrated to the new Teams very soon. So, this is about to impact all our users.1.3KViews0likes0CommentsNew Teams - Desktop (banner) Notifications don't work with sendActivityNotification
Hello, I am using sendActivityNotification graph API to send important custom topic activity notifications to the user. On the new Teams, the notification only shows up in the Activity feed, but not as a desktop notification (banner). This is true for both the desktop app and in the browser. I have verified in the Teams Settings -> Notifications and activity section that the setting for my app is set to Show in Activity and banner. Desktop notifications are seen as expected in the old Teams on both desktop (1.6.00.22378) and browser.Re: Activity Feed Notifications Fail Due to WebUrl Length Limit
SaiPratap-MSFT , Thank you for your response and suggestions. We have explored the three alternatives you have mentioned. Looks like reducing the payload size is the best option for us. Nevertheless, it would be better if the API documentation could clearly define and mention such limits.616Views0likes0CommentsActivity Feed Notifications Fail Due to WebUrl Length Limit
Hello, I'm using the https://learn.microsoft.com/en-us/graph/api/userteamwork-sendactivitynotification?view=graph-rest-1.0&tabs=javascript#request-headers Graph API to send Activity Feed Notifications to Teams users. I'm using a https://learn.microsoft.com/en-us/graph/api/userteamwork-sendactivitynotification?view=graph-rest-1.0&tabs=javascript#example-2-notify-a-user-about-an-event-using-custom-topic and https://learn.microsoft.com/en-us/graph/teams-send-activityfeednotifications?tabs=javascript#example-8-send-a-notification-to-a-user-using-the-systemdefault-activity-type activity type. The https://learn.microsoft.com/en-us/graph/api/resources/teamworkactivitytopic?view=graph-rest-1.0#properties is a deep link to my Teams Personal Tab app. I also include a payload in the deep link, which becomes available in the tab context. I have noticed that the notification fails if the webUrl length exceeds 1024, due to some larger payloads. error: {"code":"BadRequest","message":"UnknownError"} I couldn't find any documented length limit. I have followed these guides - https://learn.microsoft.com/en-us/graph/teams-send-activityfeednotifications?tabs=javascript https://learn.microsoft.com/en-us/graph/teams-activity-feed-notifications-best-practices Is there a way around this limit, or some other way to include larger payload data when sending the notification?SolvedSend Activity Notification with Application permission doesn't support Multi-Tenancy
I am trying to use the https://learn.microsoft.com/en-us/graph/api/userteamwork-sendactivitynotification with Application permission (TeamsActivity.Send). The API works as expected if the token was created with a Single-tenant authority URL (authorityHost+'/'+tenantId). However, I am unable to make it work with a multitenant authority URL (authorityHost+'/common'). I tried 3 options - https://learn.microsoft.com/en-us/microsoftteams/platform/toolkit/teamsfx-sdk#supported-functions - Used createMicrosoftGraphClientWithCredential with AppCredential TenantId is automatically appended to authorityUrl. No way to specify '/common' https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/607bf2044e20f8adb396a65bf4fbfb40e29f3fcf/docs/TokenCredentialAuthenticationProvider.md: Used ClientSecretCredential from the azure/identity library. Same result. No way to specify '/common' in the authorityUrl. The https://learn.microsoft.com/en-us/javascript/api/%40azure/identity/clientsecretcredentialoptions?view=azure-node-latest#@azure-identity-clientsecretcredentialoptions-additionallyallowedtenants property made no difference. https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-node/docs/initialize-confidential-client-application.md#initializing-the-confidentialclientapplication-object: Used ConfidentialClientApplication with acquireTokenByClientCredential Got the following error - ClientAuthError: missing_tenant_id_error: A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.Solved951Views0likes3CommentsRe: XML Data in Deep Link to Personal Tab has to be URI Encoded Twice?
Hi ChetanSharma-msft , Thank you for your reply. I had referred the doc you mentioned. But if you notice in the snippet you shared, neither the encodedContext nor encodeWebUrl are embedded in the other. In my use case, the encoded XML string has to be embedded within the context, which is then encoded again. The XML data is essentially encoded twice. This is not an issue for me per se. I just want to be sure that this is expected behavior, and that I am not missing anything.418Views0likes1CommentXML Data in Deep Link to Personal Tab has to be URI Encoded Twice?
Hello, I am building a deep link to a Teams personal tab. I need to send XML data to the tab, which I have embedded in the deep link as part of the subEntityId. In the personal tab, I can extract the data from the context object. The issue is, unless I URI encode the XML string twice, the subEntityId field in the context object is always an empty string. const encodedData = encodeURIComponent(xmlData);// skipping this step causes subEntityId to be empty in context object const encodedContext = encodeURIComponent(`{"subEntityId":"${encodedData}"}`); const deepLink = `https://teams.microsoft.com/l/entity/${process.env.APP_ID}/${process.env.ENTITY_ID}?&context=${encodedContext}`; Is this expected behavior, or am I missing something?546Views0likes3CommentsRe: Icon image set for Incoming Webhook in MS Teams is not displaying.
Hi Prasad_Das-MSFT , anishabhyankar and I just tested this again by sending a card (via Postman) to the Webhook URL mentioned in the original post - https://springctin.webhook.office.com/webhookb2/0a30282e-c914-4444-abce-a235b01a495d@91e213e9-498d-46b9-bc35-cd0aa9390b45/IncomingWebhook/350516b208de4ec49146d39108982bc5/289b9f6d-e807-4962-98bf-5745e68839af You can find the channel's object ID in red and the Tenant ID in green. We can still reproduce the issue -6.3KViews0likes12Comments
Recent Blog Articles
No content to show